#ifndef ALIANAEXAMPLE_H #define ALIANAEXAMPLE_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id: $ */ //_________________________________________________________________________ // Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how // fill AODs with PWG4PartCorr analysis frame // Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL // Select the PID custer type of the calorimeters // Set min momentum of the cluster/tracks // Fill few histograms // //-- Author: Gustavo Conesa (INFN-LNF) // --- Root system --- class TH2F; class TH1F; // --- Analysis system --- #include "AliAnaPartCorrBaseClass.h" class AliAnaExample : public AliAnaPartCorrBaseClass { public: AliAnaExample() ; // default ctor virtual ~AliAnaExample() {;} //virtual dtor private : AliAnaExample(const AliAnaExample & g) ; // cpy ctor AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment public: TList * GetCreateOutputObjects(); void InitParameters(); void Print(const Option_t * opt) const; void MakeAnalysisFillAOD() ; void MakeAnalysisFillHistograms() ; Int_t GetPdg() const {return fPdg ;} void SetPdg( Int_t pdg ) {fPdg = pdg; } TString GetDetector() const {return fDetector ;} void SetDetector( TString calo ) {fDetector = calo; } void Terminate(TList * outputList); void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate. private: Int_t fPdg ; //identified particle id TString fDetector ; //detector selection //Histograms //CaloClusters TH1F * fhPt; //! pT distribution TH1F * fhPhi; //! phi distribution TH1F * fhEta; //! eta distribution TH2F * fh2Pt; //!pT distribution, reconstructed vs generated TH2F * fh2Phi; //! phi distribution, reconstructed vs generated TH2F * fh2Eta; //! eta distribution, reconstructed vs generated ClassDef(AliAnaExample,2) } ; #endif //ALIANAEXAMPLE_H