AliPhysics  63e47e1 (63e47e1)
AliDisplacedVertexSelectionAD.h
Go to the documentation of this file.
1 #ifndef ALIDISPLACEDVERTEXSELECTIONAD_H
2 #define ALIDISPLACEDVERTEXSELECTIONAD_H
3 #include <TObject.h>
4 
5 class AliESDEvent;
6 class AliESDfriend;
7 class AliESDAD;
8 class AliESDADfriend;
9 class AliADCalibData;
10 class TList;
11 class TH2;
12 class TH1;
13 
19 {
20 public:
21  enum EEventType {
26  };
30  enum {
31  kInvalidTime = -9999,
32  kInvalidVtxZ = 9999
33  };
38  : fIPz(kInvalidVtxZ),
40  fAC(0),
41  fSumDelta(0),
42  fSumDeltaSatA(0),
43  fSumDeltaSatC(0),
44  fIPzAll(0),
45  fIPzMain(0),
46  fIPzSatA(0),
47  fIPzSatC(0),
48  fIPzDelta(0),
49  fIPzSum(0),
50  fIPzBunch(0),
51  fSlewing(0),
52  fCalib(0),
53  fSpacing(2.5),
54  fMaxBunch(15)
55  {}
62  : TObject(o),
65  fAC(0),
66  fSumDelta(0),
67  fSumDeltaSatA(0),
68  fSumDeltaSatC(0),
69  fIPzAll(0),
70  fIPzMain(0),
71  fIPzSatA(0),
72  fIPzSatC(0),
73  fIPzDelta(0),
74  fIPzSum(0),
75  fIPzBunch(0),
76  fSlewing(0),
77  fCalib(0),
78  fSpacing(2.5),
79  fMaxBunch(15)
80  {}
93  operator=(const AliDisplacedVertexSelectionAD& o) { return *this; }
99  Bool_t IsSatellite() const { return IsSatelliteA() || IsSatelliteC(); }
105  Bool_t IsSatelliteA() const { return fEventType == kSatelliteA; }
111  Bool_t IsSatelliteC() const { return fEventType == kSatelliteC; }
117  Bool_t IsMain() const { return fEventType == kMain; }
123  EEventType GetEventType() const { return fEventType; }
129  Double_t GetIPz() const { return fIPz; }
137  void SetupForData(TList* l, const char* name=0, Bool_t mc=false);
143  void Print(Option_t* option="") const;
151  Bool_t Process(const AliESDEvent* esd);
152 protected:
162  Double_t MeanTime(AliESDAD* adESD,
163  AliESDADfriend* adFriend,
164  Bool_t aNotC) const;
165 
168  TH2* fAC;
180  AliADCalibData* fCalib;
182  Int_t fMaxBunch; // Maximum bunch number
183  ClassDef(AliDisplacedVertexSelectionAD,1);
184 };
185 
186 #endif
187 // Local Variables:
188 // mode: C++
189 // End:
double Double_t
Definition: External.C:58
AliDisplacedVertexSelectionAD & operator=(const AliDisplacedVertexSelectionAD &o)
void Print(Option_t *option="") const
int Int_t
Definition: External.C:63
AliDisplacedVertexSelectionAD(const AliDisplacedVertexSelectionAD &o)
Definition: External.C:220
void SetupForData(TList *l, const char *name=0, Bool_t mc=false)
Double_t MeanTime(AliESDAD *adESD, AliESDADfriend *adFriend, Bool_t aNotC) const
Bool_t Process(const AliESDEvent *esd)
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Definition: External.C:196