]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG4/totEt/AliAnalysisEtReconstructed.h
- Adding sparse histograms
[u/mrichter/AliRoot.git] / PWG4 / totEt / AliAnalysisEtReconstructed.h
1 #ifndef ALIANALYSISETRECONSTRUCTED_H
2 #define ALIANALYSISETRECONSTRUCTED_H
3 //_________________________________________________________________________
4 //  Utility Class for transverse energy studies
5 //  Base class for ESD analysis
6 //  - reconstruction output
7 //
8 //*-- Authors: Oystein Djuvsland (Bergen), David Silvermyr (ORNL)
9 //_________________________________________________________________________
10
11 #include "AliAnalysisEt.h"
12
13 class AliVParticle;
14 class AliESDEvent;
15 class AliAnalysisHadEtCorrections;
16
17 class AliAnalysisEtReconstructed : public AliAnalysisEt
18 {
19
20 public:
21    
22     AliAnalysisEtReconstructed();
23     virtual ~AliAnalysisEtReconstructed();
24
25     virtual Int_t AnalyseEvent(AliVEvent* event);
26
27     virtual void Init();
28
29     /** Fill the objects you want to output, classes which add new histograms should overload this. */
30     virtual void FillOutputList(TList *list);
31     void SetCorrections(AliAnalysisHadEtCorrections *corr){fCorrections = corr;}
32
33     /** Create the histograms, must be overloaded if you want to add your own */
34     virtual void CreateHistograms();
35     
36 protected:
37
38     bool CheckGoodVertex(AliVParticle *track);
39     virtual bool TrackHitsCalorimeter(AliVParticle *track, Double_t magField);
40
41     AliAnalysisHadEtCorrections *fCorrections;//corrections needed for hadronic et
42
43     Double_t fPidCut; // cut on the pid probability
44     
45     Char_t fClusterType; // selection on cluster type
46         
47     TH2F *fHistChargedPionEnergyDeposit; /** Energy deposited in calorimeter by charged pions */    
48     TH2F *fHistProtonEnergyDeposit; /** Energy deposited in calorimeter by protons */    
49     TH2F *fHistAntiProtonEnergyDeposit; /** Energy deposited in calorimeter by anti-protons */    
50     TH2F *fHistChargedKaonEnergyDeposit; /** Energy deposited in calorimeter by charged kaons */    
51     TH2F *fHistMuonEnergyDeposit; /** Energy deposited in calorimeter by muons */
52
53     TH1F *fHistRemovedEnergy;
54
55     Double_t fGeomCorrection;
56     Double_t fEMinCorrection;
57     
58   private:
59     
60     AliAnalysisEtReconstructed(const AliAnalysisEtReconstructed& g);
61     AliAnalysisEtReconstructed & operator=(const AliAnalysisEtReconstructed&);
62     
63     Double_t CalcTrackClusterDistance(const Float_t pos[3],Int_t *trkMatchId, const AliESDEvent *event);
64
65     ClassDef(AliAnalysisEtReconstructed, 1);
66 };
67
68 #endif // ALIANALYSISETRECONSTRUCTED_H