3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 /* History of cvs commits:
14 //_________________________________________________________________________
15 // Class for track/cluster acceptance selection
16 // Selection in Central barrel, EMCAL and PHOS
18 //*-- Author: Gustavo Conesa (INFN-LNF)
20 // --- ROOT system ---
24 class TLorentzVector ;
27 //--- AliRoot system ---
30 class AliCaloPID : public TObject {
34 AliCaloPID() ; // ctor
35 AliCaloPID(const AliCaloPID & g) ; // cpy ctor
36 AliCaloPID & operator = (const AliCaloPID & g) ;//cpy assignment
37 virtual ~AliCaloPID() ;//virtual dtor
45 kNeutralHadron = 2112,
47 kNeutralUnknown = 130,
51 enum PhotonStatusType {
60 void InitParameters();
62 void Print(const Option_t * opt)const;
64 Int_t GetPdg(const TString calo, const Double_t * pid, const Float_t energy) const ;
65 Int_t GetPdg(const TString calo, const TLorentzVector mom, const Double_t l0, const Double_t l1, const Double_t disp, const Double_t tof, const Double_t distCPV) const ;
68 Float_t GetEMCALPhotonWeight() const { return fEMCALPhotonWeight ; }
69 Float_t GetEMCALPi0Weight() const { return fEMCALPi0Weight ; }
70 Float_t GetEMCALElectronWeight() const { return fEMCALElectronWeight ; }
71 Float_t GetEMCALChargeWeight() const { return fEMCALChargeWeight ; }
72 Float_t GetEMCALNeutralWeight() const { return fEMCALNeutralWeight ; }
73 Float_t GetPHOSPhotonWeight() const { return fPHOSPhotonWeight ; }
74 Float_t GetPHOSPi0Weight() const { return fPHOSPi0Weight ; }
75 Float_t GetPHOSElectronWeight() const { return fPHOSElectronWeight ; }
76 Float_t GetPHOSChargeWeight() const { return fPHOSChargeWeight ; }
77 Float_t GetPHOSNeutralWeight() const { return fPHOSNeutralWeight ; }
79 Bool_t IsPHOSPIDWeightFormulaOn() const { return fPHOSWeightFormula ; }
80 TFormula * GetPHOSPhotonWeightFormula() const { return fPHOSPhotonWeightFormula ; }
81 TFormula * GetPHOSPi0WeightFormula() const { return fPHOSPi0WeightFormula ; }
84 void SetEMCALPhotonWeight(Float_t w){ fEMCALPhotonWeight = w ; }
85 void SetEMCALPi0Weight(Float_t w){ fEMCALPi0Weight = w ; }
86 void SetEMCALElectronWeight(Float_t w){ fEMCALElectronWeight = w ; }
87 void SetEMCALChargeWeight(Float_t w){ fEMCALChargeWeight = w ; }
88 void SetEMCALNeutralWeight(Float_t w){ fEMCALNeutralWeight = w ; }
89 void SetPHOSPhotonWeight(Float_t w){ fPHOSPhotonWeight = w ; }
90 void SetPHOSPi0Weight(Float_t w){ fPHOSPi0Weight = w ; }
91 void SetPHOSElectronWeight(Float_t w){ fPHOSElectronWeight = w ; }
92 void SetPHOSChargeWeight(Float_t w){ fPHOSChargeWeight = w ; }
93 void SetPHOSNeutralWeight(Float_t w){ fPHOSNeutralWeight = w ; }
95 void UsePHOSPIDWeightFormula(Bool_t par) { fPHOSWeightFormula = par; }
96 void SetPHOSPhotonWeightFormula(TFormula * photon) { fPHOSPhotonWeightFormula = photon; }
97 void SetPHOSPi0WeightFormula(TFormula * pi0) { fPHOSPi0WeightFormula = pi0; }
101 Float_t fEMCALPhotonWeight; //Bayesian PID weight for photons in EMCAL
102 Float_t fEMCALPi0Weight; //Bayesian PID weight for pi0 in EMCAL
103 Float_t fEMCALElectronWeight; //Bayesian PID weight for electrons in EMCAL
104 Float_t fEMCALChargeWeight; //Bayesian PID weight for charged hadrons in EMCAL
105 Float_t fEMCALNeutralWeight; //Bayesian PID weight for neutral hadrons in EMCAL
106 Float_t fPHOSPhotonWeight; //Bayesian PID weight for photons in PHOS
107 Float_t fPHOSPi0Weight; //Bayesian PID weight for pi0 in PHOS
108 Float_t fPHOSElectronWeight; //Bayesian PID weight for electrons in PHOS
109 Float_t fPHOSChargeWeight; //Bayesian PID weight for charged hadrons in PHOS
110 Float_t fPHOSNeutralWeight; //Bayesian PID weight for neutral hadrons in PHOS
112 Bool_t fPHOSWeightFormula ; //Use parametrized weight threshold, function of energy
113 TFormula * fPHOSPhotonWeightFormula ; //Formula for photon weight
114 TFormula * fPHOSPi0WeightFormula ; //Formula for pi0 weight
117 ClassDef(AliCaloPID,1)
121 #endif //ALICALOPID_H