1)Terminate() method implemented in the frame. Simple examples on what to do with...
[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
17#include "TH2F.h"
18#include "AliAnaPartCorrBaseClass.h"
19
20class AliAnaExample : public AliAnaPartCorrBaseClass {
21
22 public:
23
24 AliAnaExample() ; // default ctor
25 AliAnaExample(const AliAnaExample & g) ; // cpy ctor
26 AliAnaExample & operator = (const AliAnaExample & g) ;//cpy assignment
27 virtual ~AliAnaExample() {;} //virtual dtor
28
29 TList * GetCreateOutputObjects();
30
31 void InitParameters();
32
33 void Print(const Option_t * opt) const;
34
35 void MakeAnalysisFillAOD() ;
36
37 void MakeAnalysisFillHistograms() ;
38
39 Int_t GetPdg() const {return fPdg ;}
40 void SetPdg( Int_t pdg ) {fPdg = pdg; }
41
42 TString GetDetector() const {return fDetector ;}
43 void SetDetector( TString calo ) {fDetector = calo; }
44
6639984f 45 void Terminate();
46
1c5acb87 47 private:
48
49 Int_t fPdg ; //identified particle id
50 TString fDetector ; //detector selection
51 //Histograms
52 //CaloClusters
53 TH1F * fhPt; //! pT distribution
54 TH1F * fhPhi; //! phi distribution
55 TH1F * fhEta; //! eta distribution
56 TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
57 TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
58 TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
59 //Calo Cells
60 TH1F * fhNCells; //! Number of towers/crystals with signal
61 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
62 ClassDef(AliAnaExample,1)
63 } ;
64
65
66#endif //ALIANAEXAMPLE_H
67
68
69