1 #ifndef ALIANAEXAMPLE_H
2 #define ALIANAEXAMPLE_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
7 //_________________________________________________________________________
8 // Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how
9 // fill AODs with PWG4PartCorr analysis frame
10 // Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL
11 // Select the PID custer type of the calorimeters
12 // Set min momentum of the cluster/tracks
13 // Fill few histograms
15 //-- Author: Gustavo Conesa (INFN-LNF)
17 // --- Root system ---
21 // --- Analysis system ---
22 #include "AliAnaPartCorrBaseClass.h"
24 class AliAnaExample : public AliAnaPartCorrBaseClass {
27 AliAnaExample() ; // default ctor
28 virtual ~AliAnaExample() {;} //virtual dtor
31 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
32 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
36 TList * GetCreateOutputObjects();
38 void InitParameters();
40 void Print(const Option_t * opt) const;
42 void MakeAnalysisFillAOD() ;
44 void MakeAnalysisFillHistograms() ;
46 Int_t GetPdg() const {return fPdg ;}
47 void SetPdg( Int_t pdg ) {fPdg = pdg; }
49 TString GetDetector() const {return fDetector ;}
50 void SetDetector( TString calo ) {fDetector = calo; }
52 void Terminate(TList * outputList);
53 void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate.
57 Int_t fPdg ; //identified particle id
58 TString fDetector ; //detector selection
61 TH1F * fhPt; //! pT distribution
62 TH1F * fhPhi; //! phi distribution
63 TH1F * fhEta; //! eta distribution
64 TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
65 TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
66 TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
68 TH1F * fhNCells; //! Number of towers/crystals with signal
69 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
70 ClassDef(AliAnaExample,1)
74 #endif //ALIANAEXAMPLE_H