- Removing AliMpSegFactory -> using AliMpSegmentation instead
[u/mrichter/AliRoot.git] / PWG3 / AliQuarkoniaAcceptance.h
CommitLineData
d587d4f0 1#ifndef ALIQUARKONIAACCEPTANCE_H
2#define ALIQUARKONIAACCEPTANCE_H
3
4/* $Id$ */
5//===================================================================
6// class AliQUARKONIAACCEPTANCE
7// This class will provide the quarkonia decay acceptance in ALICE
8// for different resonances :
9// kJpsi
10// kPsiP
11// kUpsilon
12// kUpsilonP
13// kUpsilonPP
14// and for some vector mesons :
15// kPhi
16// kOmega
17// and different channels
18// kDimuon
19// kDielectron
20//
21// Acceptance for the Dimuon channel is defined with respect to
22// a flat distribution of quarkonia emited in the rapidity range
23// -4 < y < -2.5. Acceptance is defined as both muon from the
24// decay to be in the theta range 171. < theta < 178.
25//
26// Gines MARTINEZ, Subatech, May 06
27//===================================================================
28#include "TNamed.h"
29class TH2F;
30class TString;
31
32
33class AliQuarkoniaAcceptance : public TNamed
34{
35 public:
36
37 enum quarkonia{kJpsi, kPsiP, kUpsilon, kUpsilonP, kUpsilonPP, kOmega, kPhi};
38 enum channel{kDimuon, kDielectron};
39
40 AliQuarkoniaAcceptance(Int_t quarkoniaResonance=kJpsi, Int_t decayChannel=kDimuon);
41 virtual ~AliQuarkoniaAcceptance();
42 void Init();
43 TH2F* GetAcceptanceHisto() const;
44 void GetAcceptance(Float_t rap, Float_t pT, Double_t & accep, Double_t & error);
45 void SetAcceptanceFileName(char * acceptanceFileName) { fAcceptanceFileName = acceptanceFileName; }
46 void SetQuarkoniaResonance(Int_t quarkoniaResonance=kJpsi) { fQuarkoniaResonance= quarkoniaResonance;}
47 void SetDecayChannel(Int_t decayChannel=kDimuon) { fDecayChannel = decayChannel;}
48
49 protected:
50 AliQuarkoniaAcceptance(const AliQuarkoniaAcceptance& rhs);
51 AliQuarkoniaAcceptance& operator=(const AliQuarkoniaAcceptance& rhs);
52
53 TString fAcceptanceFileName; // Name of the acceptance root file
54 Int_t fQuarkoniaResonance; // Resonance Acceptance
55 Int_t fDecayChannel; // Studied decay channel
56 TH2F * fAcceptance; // Acceptance histogram
57
58 private:
59
60 ClassDef(AliQuarkoniaAcceptance,1)
61 };
62#endif
63