2 * @file AliDisplacedVertexSelection.h
3 * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
4 * @date Thu Feb 7 00:53:03 2013
6 * @brief Selection of events from satellite interactions
8 * @ingroup pwglf_forward_aod
11 #ifndef ALIDISPLACEDVERTEXSELECTION_H
12 #define ALIDISPLACEDVERTEXSELECTION_H
21 * Selection of events from satellite interactions
23 * @ingroup pwglf_forward_aod
25 class AliDisplacedVertexSelection : public TObject
31 AliDisplacedVertexSelection();
35 * @param o Object to copy from
37 AliDisplacedVertexSelection(const AliDisplacedVertexSelection& o);
41 * @param o Object to assign from
43 * @return Reference to this object
45 AliDisplacedVertexSelection& operator=(const AliDisplacedVertexSelection& o);
49 * @param l List to add output to
50 * @param name Name of the list
51 * @param mc True if we're looking at MC data
53 void SetupForData(TList* l, const char* name=0, Bool_t mc=false);
57 * @param option Not used
59 void Print(Option_t* option="") const;
61 * Process an ESD event to get the information
63 * @param esd ESD event
65 * @return true on success
67 Bool_t Process(const AliESDEvent* esd);
69 * Process an MC event to find true satellite vertex
71 * @param mcevent MC event
73 * @return true if found or not MC input, false in case of problems
75 Bool_t ProcessMC(const AliMCEvent* mcevent);
77 * Check if this event is marked as a satellite interaction
79 * @return true if the found vertex isn't invalid
81 Bool_t IsSatellite() const { return fVertexZ != kInvalidVtxZ; }
83 * Get the interaction point Z-coordinate from ZDC timing.
86 * @return Interaction point Z-coordinate
88 Double_t GetVertexZ() const { return fVertexZ; }
90 * Return the centrality percentile
93 * @return Centrality percentile (ZDC vs ZEM)
95 Double_t GetCentralityPercentile() const { return fCent; }
97 Bool_t CheckOutlier(Int_t ivtx, const AliESDEvent* esd) const;
98 Float_t GetZemCorr(Int_t k, Bool_t minusminus) const;
108 TH2D* fCorrelationZemZdc;
109 TH2D* fCorrelationSumDelta;
110 Double_t fVertexZ; // Interaction point Z-coordinate
111 Double_t fCent; // Centrality percentile
112 TH1D* fHVertexZ; // Histogram of vertices
113 TH1D* fHCent; // Histogram of centrality
114 Bool_t fMC; // MC flag
116 ClassDef(AliDisplacedVertexSelection,4); // Satelitte collisions