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 //------------------------------------------------------------------
9 // Origin: Iouri Belikov, IReS, Strasbourg, Jouri.Belikov@cern.ch
10 //------------------------------------------------------------------
17 //_____________________________________________________________________________
18 class AliV0vertexer : public TObject {
21 AliV0vertexer(const Double_t cuts[7]);
22 void SetCuts(const Double_t cuts[7]);
24 Int_t Tracks2V0vertices(const TFile *in, TFile *out);
25 Double_t PropagateToDCA(AliITStrackV2 *nt, AliITStrackV2 *pt);
27 void GetCuts(Double_t cuts[7]) const;
30 Double_t fChi2max; // maximal allowed chi2
31 Double_t fDNmin; // min. allowed negative daughter's impact parameter
32 Double_t fDPmin; // min. allowed positive daughter's impact parameter
33 Double_t fDCAmax; // maximal allowed DCA between the daughter tracks
34 Double_t fCPAmax; // maximal allowed cosine of V0's pointing angle
35 Double_t fRmin, fRmax; // max & min radii of the fiducial volume
37 ClassDef(AliV0vertexer,1) // V0 verterxer
40 inline AliV0vertexer::AliV0vertexer() {
42 fDNmin=0.015; fDPmin=0.015;
43 fDCAmax=0.01; fCPAmax=0.025;
47 inline AliV0vertexer::AliV0vertexer(const Double_t cuts[7]) {
49 fDNmin=cuts[1]; fDPmin=cuts[2];
50 fDCAmax=cuts[3]; fCPAmax=cuts[4];
51 fRmin=cuts[5]; fRmax=cuts[6];
54 inline void AliV0vertexer::SetCuts(const Double_t cuts[7]) {
56 fDNmin=cuts[1]; fDPmin=cuts[2];
57 fDCAmax=cuts[3]; fCPAmax=cuts[4];
58 fRmin=cuts[5]; fRmax=cuts[6];
61 inline void AliV0vertexer::GetCuts(Double_t cuts[7]) const {
63 cuts[1]=fDNmin; cuts[2]=fDPmin;
64 cuts[3]=fDCAmax; cuts[4]=fCPAmax;
65 cuts[5]=fRmin; cuts[6]=fRmax;