3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //_________________________________________________________________________
8 // Class for track/cluster acceptance selection
9 // Selection in Central barrel, EMCAL and PHOS
11 //*-- Author: Gustavo Conesa (INFN-LNF)
13 // --- ROOT system ---
16 class TLorentzVector ;
19 //--- AliRoot system ---
21 class AliAODCaloCluster;
22 class AliAODPWG4Particle;
25 class AliCaloPID : public TObject {
29 AliCaloPID() ; // ctor
30 AliCaloPID(const AliCaloPID & g) ; // cpy ctor
31 AliCaloPID & operator = (const AliCaloPID & g) ;//cpy assignment
32 virtual ~AliCaloPID() ;//virtual dtor
40 kNeutralHadron = 2112,
42 kNeutralUnknown = 130,
47 enum mcTypes {kMCPrompt, kMCFragmentation, kMCPi0Decay, kMCEtaDecay, kMCOtherDecay, kMCPi0, kMCEta, kMCElectron, kMCConversion, kMCUnknown};
49 void InitParameters();
50 Int_t CheckOrigin(const Int_t label, AliStack * stack) const ;
52 Int_t GetPdg(const TString calo, const Double_t * pid, const Float_t energy) const ;
54 Int_t GetPdg(const TString calo,const TLorentzVector mom, const AliAODCaloCluster * cluster) const ;
56 TString GetPIDParametersList();
58 void SetPIDBits(const TString calo, const AliAODCaloCluster * cluster, AliAODPWG4Particle *aodph);
60 void Print(const Option_t * opt)const;
63 Float_t GetEMCALPhotonWeight() const { return fEMCALPhotonWeight ; }
64 Float_t GetEMCALPi0Weight() const { return fEMCALPi0Weight ; }
65 Float_t GetEMCALElectronWeight() const { return fEMCALElectronWeight ; }
66 Float_t GetEMCALChargeWeight() const { return fEMCALChargeWeight ; }
67 Float_t GetEMCALNeutralWeight() const { return fEMCALNeutralWeight ; }
68 Float_t GetPHOSPhotonWeight() const { return fPHOSPhotonWeight ; }
69 Float_t GetPHOSPi0Weight() const { return fPHOSPi0Weight ; }
70 Float_t GetPHOSElectronWeight() const { return fPHOSElectronWeight ; }
71 Float_t GetPHOSChargeWeight() const { return fPHOSChargeWeight ; }
72 Float_t GetPHOSNeutralWeight() const { return fPHOSNeutralWeight ; }
74 Bool_t IsPHOSPIDWeightFormulaOn() const { return fPHOSWeightFormula ; }
75 TFormula * GetPHOSPhotonWeightFormula() const { return fPHOSPhotonWeightFormula ; }
76 TFormula * GetPHOSPi0WeightFormula() const { return fPHOSPi0WeightFormula ; }
79 void SetEMCALPhotonWeight(Float_t w){ fEMCALPhotonWeight = w ; }
80 void SetEMCALPi0Weight(Float_t w){ fEMCALPi0Weight = w ; }
81 void SetEMCALElectronWeight(Float_t w){ fEMCALElectronWeight = w ; }
82 void SetEMCALChargeWeight(Float_t w){ fEMCALChargeWeight = w ; }
83 void SetEMCALNeutralWeight(Float_t w){ fEMCALNeutralWeight = w ; }
84 void SetPHOSPhotonWeight(Float_t w){ fPHOSPhotonWeight = w ; }
85 void SetPHOSPi0Weight(Float_t w){ fPHOSPi0Weight = w ; }
86 void SetPHOSElectronWeight(Float_t w){ fPHOSElectronWeight = w ; }
87 void SetPHOSChargeWeight(Float_t w){ fPHOSChargeWeight = w ; }
88 void SetPHOSNeutralWeight(Float_t w){ fPHOSNeutralWeight = w ; }
90 void UsePHOSPIDWeightFormula(Bool_t par) { fPHOSWeightFormula = par; }
91 void SetPHOSPhotonWeightFormula(TFormula * photon) { fPHOSPhotonWeightFormula = photon; }
92 void SetPHOSPi0WeightFormula(TFormula * pi0) { fPHOSPi0WeightFormula = pi0; }
94 //PID bits setters and getters
95 void SetDispersionCut(Float_t dcut ) {fDispCut = dcut; }
96 Float_t GetDispersionCut() const {return fDispCut ;}
98 void SetTOFCut(Float_t tcut ) {fTOFCut = tcut; }
99 Float_t GetTOFCut() const {return fTOFCut ;}
101 void SetDebug(Int_t deb) {fDebug=deb;}
102 Int_t GetDebug() const {return fDebug;}
106 Float_t fEMCALPhotonWeight; //Bayesian PID weight for photons in EMCAL
107 Float_t fEMCALPi0Weight; //Bayesian PID weight for pi0 in EMCAL
108 Float_t fEMCALElectronWeight; //Bayesian PID weight for electrons in EMCAL
109 Float_t fEMCALChargeWeight; //Bayesian PID weight for charged hadrons in EMCAL
110 Float_t fEMCALNeutralWeight; //Bayesian PID weight for neutral hadrons in EMCAL
111 Float_t fPHOSPhotonWeight; //Bayesian PID weight for photons in PHOS
112 Float_t fPHOSPi0Weight; //Bayesian PID weight for pi0 in PHOS
113 Float_t fPHOSElectronWeight; //Bayesian PID weight for electrons in PHOS
114 Float_t fPHOSChargeWeight; //Bayesian PID weight for charged hadrons in PHOS
115 Float_t fPHOSNeutralWeight; //Bayesian PID weight for neutral hadrons in PHOS
117 Bool_t fPHOSWeightFormula ; //Use parametrized weight threshold, function of energy
118 TFormula * fPHOSPhotonWeightFormula ; //Formula for photon weight
119 TFormula * fPHOSPi0WeightFormula ; //Formula for pi0 weight
121 Float_t fDispCut; //Cut on dispersion, used in PID evaluation
122 Float_t fTOFCut; //Cut on TOF, used in PID evaluation
124 Int_t fDebug; //Debug level
126 ClassDef(AliCaloPID,2)
130 #endif //ALICALOPID_H