/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkCalib.h
ViewVC logotype

Annotation of /DarthVader/TrackerLevel2/inc/TrkCalib.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Nov 23 18:51:43 2006 UTC (18 years ago) by pam-fi
Branch: MAIN
CVS Tags: v3r04, v3r05, v3r00, v3r03, v2r01, v3r06
File MIME type: text/plain
implemented VA1 mask based on <SIG>

1 pam-fi 1.1 /**
2     * \file TrkCalib.h
3     * \author Elena Vannuccini
4     */
5     #ifndef trkcalib_h
6     #define trkcalib_h
7    
8    
9     #include <TObject.h>
10     #include <CalibTrk1Event.h>
11     #include <CalibTrk2Event.h>
12     #include <TString.h>
13     #include <TH1F.h>
14    
15     using namespace pamela;
16     #include <iostream>
17     using namespace std;
18     /**
19     * \brief Class to describe tracker calibration data.
20     *
21     */
22    
23     /**
24     * \brief Class to describe tracker-calibration cpu-packets
25     *
26     * Each cpu packet stores calibration parameters of 6 tracker DSPs (views).
27     * The class stores an object of the YODA-class CalibTrk1Event, which can be used to describe
28     * both tracker-calibration cpu-packets (for X- and Y-views).
29     *
30     */
31     class TrkCalib : public TObject{
32    
33     private:
34    
35     CalibTrk1Event* calib1;
36    
37     public:
38    
39     TrkCalib();
40     ~TrkCalib();
41    
42     Int_t GetView(Int_t ipkt);
43    
44     Int_t EvaluatePar(TString what, Int_t ipkt, Int_t ivk, Float_t* result);
45     Float_t GetMean(TString, Int_t, Int_t);
46     Float_t GetRMS(TString, Int_t, Int_t);
47     Float_t GetMean(TString what, Int_t ipkt){ return GetMean(what,ipkt,0); };
48     Float_t GetRMS(TString what, Int_t ipkt) { return GetRMS(what,ipkt,0); };
49     Float_t GetNBAD(Int_t, Int_t);
50     Float_t GetNBAD(Int_t ipkt) { return GetNBAD(ipkt,0); };
51     Float_t GetNGOOD(Int_t, Int_t);
52     Float_t GetNGOOD(Int_t ipkt) { return GetNGOOD(ipkt,0); };
53    
54     Float_t* Get(TString, Int_t, Int_t);
55     Float_t* Get(TString what, Int_t ipkt) { return Get(what,ipkt,0); };
56    
57     TH1F* GetHisto(TString, Int_t, Int_t);
58     TH1F* GetHisto(TString what, Int_t ipkt) { return GetHisto(what,ipkt,0); };
59    
60     void HeaderDump(Int_t);
61    
62     void* GetPointerTo(){ return &calib1;};
63    
64     CalibTrk1Event* Get(){ return calib1; };
65    
66     ClassDef(TrkCalib,1);
67     };
68    
69     #endif
70     //____V@mail.ru

  ViewVC Help
Powered by ViewVC 1.1.23