/[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.5 - (hide annotations) (download)
Wed Oct 22 15:17:31 2008 UTC (16 years, 1 month ago) by pam-fi
Branch: MAIN
CVS Tags: v10REDr01, v10RED, v6r01, v6r00, v9r00, v9r01, HEAD
Changes since 1.4: +3 -1 lines
File MIME type: text/plain
fixed bug in TrkHough track + new method UnpackError()

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 pam-fi 1.5 public:
37    
38 pam-fi 1.1 CalibTrk1Event* calib1;
39    
40    
41     TrkCalib();
42     ~TrkCalib();
43    
44 pam-fi 1.5
45 pam-fi 1.2 // void Reset();
46    
47 pam-fi 1.1 Int_t GetView(Int_t ipkt);
48    
49     Int_t EvaluatePar(TString what, Int_t ipkt, Int_t ivk, Float_t* result);
50     Float_t GetMean(TString, Int_t, Int_t);
51     Float_t GetRMS(TString, Int_t, Int_t);
52     Float_t GetMean(TString what, Int_t ipkt){ return GetMean(what,ipkt,0); };
53     Float_t GetRMS(TString what, Int_t ipkt) { return GetRMS(what,ipkt,0); };
54     Float_t GetNBAD(Int_t, Int_t);
55     Float_t GetNBAD(Int_t ipkt) { return GetNBAD(ipkt,0); };
56     Float_t GetNGOOD(Int_t, Int_t);
57     Float_t GetNGOOD(Int_t ipkt) { return GetNGOOD(ipkt,0); };
58    
59     Float_t* Get(TString, Int_t, Int_t);
60     Float_t* Get(TString what, Int_t ipkt) { return Get(what,ipkt,0); };
61    
62 pam-fi 1.3 TH1F* GetHisto(TString, Int_t, Int_t, Int_t);
63     TH1F* GetHisto(TString what, Int_t ipkt, Int_t ivk) { return GetHisto(what,ipkt,ivk,1); };
64     TH1F* GetHisto(TString what, Int_t ipkt) { return GetHisto(what,ipkt,0,1); };
65 pam-fi 1.1
66     void HeaderDump(Int_t);
67    
68     void* GetPointerTo(){ return &calib1;};
69    
70     CalibTrk1Event* Get(){ return calib1; };
71    
72     ClassDef(TrkCalib,1);
73     };
74    
75     #endif
76     //____V@mail.ru

  ViewVC Help
Powered by ViewVC 1.1.23