1 #ifndef ALIV0VERTEXER_H
2 #define ALIV0VERTEXER_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 AliV0vertexer : public TObject {
21 void SetCuts(const Double_t cuts[7]);
22 static void SetDefaultCuts(const Double_t cuts[7]);
24 Int_t Tracks2V0vertices(AliESD *event);
26 void GetCuts(Double_t cuts[7]) const;
27 static void GetDefaultCuts(Double_t cuts[7]);
31 Double_t fgChi2max; // maximal allowed chi2
33 Double_t fgDNmin; // min allowed impact parameter for the 1st daughter
35 Double_t fgDPmin; // min allowed impact parameter for the 2nd daughter
37 Double_t fgDCAmax; // maximal allowed DCA between the daughter tracks
39 Double_t fgCPAmax; // maximal allowed cosine of V0's pointing angle
41 Double_t fgRmin, fgRmax; // max & min radii of the fiducial volume
43 Double_t fChi2max; // maximal allowed chi2
44 Double_t fDNmin; // min allowed impact parameter for the 1st daughter
45 Double_t fDPmin; // min allowed impact parameter for the 2nd daughter
46 Double_t fDCAmax; // maximal allowed DCA between the daughter tracks
47 Double_t fCPAmax; // maximal allowed cosine of V0's pointing angle
48 Double_t fRmin, fRmax; // max & min radii of the fiducial volume
50 ClassDef(AliV0vertexer,2) // V0 verterxer
53 inline AliV0vertexer::AliV0vertexer() :
65 inline void AliV0vertexer::SetCuts(const Double_t cuts[7]) {
67 fDNmin=cuts[1]; fDPmin=cuts[2];
68 fDCAmax=cuts[3]; fCPAmax=cuts[4];
69 fRmin=cuts[5]; fRmax=cuts[6];
72 inline void AliV0vertexer::SetDefaultCuts(const Double_t cuts[7]) {
74 fgDNmin=cuts[1]; fgDPmin=cuts[2];
75 fgDCAmax=cuts[3]; fgCPAmax=cuts[4];
76 fgRmin=cuts[5]; fgRmax=cuts[6];
79 inline void AliV0vertexer::GetCuts(Double_t cuts[7]) const {
81 cuts[1]=fDNmin; cuts[2]=fDPmin;
82 cuts[3]=fDCAmax; cuts[4]=fCPAmax;
83 cuts[5]=fRmin; cuts[6]=fRmax;
86 inline void AliV0vertexer::GetDefaultCuts(Double_t cuts[7]) {
88 cuts[1]=fgDNmin; cuts[2]=fgDPmin;
89 cuts[3]=fgDCAmax; cuts[4]=fgCPAmax;
90 cuts[5]=fgRmin; cuts[6]=fgRmax;