[d7d2da3] | 1 | #ifndef Calorimeter_h
|
---|
| 2 | #define Calorimeter_h
|
---|
| 3 |
|
---|
| 4 | /** \class Calorimeter
|
---|
| 5 | *
|
---|
| 6 | * Fills calorimeter towers, performs calorimeter resolution smearing,
|
---|
| 7 | * preselects towers hit by photons and creates energy flow objects.
|
---|
| 8 | *
|
---|
| 9 | * $Date$
|
---|
| 10 | * $Revision$
|
---|
| 11 | *
|
---|
| 12 | *
|
---|
| 13 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
| 14 | *
|
---|
| 15 | */
|
---|
| 16 |
|
---|
| 17 | #include "classes/DelphesModule.h"
|
---|
| 18 |
|
---|
| 19 | #include <map>
|
---|
| 20 | #include <set>
|
---|
| 21 | #include <vector>
|
---|
| 22 |
|
---|
| 23 | class TObjArray;
|
---|
| 24 | class DelphesFormula;
|
---|
| 25 | class Candidate;
|
---|
| 26 |
|
---|
| 27 | class Calorimeter: public DelphesModule
|
---|
| 28 | {
|
---|
| 29 | public:
|
---|
| 30 |
|
---|
| 31 | Calorimeter();
|
---|
| 32 | ~Calorimeter();
|
---|
| 33 |
|
---|
| 34 | void Init();
|
---|
| 35 | void Process();
|
---|
| 36 | void Finish();
|
---|
[4600a41] | 37 |
|
---|
[d7d2da3] | 38 | private:
|
---|
| 39 |
|
---|
| 40 | typedef std::map< Long64_t, std::pair< Double_t, Double_t > > TFractionMap; //!
|
---|
| 41 | typedef std::map< Double_t, std::set< Double_t > > TBinMap; //!
|
---|
| 42 |
|
---|
| 43 | Candidate *fTower;
|
---|
| 44 | Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
|
---|
| 45 | Double_t fTowerECalEnergy, fTowerHCalEnergy;
|
---|
[2dab783] | 46 | Double_t fTrackECalEnergy, fTrackHCalEnergy;
|
---|
[22dc7fd] | 47 |
|
---|
| 48 | Double_t fTowerECalTime, fTowerHCalTime;
|
---|
| 49 | Double_t fTrackECalTime, fTrackHCalTime;
|
---|
| 50 |
|
---|
| 51 | Double_t fTowerECalWeightTime, fTowerHCalWeightTime;
|
---|
| 52 | Double_t fTrackECalWeightTime, fTrackHCalWeightTime;
|
---|
| 53 |
|
---|
[2dab783] | 54 | Int_t fTowerTrackHits, fTowerPhotonHits;
|
---|
[d7d2da3] | 55 |
|
---|
| 56 | TFractionMap fFractionMap; //!
|
---|
| 57 | TBinMap fBinMap; //!
|
---|
| 58 |
|
---|
| 59 | std::vector < Double_t > fEtaBins;
|
---|
| 60 | std::vector < std::vector < Double_t >* > fPhiBins;
|
---|
| 61 |
|
---|
| 62 | std::vector < Long64_t > fTowerHits;
|
---|
| 63 |
|
---|
[2dab783] | 64 | std::vector < Double_t > fTowerECalFractions;
|
---|
| 65 | std::vector < Double_t > fTowerHCalFractions;
|
---|
| 66 |
|
---|
| 67 | std::vector < Double_t > fTrackECalFractions;
|
---|
| 68 | std::vector < Double_t > fTrackHCalFractions;
|
---|
[d7d2da3] | 69 |
|
---|
| 70 | DelphesFormula *fECalResolutionFormula; //!
|
---|
| 71 | DelphesFormula *fHCalResolutionFormula; //!
|
---|
| 72 |
|
---|
| 73 | TIterator *fItParticleInputArray; //!
|
---|
| 74 | TIterator *fItTrackInputArray; //!
|
---|
| 75 |
|
---|
| 76 | const TObjArray *fParticleInputArray; //!
|
---|
| 77 | const TObjArray *fTrackInputArray; //!
|
---|
| 78 |
|
---|
| 79 | TObjArray *fTowerOutputArray; //!
|
---|
| 80 | TObjArray *fPhotonOutputArray; //!
|
---|
| 81 |
|
---|
| 82 | TObjArray *fEFlowTrackOutputArray; //!
|
---|
| 83 | TObjArray *fEFlowTowerOutputArray; //!
|
---|
| 84 |
|
---|
[9493a0f] | 85 | TObjArray *fTowerTrackArray; //!
|
---|
| 86 | TIterator *fItTowerTrackArray; //!
|
---|
| 87 |
|
---|
[d7d2da3] | 88 | void FinalizeTower();
|
---|
[4600a41] | 89 | Double_t LogNormal(Double_t mean, Double_t sigma);
|
---|
| 90 |
|
---|
[d7d2da3] | 91 | ClassDef(Calorimeter, 1)
|
---|
| 92 | };
|
---|
| 93 |
|
---|
| 94 | #endif
|
---|