]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcalibV0.h
Updated flags for low flux case (A. Dainese)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibV0.h
1 #ifndef AliTPCCALIBV0_H
2 #define AliTPCCALIBV0_H
3
4
5 #include <AliTPCcalibBase.h>
6
7
8 class TTreeSRedirector;
9 class AliTPCROC;
10 class AliTPCseed;
11 class AliESDtrack;
12 class AliESDEvent;
13 class TH3F;
14 class TH1F;
15 class TH2F;
16 class TH1I;
17 class TDatabasePDG;
18 class AliKFParticle;
19 class AliKFVertex;
20 class AliESDv0;
21 class TArrayI;
22 class TTree;
23 class AliStack;
24
25 class AliTPCcalibV0 : public AliTPCcalibBase {
26 public :
27
28    // List of branches
29
30   AliTPCcalibV0();
31   virtual ~AliTPCcalibV0();
32   virtual void     Process(AliESDEvent *event) {return ProcessESD(event,0);}
33
34   //
35   //
36   //
37   void ProcessESD(AliESDEvent *esd, AliStack *stack=0);
38   void MakeMC();
39   void MakeV0s();
40   void ProcessV0(Int_t ftype);
41   void ProcessPI0();
42   Float_t TPCBetheBloch(Float_t bg);  
43   TH2F * GetHistograms();
44   void BinLogX(TH2F * h);
45   //
46   //
47   //  
48   static AliKFParticle * Fit(AliKFVertex & primVtx, AliESDv0 *v0, Int_t PDG1, Int_t PDG2);
49   void     Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
50   void     Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
51
52 protected:
53 private:
54
55    AliTPCcalibV0(const AliTPCcalibV0&); // Not implemented
56    AliTPCcalibV0& operator=(const AliTPCcalibV0&); // Not implemented
57
58
59    AliStack       *fStack;        // pointer to kinematic tree        
60    AliESDEvent    *fESD;              //! current ED to proccess - NOT OWNER
61    TDatabasePDG   *fPdg;              // particle database
62    TObjArray      *fParticles;         // array of selected MC particles
63    TObjArray      *fV0s;               // array of V0s
64    TObjArray      *fGammas;           // gamma conversion candidates
65    //
66    TArrayI        *fV0type;            // array of types for V0s       
67    TH2F           *fTPCdEdx;              // dEdx spectra
68    TH2F           *fTPCdEdxPi;            // dEdx spectra - pion anti-pion
69    TH2F           *fTPCdEdxEl;            // dEdx spectra - electroen -positrons from gamma
70    TH2F           *fTPCdEdxP;             // dEdx spectra - proton antiproton - lambda -  antilambda
71    //       
72    ClassDef(AliTPCcalibV0,1);
73 };
74
75
76 #endif