totEt cuts into their own proper class
[u/mrichter/AliRoot.git] / PWG4 / totEt / AliAnalysisEtReconstructedEmcal.cxx
1 //_________________________________________________________________________
2 //  Utility Class for transverse energy studies
3 //  Base class for ESD analysis, for EMCAL
4 //  - reconstruction output
5 //  implementation file 
6 //
7 //*-- Authors: Oystein Djuvsland (Bergen), David Silvermyr (ORNL)
8 //_________________________________________________________________________
9 #include "AliAnalysisEtReconstructedEmcal.h"
10 #include "AliAnalysisEtCuts.h"
11 #include "AliESDtrack.h"
12
13 AliAnalysisEtReconstructedEmcal::AliAnalysisEtReconstructedEmcal() :
14 AliAnalysisEtReconstructed()
15 {
16    fHistogramNameSuffix = TString("EmcalRec");    
17 }
18
19 AliAnalysisEtReconstructedEmcal::~AliAnalysisEtReconstructedEmcal() 
20 {
21 }
22
23
24 void AliAnalysisEtReconstructedEmcal::Init()
25 { // Init
26   AliAnalysisEtReconstructed::Init();
27     
28   fDetectorRadius = fCuts->GetGeometryEmcalDetectorRadius();
29   fEtaCutAcc = fCuts->GetGeometryEmcalEtaAccCut();
30   fPhiCutAccMax = fCuts->GetGeometryEmcalPhiAccMaxCut() * TMath::Pi()/180.;
31   fPhiCutAccMin = fCuts->GetGeometryEmcalPhiAccMinCut() * TMath::Pi()/180.;
32   fClusterEnergyCut = fCuts->GetReconstructedEmcalClusterEnergyCut();
33   fSingleCellEnergyCut = fCuts->GetReconstructedEmcalSingleCellEnergyCut();
34
35   fClusterType = fCuts->GetReconstructedEmcalClusterType();
36   fTrackDistanceCut = fCuts->GetReconstructedEmcalTrackDistanceCut();
37          
38 }
39
40 bool AliAnalysisEtReconstructedEmcal::TrackHitsCalorimeter(AliVParticle* track, Double_t magField)
41 {
42   return  AliAnalysisEtReconstructed::TrackHitsCalorimeter(track, magField);
43 }