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