#ifndef ALIANAPI0_H #define ALIANAPI0_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id: $ */ //_________________________________________________________________________ // Class to fill two-photon invariant mass hisograms // to be used to extract pi0 raw yield. // //-- Author: Dmitri Peressounko (RRC "KI") //-- Adapted to PartCorr frame by Lamia Benhabib (SUBATECH) //-- and Gustavo Conesa (INFN-Frascati) //Root class TList; class TH3D ; class TH2D ; class TObjString; //Analysis #include "AliAnaPartCorrBaseClass.h" class AliAODEvent ; class AliESDEvent ; class AliAODPWG4Particle ; class AliAnaPi0 : public AliAnaPartCorrBaseClass { public: AliAnaPi0() ; // default ctor virtual ~AliAnaPi0() ;//virtual dtor private: AliAnaPi0(const AliAnaPi0 & g) ; // cpy ctor AliAnaPi0 & operator = (const AliAnaPi0 & api0) ;//cpy assignment public: TObjString * GetAnalysisCuts(); TList * GetCreateOutputObjects(); void Print(const Option_t * opt) const; //void Init(); void InitParameters(); void FillAcceptanceHistograms(); //void MakeAnalysisFillAOD() {;} //Not needed void MakeAnalysisFillHistograms(); // void SetBadRunsList(){;} ; //Set list of runs which can be used for this analysis //To be defined in future. //Setters for parameters of event buffers void SetNCentrBin(Int_t n=5) {fNCentrBin=n ;} //number of bins in centrality // void SetNZvertBin(Int_t n=5) {fNZvertBin=n ;} //number of bins for vertex position // void SetNRPBin(Int_t n=6) {fNrpBin=n ;} //number of bins in reaction plain void SetNMaxEvMix(Int_t n=20){fNmaxMixEv=n ;} //Maximal number of events for mixing //Setters for event selection // void SetZvertexCut(Float_t zcut=40.){fZvtxCut=zcut ;} //cut on vertex position TString GetCalorimeter() const {return fCalorimeter ; } void SetCalorimeter(TString det) {fCalorimeter = det ; } void Terminate(TList* outputList); void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate. void SetNumberOfModules(Int_t nmod) {fNModules = nmod;} Int_t GetNPID() const {return fNPID ; } void SetNPID(Int_t n) {fNPID = n ; } void SwitchOnAngleSelection() {fUseAngleCut = kTRUE ; } void SwitchOffAngleSelection() {fUseAngleCut = kFALSE ; } virtual Int_t GetEventIndex(AliAODPWG4Particle * part, Double_t * vert) ; void SwitchOnOwnMix() {fDoOwnMix = kTRUE ; } void SwitchOffOwnMix() {fDoOwnMix = kFALSE ; } //Cuts for multiple analysis void SwitchOnMultipleCutAnalysis() {fMultiCutAna = kTRUE;} void SwitchOffMultipleCutAnalysis() {fMultiCutAna = kFALSE;} void SetNPtCuts (Int_t size) {if(size <= 5)fNPtCuts = size; } void SetNAsymCuts (Int_t size) {if(size <= 5)fNAsymCuts = size; } void SetNNCellCuts(Int_t size) {if(size <= 5)fNCellNCuts = size; } void SetNPIDBits (Int_t size) {if(size <= 5)fNPIDBits = size; } void SetPtCutsAt (Int_t pos,Float_t val) {if(pos < 5)fPtCuts[pos] = val;} void SetAsymCutsAt (Int_t pos,Float_t val) {if(pos < 5)fAsymCuts[pos] = val;} void SetNCellCutsAt(Int_t pos,Int_t val) {if(pos < 5)fCellNCuts[pos] = val;} void SetPIDBitsAt (Int_t pos,Int_t val) {if(pos < 5)fPIDBits[pos] = val;} private: Bool_t IsBadRun(Int_t /*iRun*/) const {return kFALSE;} //Tests if this run bad according to private list private: Bool_t fDoOwnMix; // Do combinatorial background not the one provided by the frame Int_t fNCentrBin ; // Number of bins in event container for centrality // Int_t fNZvertBin ; // Number of bins in event container for vertex position // Int_t fNrpBin ; // Number of bins in event container for reaction plain Int_t fNPID ; // Number of possible PID combinations Int_t fNmaxMixEv ; // Maximal number of events stored in buffer for mixing // Float_t fZvtxCut ; // Cut on vertex position TString fCalorimeter ; // Select Calorimeter for IM Int_t fNModules ; // Number of EMCAL/PHOS modules, set as many histogras as modules Bool_t fUseAngleCut ; // Select pairs depending on their opening angle TList ** fEventsList ; //! Containers for photons in stored events Bool_t fMultiCutAna; // Do analysis with several or fixed cut Int_t fNPtCuts; // number of pt cuts Float_t fPtCuts[5]; // array with different pt cuts Int_t fNAsymCuts; // number of assymmetry cuts Float_t fAsymCuts[5]; // array with different assymetry cuts Int_t fNCellNCuts; // number of cuts with number of cells in cluster Int_t fCellNCuts[5]; // array with different cell number cluster cuts Int_t fNPIDBits; // number of PID bits to check in multi cuts option Int_t fPIDBits[5]; // array with different pid bits //Histograms TH3D ** fhReMod ; //!REAL two-photon invariant mass distribution for different calorimeter modules. TH3D ** fhReDiffMod ; //!REAL two-photon invariant mass distribution for different clusters in different calorimeter modules. TH3D ** fhRe1 ; //!REAL two-photon invariant mass distribution for different centralities and PID TH3D ** fhMi1 ; //!MIXED two-photon invariant mass distribution for different centralities and PID TH3D ** fhRe2 ; //!REAL two-photon invariant mass distribution for different centralities and PID TH3D ** fhMi2 ; //!MIXED two-photon invariant mass distribution for different centralities and PID TH3D ** fhRe3 ; //!REAL two-photon invariant mass distribution for different centralities and PID TH3D ** fhMi3 ; //!MIXED two-photon invariant mass distribution for different centralities and PID TH3D ** fhReInvPt1 ; //!REAL two-photon invariant mass distribution for different centralities and PID, inverse pT TH3D ** fhMiInvPt1 ; //!MIXED two-photon invariant mass distribution for different centralities and PID, inverse pT TH3D ** fhReInvPt2 ; //!REAL two-photon invariant mass distribution for different centralities and PID, inverse pT TH3D ** fhMiInvPt2 ; //!MIXED two-photon invariant mass distribution for different centralities and PID, inverse pT TH3D ** fhReInvPt3 ; //!REAL two-photon invariant mass distribution for different centralities and PID, inverse pT TH3D ** fhMiInvPt3 ; //!MIXED two-photon invariant mass distribution for different centralities and PID, inverse pT //Multiple cuts TH2D ** fhRePtNCellAsymCuts ; //!REAL two-photon invariant mass distribution for different pt cut, n cell cuts and assymetry TH2D ** fhRePIDBits ; //!REAL two-photon invariant mass distribution for different PID bits TH3D * fhRePtMult ; //!REAL two-photon invariant mass distribution for different track multiplicity TH3D * fhRePtMultAsy07 ; //!REAL two-photon invariant mass distribution for different track multiplicity, asymetry < 0.7 TH3D * fhEvents; //!Number of events per centrality, RP, zbin TH2D * fhRealOpeningAngle ; //! Opening angle of pair versus pair energy TH2D * fhRealCosOpeningAngle ; //! Cosinus of opening angle of pair version pair energy //Acceptance TH1D * fhPrimPt ; //! Spectrum of Primary TH1D * fhPrimAccPt ; //! Spectrum of primary with accepted daughters TH1D * fhPrimY ; //! Rapidity distribution of primary particles TH1D * fhPrimAccY ; //! Rapidity distribution of primary with accepted daughters TH1D * fhPrimPhi ; //! Azimutal distribution of primary particles TH1D * fhPrimAccPhi; //! Azimutal distribution of primary with accepted daughters TH2D * fhPrimOpeningAngle ; //! Opening angle of pair versus pair energy, primaries TH2D * fhPrimCosOpeningAngle ; //! Cosinus of opening angle of pair version pair energy, primaries ClassDef(AliAnaPi0,10) } ; #endif //ALIANAPI0_H