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 |
pam-fi |
1.2 |
// void Reset(); |
43 |
|
|
|
44 |
pam-fi |
1.1 |
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 |
pam-fi |
1.3 |
TH1F* GetHisto(TString, Int_t, Int_t, Int_t); |
60 |
|
|
TH1F* GetHisto(TString what, Int_t ipkt, Int_t ivk) { return GetHisto(what,ipkt,ivk,1); }; |
61 |
|
|
TH1F* GetHisto(TString what, Int_t ipkt) { return GetHisto(what,ipkt,0,1); }; |
62 |
pam-fi |
1.1 |
|
63 |
|
|
void HeaderDump(Int_t); |
64 |
|
|
|
65 |
|
|
void* GetPointerTo(){ return &calib1;}; |
66 |
|
|
|
67 |
|
|
CalibTrk1Event* Get(){ return calib1; }; |
68 |
|
|
|
69 |
|
|
ClassDef(TrkCalib,1); |
70 |
|
|
}; |
71 |
|
|
|
72 |
|
|
#endif |
73 |
|
|
//____V@mail.ru |