1 #ifndef AliEMCALPIDResponse_h
2 #define AliEMCALPIDResponse_h
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 //////////////////////////////////////////////////////////////////////////
9 // AliEMCALPIDResponse //
11 // EMCAL class to perfom PID //
12 // This is a prototype and still under development //
14 // Author: Michael Weber (m.weber@cern.ch) //
15 //////////////////////////////////////////////////////////////////////////
22 class AliEMCALPIDResponse: public TObject
25 AliEMCALPIDResponse(); //ctor
26 AliEMCALPIDResponse( const AliEMCALPIDResponse& other); //copy ructor
27 AliEMCALPIDResponse &operator=( const AliEMCALPIDResponse& other); //assignment operator
29 virtual ~AliEMCALPIDResponse(); //dtor
33 Double_t GetNumberOfSigmas( Float_t pt, Float_t eop, AliPID::EParticleType n, Int_t charge) const;
34 Double_t GetExpectedNorm ( Float_t pt, AliPID::EParticleType n, Int_t charge) const;
37 void SetPIDParams(const TObjArray * params) { fkPIDParams = params; }
38 void SetCentrality(Float_t currentCentrality) { fCurrCentrality = currentCentrality;}
42 Bool_t ComputeEMCALProbability(Int_t nSpecies, Float_t pt, Float_t eop, Int_t charge, Double_t *pEMCAL) const;
48 TF1 *fNorm; // Gauss function for normalizing NON electron probabilities
50 Double_t fCurrCentrality; // current (in the current event) centrality percentile
52 const TObjArray *fkPIDParams; // PID Params
54 const TVectorD* GetParams(Int_t nParticle, Float_t fPt, Int_t charge) const;
56 ClassDef(AliEMCALPIDResponse, 2)
59 #endif // #ifdef AliEMCALPIDResponse_cxx