new shuttle machine
[u/mrichter/AliRoot.git] / PWG2 / KINK / AliResonanceKink.h
CommitLineData
f9afc48d 1#ifndef ALIRESONANCEKINK_H
2#define ALIRESONANCEKINK_H
10eaad41 3
4/* See cxx source for full Copyright notice */
5
6//------------------------------------------------------------------------------
f9afc48d 7// class AliResonanceKink
10eaad41 8// This task is an example of an analysis task
9// for analysing resonances having one kaon kink
10//Author: Paraskevi Ganoti, University of Athens (pganoti@phys.uoa.gr)
11//------------------------------------------------------------------------------
12
13class TF1;
10eaad41 14class AliESDEvent;
f27d6e67 15class AliESDtrack;
f9afc48d 16class AliESDVertex;
17class AliMCEvent;
18class TList;
19class TString;
10eaad41 20
f9afc48d 21class AliResonanceKink : public TObject {
10eaad41 22 public:
f9afc48d 23
24 enum ResonanceType {kPhi=333, kKstar0=313, kLambda1520=3124};
25 enum DaughterType {kdaughterPion=211, kdaughterKaon=321, kdaughterProton=2212};
10eaad41 26
f9afc48d 27 AliResonanceKink();
28 AliResonanceKink(Int_t nbins, Float_t nlowx, Float_t nhighx, Int_t daughter1, Int_t daughter2, Int_t resonancePDG);
29 virtual ~AliResonanceKink();
10eaad41 30
f9afc48d 31 TList* GetHistogramList();
32 void Analyse(AliESDEvent* esd, AliMCEvent* mcEvent);
10eaad41 33 Float_t GetSigmaToVertex(AliESDtrack* esdTrack) const ;
34 const AliESDVertex *GetEventVertex(const AliESDEvent* esd) const;
f9afc48d 35 void SetAnalysisType(TString type) {fAnalysisType=type;}
36 void SetPDGCodes(Int_t d1, Int_t d2, Int_t res) {fdaughter1pdg=d1; fdaughter2pdg=d2; fresonancePDGcode=res;}
37 void InitOutputHistograms(Int_t nbins, Float_t nlowx, Float_t nhighx);
38
10eaad41 39 private:
f9afc48d 40
10eaad41 41 TList *fListOfHistos; //! List
42 TH1D *fOpeningAngle; //! Opening
43 TH1D *fInvariantMass; //! invMass spectrum
44 TH1D *fInvMassTrue; //! invMassTrue spectrum
45 TH1D *fPhiBothKinks; //! bothKaonsKinks
46 TH1D *fRecPt; //! pT spectrum
47 TH1D *fRecEta; //! Eta spectrum
48 TH2D *fRecEtaPt; //! Eta pT spectrum
49 TH1D *fSimPt; //! pT Sim spectrum
50 TH1D *fSimEta; //! Eta Sim spectrum
51 TH2D *fSimEtaPt; //! Eta pT Sim spectrum
52 TH1D *fSimPtKink; //! pT Sim one kaon kink spectrum
53 TH1D *fSimEtaKink; //! Eta Sim one kaon kink spectrum spectrum
54 TH2D *fSimEtaPtKink; //! Eta pT Sim one kaon kink spectrum
55 TH1D *fhdr ; //! radial impact
56 TH1D *fhdz ; //! z impact
57 TF1 *f1;
58 TF1 *f2;
59 TString fAnalysisType;//"ESD" or "MC"
60 TH1D *fvtxz ; //! vtx z component
f9afc48d 61 Int_t fNbins; //! bins
62 Float_t fLowX;//! lowx
63 Float_t fHighX; //! high x
64 Int_t fdaughter1pdg;
65 Int_t fdaughter2pdg;
66 Int_t fresonancePDGcode;
10eaad41 67
f9afc48d 68 AliResonanceKink(const AliResonanceKink&); // not implemented
69 AliResonanceKink& operator=(const AliResonanceKink&); // not implemented
10eaad41 70
f9afc48d 71 ClassDef(AliResonanceKink, 1); // example of analysis
10eaad41 72};
73
74#endif