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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu May 24 16:45:47 2007 UTC (17 years, 6 months ago) by pam-fi
Branch: MAIN
Changes since 1.1: +2 -0 lines
File MIME type: text/plain
several upgrades

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

  ViewVC Help
Powered by ViewVC 1.1.23