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 {
28 AliAnaExample() ; // default ctor
29 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
30 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
31 virtual ~AliAnaExample() {;} //virtual dtor
33 TList * GetCreateOutputObjects();
35 void InitParameters();
37 void Print(const Option_t * opt) const;
39 void MakeAnalysisFillAOD() ;
41 void MakeAnalysisFillHistograms() ;
43 Int_t GetPdg() const {return fPdg ;}
44 void SetPdg( Int_t pdg ) {fPdg = pdg; }
46 TString GetDetector() const {return fDetector ;}
47 void SetDetector( TString calo ) {fDetector = calo; }
49 void Terminate(TList * outputList);
50 void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate.
54 Int_t fPdg ; //identified particle id
55 TString fDetector ; //detector selection
58 TH1F * fhPt; //! pT distribution
59 TH1F * fhPhi; //! phi distribution
60 TH1F * fhEta; //! eta distribution
61 TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
62 TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
63 TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
65 TH1F * fhNCells; //! Number of towers/crystals with signal
66 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
67 ClassDef(AliAnaExample,1)
71 #endif //ALIANAEXAMPLE_H