]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrDep/AliAnaExample.h
remove unnecessary return
[u/mrichter/AliRoot.git] / PWG4 / PartCorrDep / AliAnaExample.h
CommitLineData
1c5acb87 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 */
5/* $Id: $ */
6
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
14//
15//-- Author: Gustavo Conesa (INFN-LNF)
16
477d6cee 17// --- Root system ---
18class TH2F;
19class TH1F;
20
21// --- Analysis system ---
1c5acb87 22#include "AliAnaPartCorrBaseClass.h"
23
24class AliAnaExample : public AliAnaPartCorrBaseClass {
477d6cee 25
78219bac 26 public:
477d6cee 27 AliAnaExample() ; // default ctor
78219bac 28 virtual ~AliAnaExample() {;} //virtual dtor
29
30 private :
477d6cee 31 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
32 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
78219bac 33
34 public:
477d6cee 35
36 TList * GetCreateOutputObjects();
37
38 void InitParameters();
39
40 void Print(const Option_t * opt) const;
41
42 void MakeAnalysisFillAOD() ;
43
44 void MakeAnalysisFillHistograms() ;
45
46 Int_t GetPdg() const {return fPdg ;}
47 void SetPdg( Int_t pdg ) {fPdg = pdg; }
48
49 TString GetDetector() const {return fDetector ;}
50 void SetDetector( TString calo ) {fDetector = calo; }
51
a5cc4f03 52 void Terminate(TList * outputList);
53 void ReadHistograms(TList * outputList); //Fill histograms with histograms in ouput list, needed in Terminate.
54
1c5acb87 55 private:
477d6cee 56
57 Int_t fPdg ; //identified particle id
58 TString fDetector ; //detector selection
59 //Histograms
60 //CaloClusters
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
f37fa8d2 67
68 ClassDef(AliAnaExample,2)
69} ;
1c5acb87 70
71
72#endif //ALIANAEXAMPLE_H
73
74
75