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 /* History of cvs commits:
14 //_________________________________________________________________________
15 // Example class on how to read AODCaloClusters, ESDCaloCells and AODTracks and how
16 // fill AODs with PWG4PartCorr analysis frame
17 // Select the type of detector information that you want to analyze, CTS (tracking), PHOS or EMCAL
18 // Select the PID custer type of the calorimeters
19 // Set min momentum of the cluster/tracks
20 // Fill few histograms
22 //-- Author: Gustavo Conesa (INFN-LNF)
26 #include "AliAnaBaseClass.h"
28 class AliAnaExample : public AliAnaBaseClass {
32 AliAnaExample() ; // default ctor
33 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
34 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
35 virtual ~AliAnaExample() {;} //virtual dtor
37 TList * GetCreateOutputObjects();
39 void InitParameters();
41 void Print(const Option_t * opt) const;
43 void MakeAnalysisFillAOD() ;
45 void MakeAnalysisFillHistograms() ;
47 Int_t GetPdg() const {return fPdg ;}
48 void SetPdg( Int_t pdg ) {fPdg = pdg; }
50 TString GetDetector() const {return fDetector ;}
51 void SetDetector( TString calo ) {fDetector = calo; }
55 Int_t fPdg ; //identified particle id
56 TString fDetector ; //detector selection
59 TH1F * fhPt; //! pT distribution
60 TH1F * fhPhi; //! phi distribution
61 TH1F * fhEta; //! eta distribution
62 TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
63 TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
64 TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
66 TH1F * fhNCells; //! Number of towers/crystals with signal
67 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
68 ClassDef(AliAnaExample,1)
72 #endif //ALIANAEXAMPLE_H