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