#ifndef Calorimeter_h #define Calorimeter_h /** \class Calorimeter * * Fills calorimeter towers, performs calorimeter resolution smearing, * preselects towers hit by photons and creates energy flow objects. * * $Date: 2013-07-22 20:00:23 +0000 (Mon, 22 Jul 2013) $ * $Revision: 1235 $ * * * \author P. Demin - UCL, Louvain-la-Neuve * */ #include "classes/DelphesModule.h" #include #include #include class TObjArray; class DelphesFormula; class Candidate; class Calorimeter: public DelphesModule { public: Calorimeter(); ~Calorimeter(); void Init(); void Process(); void Finish(); private: typedef std::map< Long64_t, std::pair< Double_t, Double_t > > TFractionMap; //! typedef std::map< Double_t, std::set< Double_t > > TBinMap; //! Candidate *fTower; Double_t fTowerEta, fTowerPhi, fTowerEdges[4]; Double_t fTowerECalEnergy, fTowerHCalEnergy; Double_t fTowerECalNeutralEnergy, fTowerHCalNeutralEnergy; Int_t fTowerPhotonHits, fTowerECalHits, fTowerHCalHits, fTowerAllHits; Int_t fTowerECalTrackHits, fTowerHCalTrackHits, fTowerTrackAllHits; TFractionMap fFractionMap; //! TBinMap fBinMap; //! std::vector < Double_t > fEtaBins; std::vector < std::vector < Double_t >* > fPhiBins; std::vector < Long64_t > fTowerHits; std::vector < Double_t > fECalFractions; std::vector < Double_t > fHCalFractions; DelphesFormula *fECalResolutionFormula; //! DelphesFormula *fHCalResolutionFormula; //! TIterator *fItParticleInputArray; //! TIterator *fItTrackInputArray; //! const TObjArray *fParticleInputArray; //! const TObjArray *fTrackInputArray; //! TObjArray *fTowerOutputArray; //! TObjArray *fPhotonOutputArray; //! TObjArray *fEFlowTrackOutputArray; //! TObjArray *fEFlowTowerOutputArray; //! TObjArray *fTowerECalArray; //! TIterator *fItTowerECalArray; //! TObjArray *fTowerHCalArray; //! TIterator *fItTowerHCalArray; //! TObjArray *fTowerTrackArray; //! TIterator *fItTowerTrackArray; //! TObjArray *fTowerECalTrackArray; //! TIterator *fItTowerECalTrackArray; //! TObjArray *fTowerHCalTrackArray; //! TIterator *fItTowerHCalTrackArray; //! void FinalizeTower(); Double_t LogNormal(Double_t mean, Double_t sigma); ClassDef(Calorimeter, 1) }; #endif