1 |
/** |
2 |
* \file ToFNuclei.h |
3 |
* \author Emiliano Mocchiutti / Wolfgang Menn |
4 |
*/ |
5 |
#ifndef tofnuclei_h |
6 |
#define tofnuclei_h |
7 |
|
8 |
#include <PamLevel2.h> |
9 |
|
10 |
#include <TTree.h> |
11 |
#include <TFriendElement.h> |
12 |
#include <TChain.h> |
13 |
#include <TFile.h> |
14 |
#include <TGraph.h> |
15 |
#include <TSpline.h> |
16 |
#include <TList.h> |
17 |
#include <TKey.h> |
18 |
#include <TSystemFile.h> |
19 |
#include <TSystemDirectory.h> |
20 |
#include <TSQLServer.h> |
21 |
|
22 |
#include <iostream> |
23 |
|
24 |
using namespace std; |
25 |
|
26 |
/** |
27 |
* |
28 |
*/ |
29 |
class ToFNuclei : public TObject { |
30 |
|
31 |
private: |
32 |
// |
33 |
PamLevel2 *L2; |
34 |
Bool_t debug; |
35 |
// |
36 |
// needed to avoid reprocessing the same event over and over to obtain the variables |
37 |
// |
38 |
UInt_t OBT; |
39 |
UInt_t PKT; |
40 |
UInt_t atime; |
41 |
Int_t tr; |
42 |
Int_t sntr; |
43 |
|
44 |
// |
45 |
Int_t ncount_trk; |
46 |
Float_t charge_trk; |
47 |
Float_t charge_layer_trk[6]; |
48 |
Int_t layerinfo_trk[6]; |
49 |
|
50 |
Int_t ncount_std; |
51 |
Float_t charge_std; |
52 |
Float_t charge_layer_std[6]; |
53 |
Int_t layerinfo_std[6]; |
54 |
// |
55 |
|
56 |
public: |
57 |
// |
58 |
// |
59 |
Int_t Get_Ncount_ToF_trk(){ Process(); return ncount_trk;}; |
60 |
Float_t Get_Charge_ToF_trk(){ Process(); return charge_trk;}; |
61 |
Float_t *Get_Charge_ToF_trk_layer(){ Process(); return charge_layer_trk;}; |
62 |
Int_t *Get_Layerinfo_trk(){ Process(); return layerinfo_trk;}; |
63 |
// |
64 |
Int_t Get_Ncount_ToF_std(){ Process(); return ncount_std;}; |
65 |
Float_t Get_Charge_ToF_std(){ Process(); return charge_std;}; |
66 |
Float_t *Get_Charge_ToF_std_layer(){ Process(); return charge_layer_std;}; |
67 |
Int_t *Get_Layerinfo_std(){ Process(); return layerinfo_std;}; |
68 |
|
69 |
// |
70 |
ToFNuclei(); |
71 |
ToFNuclei(PamLevel2 *L2); |
72 |
~ToFNuclei(){ Delete(); }; |
73 |
// |
74 |
void SetDebug(Bool_t d){ debug=d; }; |
75 |
// |
76 |
void Clear(); |
77 |
void Clear(Option_t *option){Clear();}; |
78 |
void Delete(); |
79 |
void Delete(Option_t *option){Delete();}; |
80 |
// |
81 |
void Process(); ///< Process data for track number 0 |
82 |
void Process(Int_t ntr); ///< Process data for track number ntr |
83 |
void Print(); |
84 |
void Print(Option_t *option){Print();}; |
85 |
// |
86 |
ClassDef(ToFNuclei,1); |
87 |
}; |
88 |
|
89 |
#endif |
90 |
|