]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliDisplacedVertexSelection.h
remove buggy histos
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliDisplacedVertexSelection.h
1 #ifndef ALIDISPLACEDVERTEXSELECTION_H
2 #define ALIDISPLACEDVERTEXSELECTION_H
3 #include <TObject.h>
4 class AliESDEvent;
5
6 /** 
7  * Selection of events from satellite interactions 
8  */
9 class AliDisplacedVertexSelection : public TObject 
10 {
11 public:
12   /** 
13    * Constructor 
14    */
15   AliDisplacedVertexSelection();
16   /** 
17    * Copy constructor 
18    * 
19    * @param o Object to copy from 
20    */
21   AliDisplacedVertexSelection(const AliDisplacedVertexSelection& o);
22   /** 
23    * Assingment operator 
24    * 
25    * @param o Object to assign from 
26    * 
27    * @return Reference to this object 
28    */
29   AliDisplacedVertexSelection& operator=(const AliDisplacedVertexSelection& o);
30   /** 
31    * Define the output 
32    * 
33    * @param l     List to add output to
34    * @param name  Name of the list 
35    */
36   void Output(TList* l, const char* name=0) const;
37   /** 
38    * Print information 
39    * 
40    * @param option  Not used 
41    */
42   void Print(Option_t* option="") const;
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; }
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:
72   Double_t fVertexZ;
73   Double_t fCent;
74   
75   ClassDef(AliDisplacedVertexSelection,1); // Cuts on ESD Mult 
76 };
77
78 #endif
79 // Local Variables: 
80 //  mode: C++
81 // End: