]>
Commit | Line | Data |
---|---|---|
65abd48b | 1 | #ifndef ALIDISPLACEDVERTEXSELECTION_H |
2 | #define ALIDISPLACEDVERTEXSELECTION_H | |
3 | #include <TObject.h> | |
4 | class AliESDEvent; | |
290052e7 | 5 | |
6 | /** | |
7 | * Selection of events from satellite interactions | |
8 | */ | |
65abd48b | 9 | class AliDisplacedVertexSelection : public TObject |
10 | { | |
11 | public: | |
290052e7 | 12 | /** |
13 | * Constructor | |
14 | */ | |
65abd48b | 15 | AliDisplacedVertexSelection(); |
290052e7 | 16 | /** |
17 | * Copy constructor | |
18 | * | |
19 | * @param o Object to copy from | |
20 | */ | |
65abd48b | 21 | AliDisplacedVertexSelection(const AliDisplacedVertexSelection& o); |
290052e7 | 22 | /** |
23 | * Assingment operator | |
24 | * | |
25 | * @param o Object to assign from | |
26 | * | |
27 | * @return Reference to this object | |
28 | */ | |
65abd48b | 29 | AliDisplacedVertexSelection& operator=(const AliDisplacedVertexSelection& o); |
290052e7 | 30 | /** |
31 | * Define the output | |
32 | * | |
33 | * @param l List to add output to | |
34 | * @param name Name of the list | |
35 | */ | |
65abd48b | 36 | void Output(TList* l, const char* name=0) const; |
290052e7 | 37 | /** |
38 | * Print information | |
39 | * | |
40 | * @param option Not used | |
41 | */ | |
65abd48b | 42 | void Print(Option_t* option="") const; |
241cca4d | 43 | /** |
44 | * Process an ESD event to get the information | |
45 | * | |
46 | * @param esd ESD event | |
47 | * | |
48 | * @return true on success | |
49 | */ | |
50 | Bool_t Process(const AliESDEvent* esd); | |
51 | ||
52 | Double_t GetVertexZ() const { return fVertexZ; } | |
53 | Double_t GetCentralityPercentile() const { return fCent; } | |
65abd48b | 54 | /** |
55 | * Check for displaced vertices (M.Guilbaud) | |
56 | * | |
57 | * @param esd Event | |
58 | * | |
59 | * @return displaced vertex | |
60 | */ | |
61 | Double_t CheckDisplacedVertex(const AliESDEvent* esd) const; | |
62 | /** | |
63 | * Calculate Centrality for displaced vertices (M.Guilbaud) | |
64 | * | |
65 | * @param esd Event | |
66 | * | |
67 | * @return displaced vertex centrality | |
68 | */ | |
69 | Double_t CalculateDisplacedVertexCent(const AliESDEvent* esd) const; | |
70 | ||
71 | protected: | |
241cca4d | 72 | Double_t fVertexZ; |
73 | Double_t fCent; | |
65abd48b | 74 | |
75 | ClassDef(AliDisplacedVertexSelection,1); // Cuts on ESD Mult | |
76 | }; | |
77 | ||
78 | #endif | |
79 | // Local Variables: | |
80 | // mode: C++ | |
81 | // End: |