[d7d2da3] | 1 | #ifndef Calorimeter_h
|
---|
| 2 | #define Calorimeter_h
|
---|
| 3 |
|
---|
| 4 | /** \class Calorimeter
|
---|
| 5 | *
|
---|
| 6 | * Fills calorimeter towers, performs calorimeter resolution smearing,
|
---|
[d4c4d9d] | 7 | * and creates energy flow objects (tracks, photons, and neutral hadrons).
|
---|
[d7d2da3] | 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 |
|
---|
[f6b9fec] | 40 | typedef std::map< Long64_t, Double_t > TFractionMap; //!
|
---|
[d7d2da3] | 41 | typedef std::map< Double_t, std::set< Double_t > > TBinMap; //!
|
---|
| 42 |
|
---|
| 43 | Candidate *fTower;
|
---|
| 44 | Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
|
---|
[f6b9fec] | 45 | Double_t fTowerEnergy;
|
---|
| 46 | Double_t fTrackEnergy;
|
---|
[22dc7fd] | 47 |
|
---|
[f6b9fec] | 48 | Double_t fTowerTime;
|
---|
| 49 | Double_t fTrackTime;
|
---|
[22dc7fd] | 50 |
|
---|
[f6b9fec] | 51 | Double_t fTowerWeightTime;
|
---|
| 52 | Double_t fTrackWeightTime;
|
---|
[22dc7fd] | 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 |
|
---|
[f6b9fec] | 64 | std::vector < Double_t > fTowerFractions;
|
---|
| 65 |
|
---|
| 66 | std::vector < Double_t > fTrackFractions;
|
---|
| 67 |
|
---|
| 68 | DelphesFormula *fResolutionFormula; //!
|
---|
| 69 |
|
---|
[d7d2da3] | 70 | TIterator *fItParticleInputArray; //!
|
---|
| 71 | TIterator *fItTrackInputArray; //!
|
---|
| 72 |
|
---|
| 73 | const TObjArray *fParticleInputArray; //!
|
---|
| 74 | const TObjArray *fTrackInputArray; //!
|
---|
| 75 |
|
---|
| 76 | TObjArray *fTowerOutputArray; //!
|
---|
[d4c4d9d] | 77 |
|
---|
[f6b9fec] | 78 | TObjArray *fEFlowTowerOutputArray; //!
|
---|
| 79 |
|
---|
[9493a0f] | 80 | TObjArray *fTowerTrackArray; //!
|
---|
| 81 | TIterator *fItTowerTrackArray; //!
|
---|
| 82 |
|
---|
[d7d2da3] | 83 | void FinalizeTower();
|
---|
[4600a41] | 84 | Double_t LogNormal(Double_t mean, Double_t sigma);
|
---|
| 85 |
|
---|
[d7d2da3] | 86 | ClassDef(Calorimeter, 1)
|
---|
| 87 | };
|
---|
| 88 |
|
---|
| 89 | #endif
|
---|