X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FAliD0toKpiAnalysis.h;h=bc6ebcff56b7c240aa6b0722a19b48068dd7717a;hb=5125d6e52cbc5716c0a373a93a364870c51d2841;hp=be493cefb4842e7b021e32bfc34b2a31b067fe95;hpb=7b84ea57b6f35dde14b5907106069fb156f17cb5;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/AliD0toKpiAnalysis.h b/ANALYSIS/AliD0toKpiAnalysis.h index be493cefb48..bc6ebcff56b 100644 --- a/ANALYSIS/AliD0toKpiAnalysis.h +++ b/ANALYSIS/AliD0toKpiAnalysis.h @@ -7,13 +7,13 @@ // Class AliD0toKpiAnalysis // Reconstruction and analysis D0 -> K^- pi^+ // -// Origin: A. Dainese andrea.dainese@pd.infn.it +// Origin: A. Dainese andrea.dainese@lnl.infn.it //------------------------------------------------------------------------- #include #include #include "AliESD.h" -#include "AliITStrackV2.h" +#include "AliRun.h" //----------------------------------------------------------------------------- class AliD0toKpiAnalysis : public TNamed { @@ -26,10 +26,8 @@ class AliD0toKpiAnalysis : public TNamed { const Char_t *outName="AliD0toKpi_sele.root") const; void FindCandidates(Int_t evFirst=0,Int_t evLast=0, const Char_t *outName="AliD0toKpi.root"); - void FindCandidatesESD(Int_t evFirst=0,Int_t evLast=0, - const Char_t *outName="AliD0toKpi.root"); + void MakeTracksRefFile(AliRun *gAlice,Int_t evFirst=0,Int_t evLast=0) const; void PrintStatus() const; - void SetBz(Double_t bz=-9999.) { fBz=bz; } void SetVertexOnTheFly() { fVertexOnTheFly=kTRUE; } void SetSimulation() { fSim=kTRUE; } void SetOnlySignal() { fOnlySignal=kTRUE; } @@ -42,11 +40,9 @@ class AliD0toKpiAnalysis : public TNamed { Double_t cut7=100000000.,Double_t cut8=-1.1); void SetD0Cuts(const Double_t cuts[9]); void SetPID(const Char_t * pid="TOFparam_PbPb") { fPID=pid; } - void SetDebug() { fDebug=kTRUE; } // private: // - Double_t fBz; // value of the magnetic field Bool_t fVertexOnTheFly; // flag for primary vertex reco on the fly Bool_t fSim; // flag for the analysis of simulated events Bool_t fOnlySignal; // write to file only signal candidates (for sim) @@ -68,27 +64,18 @@ class AliD0toKpiAnalysis : public TNamed { // 7 = d0d0 [micron^2] // 8 = cosThetaPoint - Bool_t fDebug; // debug option // Double_t CalculateTOFmass(Double_t mom,Double_t length,Double_t time) const; - void MakeTracksRefFile(Int_t evFirst=0,Int_t evLast=0) const; - void MakeTracksRefFileESD() const; Bool_t SelectInvMass(const Double_t p[6]) const; - void SelectTracks(TTree &trkTree, + void SelectTracks(AliESD *event, TObjArray &trksP,Int_t *trkEntryP,Int_t &nTrksP, TObjArray &trksN,Int_t *trkEntryN,Int_t &nTrksN) const; - void SelectTracksESD(AliESD &event, - TObjArray &trksP,Int_t *trkEntryP,Int_t &nTrksP, - TObjArray &trksN,Int_t *trkEntryN,Int_t &nTrksN) const; - void SelectTracksESDvtx(AliESD &event,TTree *trkTree, - TObjArray &trksP,Int_t *trkEntryP,Int_t &nTrksP, - TObjArray &trksN,Int_t *trkEntryN,Int_t &nTrksN) const; void SetVertex1(Double_t x=0.,Double_t y=0.,Double_t z=0.) { fV1[0]=x;fV1[1]=y;fV1[2]=z; } void SimulationInfo(TTree *treeD0in,TTree *treeD0out) const; - Bool_t SingleTrkCuts(const AliITStrackV2& trk) const; + Bool_t SingleTrkCuts(const AliESDtrack& trk, Double_t b) const; // - ClassDef(AliD0toKpiAnalysis,1) // Reconstruction of D0 candidates class + ClassDef(AliD0toKpiAnalysis,3) // Reconstruction of D0 candidates class };