/[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.4 - (hide annotations) (download)
Fri Oct 19 08:39:31 2007 UTC (17 years, 1 month ago) by mocchiut
Branch: MAIN
CVS Tags: v5r00
Changes since 1.3: +1 -0 lines
File MIME type: text/plain
Added headers to compile with ROOT v5.16/x

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 mocchiut 1.4 #include <math.h> // EMILIANO: needed to compile with ROOT > 5.16/x
18 pam-fi 1.1 using namespace std;
19     /**
20     * \brief Class to describe tracker calibration data.
21     *
22     */
23    
24     /**
25     * \brief Class to describe tracker-calibration cpu-packets
26     *
27     * Each cpu packet stores calibration parameters of 6 tracker DSPs (views).
28     * The class stores an object of the YODA-class CalibTrk1Event, which can be used to describe
29     * both tracker-calibration cpu-packets (for X- and Y-views).
30     *
31     */
32     class TrkCalib : public TObject{
33    
34     private:
35    
36     CalibTrk1Event* calib1;
37    
38     public:
39    
40     TrkCalib();
41     ~TrkCalib();
42    
43 pam-fi 1.2 // void Reset();
44    
45 pam-fi 1.1 Int_t GetView(Int_t ipkt);
46    
47     Int_t EvaluatePar(TString what, Int_t ipkt, Int_t ivk, Float_t* result);
48     Float_t GetMean(TString, Int_t, Int_t);
49     Float_t GetRMS(TString, Int_t, Int_t);
50     Float_t GetMean(TString what, Int_t ipkt){ return GetMean(what,ipkt,0); };
51     Float_t GetRMS(TString what, Int_t ipkt) { return GetRMS(what,ipkt,0); };
52     Float_t GetNBAD(Int_t, Int_t);
53     Float_t GetNBAD(Int_t ipkt) { return GetNBAD(ipkt,0); };
54     Float_t GetNGOOD(Int_t, Int_t);
55     Float_t GetNGOOD(Int_t ipkt) { return GetNGOOD(ipkt,0); };
56    
57     Float_t* Get(TString, Int_t, Int_t);
58     Float_t* Get(TString what, Int_t ipkt) { return Get(what,ipkt,0); };
59    
60 pam-fi 1.3 TH1F* GetHisto(TString, Int_t, Int_t, Int_t);
61     TH1F* GetHisto(TString what, Int_t ipkt, Int_t ivk) { return GetHisto(what,ipkt,ivk,1); };
62     TH1F* GetHisto(TString what, Int_t ipkt) { return GetHisto(what,ipkt,0,1); };
63 pam-fi 1.1
64     void HeaderDump(Int_t);
65    
66     void* GetPointerTo(){ return &calib1;};
67    
68     CalibTrk1Event* Get(){ return calib1; };
69    
70     ClassDef(TrkCalib,1);
71     };
72    
73     #endif
74     //____V@mail.ru

  ViewVC Help
Powered by ViewVC 1.1.23