]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliDisplacedVertexSelection.h
Some changes to make it possible to run the DA's
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliDisplacedVertexSelection.h
1 /**
2  * @file   AliDisplacedVertexSelection.h
3  * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4  * @date   Thu Feb  7 00:53:03 2013
5  * 
6  * @brief  Selection of events from satellite interactions 
7  * 
8  * @ingroup pwglf_forward_aod
9  * 
10  */
11 #ifndef ALIDISPLACEDVERTEXSELECTION_H
12 #define ALIDISPLACEDVERTEXSELECTION_H
13 #include <TObject.h>
14 class AliESDEvent;
15
16 /** 
17  * Selection of events from satellite interactions 
18  *
19  * @ingroup pwglf_forward_aod
20  */
21 class AliDisplacedVertexSelection : public TObject 
22 {
23 public:
24   /** 
25    * Constructor 
26    */
27   AliDisplacedVertexSelection();
28   /** 
29    * Copy constructor 
30    * 
31    * @param o Object to copy from 
32    */
33   AliDisplacedVertexSelection(const AliDisplacedVertexSelection& o);
34   /** 
35    * Assingment operator 
36    * 
37    * @param o Object to assign from 
38    * 
39    * @return Reference to this object 
40    */
41   AliDisplacedVertexSelection& operator=(const AliDisplacedVertexSelection& o);
42   /** 
43    * Define the output 
44    * 
45    * @param l     List to add output to
46    * @param name  Name of the list 
47    */
48   void CreateOutputObjects(TList* l, const char* name=0) const;
49   /** 
50    * Print information 
51    * 
52    * @param option  Not used 
53    */
54   void Print(Option_t* option="") const;
55   /** 
56    * Process an ESD event to get the information 
57    * 
58    * @param esd ESD event 
59    * 
60    * @return true on success
61    */
62   Bool_t Process(const AliESDEvent* esd);
63   /** 
64    * Get the interaction point Z-coordinate from ZDC timing. 
65    * 
66    * 
67    * @return Interaction point Z-coordinate
68    */
69   Double_t GetVertexZ() const { return fVertexZ; }
70   /** 
71    * Return the centrality percentile 
72    * 
73    * 
74    * @return Centrality percentile (ZDC vs ZEM)
75    */
76   Double_t GetCentralityPercentile() const { return fCent; }
77   /** 
78    * Check for displaced vertices (M.Guilbaud) 
79    * 
80    * @param esd  Event 
81    * 
82    * @return displaced vertex
83    */
84   Double_t CheckDisplacedVertex(const AliESDEvent* esd) const;
85    /** 
86    * Calculate Centrality for displaced vertices (M.Guilbaud) 
87    * 
88    * @param esd  Event 
89    * 
90    * @return displaced vertex centrality
91    */
92   Double_t CalculateDisplacedVertexCent(const AliESDEvent* esd) const;
93   
94 protected:
95   Double_t fVertexZ; // Interaction point Z-coordinate
96   Double_t fCent;    // Centrality percentile
97   
98   ClassDef(AliDisplacedVertexSelection,2); // Satelitte collisions 
99 };
100
101 #endif
102 // Local Variables: 
103 //  mode: C++
104 // End: