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 |
#include <math.h> // EMILIANO: needed to compile with ROOT > 5.16/x |
18 |
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 |
public: |
37 |
|
38 |
CalibTrk1Event* calib1; |
39 |
|
40 |
|
41 |
TrkCalib(); |
42 |
~TrkCalib(); |
43 |
|
44 |
|
45 |
// void Reset(); |
46 |
|
47 |
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 |
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 |
|
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 |