1 #ifndef AliLightV0vertexer_H
2 #define AliLightV0vertexer_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 //------------------------------------------------------------------
8 // reads tracks writes out V0 vertices
9 // Origin: Iouri Belikov, IReS, Strasbourg, Jouri.Belikov@cern.ch
10 //------------------------------------------------------------------
17 //_____________________________________________________________________________
18 class AliLightV0vertexer : public TObject {
21 void SetCuts(const Double_t cuts[7]);
22 static void SetDefaultCuts(const Double_t cuts[7]);
24 Int_t Tracks2V0vertices(AliESDEvent *event);
26 void GetCuts(Double_t cuts[7]) const;
27 static void GetDefaultCuts(Double_t cuts[7]);
29 static void SetDefaultMaxEta(Double_t lMaxEta);
30 static void SetDefaultMinClusters(Double_t lMaxEta);
31 void SetMaxEta(Double_t lMaxEta);
32 void SetMinClusters(Double_t lMaxEta);
37 Double_t fgChi2max; // maximal allowed chi2
39 Double_t fgDNmin; // min allowed impact parameter for the 1st daughter
41 Double_t fgDPmin; // min allowed impact parameter for the 2nd daughter
43 Double_t fgDCAmax; // maximal allowed DCA between the daughter tracks
45 Double_t fgCPAmin; // minimal allowed cosine of V0's pointing angle
47 Double_t fgRmin, fgRmax; // max & min radii of the fiducial volume
49 static Double_t fgMaxEta; // maximum eta value for track pre-selection
50 static Double_t fgMinClusters; // minimum single-track clusters value (>=)
52 Double_t fChi2max; // maximal allowed chi2
53 Double_t fDNmin; // min allowed impact parameter for the 1st daughter
54 Double_t fDPmin; // min allowed impact parameter for the 2nd daughter
55 Double_t fDCAmax; // maximal allowed DCA between the daughter tracks
56 Double_t fCPAmin; // minimal allowed cosine of V0's pointing angle
57 Double_t fRmin, fRmax; // max & min radii of the fiducial volume
59 Double_t fMaxEta; // maximum eta value for track pre-selection
60 Double_t fMinClusters; // minimum single-track clusters value (>=)
62 ClassDef(AliLightV0vertexer,3) // V0 verterxer
65 inline AliLightV0vertexer::AliLightV0vertexer() :
75 fMinClusters(fgMinClusters)
79 inline void AliLightV0vertexer::SetCuts(const Double_t cuts[7]) {
81 fDNmin=cuts[1]; fDPmin=cuts[2];
82 fDCAmax=cuts[3]; fCPAmin=cuts[4];
83 fRmin=cuts[5]; fRmax=cuts[6];
86 inline void AliLightV0vertexer::SetDefaultCuts(const Double_t cuts[7]) {
88 fgDNmin=cuts[1]; fgDPmin=cuts[2];
89 fgDCAmax=cuts[3]; fgCPAmin=cuts[4];
90 fgRmin=cuts[5]; fgRmax=cuts[6];
93 inline void AliLightV0vertexer::GetCuts(Double_t cuts[7]) const {
95 cuts[1]=fDNmin; cuts[2]=fDPmin;
96 cuts[3]=fDCAmax; cuts[4]=fCPAmin;
97 cuts[5]=fRmin; cuts[6]=fRmax;
100 inline void AliLightV0vertexer::GetDefaultCuts(Double_t cuts[7]) {
102 cuts[1]=fgDNmin; cuts[2]=fgDPmin;
103 cuts[3]=fgDCAmax; cuts[4]=fgCPAmin;
104 cuts[5]=fgRmin; cuts[6]=fgRmax;
107 inline void AliLightV0vertexer::SetDefaultMaxEta(Double_t lMaxEta) {
110 inline void AliLightV0vertexer::SetDefaultMinClusters(Double_t lMinClusters) {
111 fgMinClusters = lMinClusters;
113 inline void AliLightV0vertexer::SetMaxEta(Double_t lMaxEta) {
116 inline void AliLightV0vertexer::SetMinClusters(Double_t lMinClusters) {
117 fMinClusters = lMinClusters;