]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/PartCorrDep/AliAnaExample.h
Completely reworked version of TPC CA tracker (Sergey)
[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
45 private:
46
47 Int_t fPdg ; //identified particle id
48 TString fDetector ; //detector selection
49 //Histograms
50 //CaloClusters
51 TH1F * fhPt; //! pT distribution
52 TH1F * fhPhi; //! phi distribution
53 TH1F * fhEta; //! eta distribution
54 TH2F * fh2Pt; //!pT distribution, reconstructed vs generated
55 TH2F * fh2Phi; //! phi distribution, reconstructed vs generated
56 TH2F * fh2Eta; //! eta distribution, reconstructed vs generated
57 //Calo Cells
58 TH1F * fhNCells; //! Number of towers/crystals with signal
59 TH1F * fhAmplitude; //! Amplitude measured in towers/crystals
60 ClassDef(AliAnaExample,1)
61 } ;
62
63
64#endif //ALIANAEXAMPLE_H
65
66
67