[b906e2b] | 1 | #ifndef OldCalorimeter_h
|
---|
| 2 | #define OldCalorimeter_h
|
---|
| 3 |
|
---|
| 4 | /** \class OldCalorimeter
|
---|
| 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 OldCalorimeter: public DelphesModule
|
---|
| 28 | {
|
---|
| 29 | public:
|
---|
| 30 | OldCalorimeter();
|
---|
| 31 | ~OldCalorimeter();
|
---|
| 32 |
|
---|
| 33 | void Init();
|
---|
| 34 | void Process();
|
---|
| 35 | void Finish();
|
---|
| 36 |
|
---|
| 37 | private:
|
---|
[77e9ae1] | 38 | typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //!
|
---|
| 39 | typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!
|
---|
[b906e2b] | 40 |
|
---|
| 41 | Candidate *fTower;
|
---|
| 42 | Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
|
---|
| 43 | Double_t fTowerECalEnergy, fTowerHCalEnergy;
|
---|
| 44 | Double_t fTowerECalNeutralEnergy, fTowerHCalNeutralEnergy;
|
---|
| 45 | Int_t fTowerPhotonHits, fTowerECalHits, fTowerHCalHits, fTowerAllHits;
|
---|
| 46 | Int_t fTowerECalTrackHits, fTowerHCalTrackHits, fTowerTrackAllHits;
|
---|
| 47 |
|
---|
| 48 | TFractionMap fFractionMap; //!
|
---|
| 49 | TBinMap fBinMap; //!
|
---|
| 50 |
|
---|
[341014c] | 51 | std::vector<Double_t> fEtaBins;
|
---|
| 52 | std::vector<std::vector<Double_t> *> fPhiBins;
|
---|
[b906e2b] | 53 |
|
---|
[341014c] | 54 | std::vector<Long64_t> fTowerHits;
|
---|
[b906e2b] | 55 |
|
---|
[341014c] | 56 | std::vector<Double_t> fECalFractions;
|
---|
| 57 | std::vector<Double_t> fHCalFractions;
|
---|
[b906e2b] | 58 |
|
---|
| 59 | DelphesFormula *fECalResolutionFormula; //!
|
---|
| 60 | DelphesFormula *fHCalResolutionFormula; //!
|
---|
| 61 |
|
---|
| 62 | TIterator *fItParticleInputArray; //!
|
---|
| 63 | TIterator *fItTrackInputArray; //!
|
---|
| 64 |
|
---|
| 65 | const TObjArray *fParticleInputArray; //!
|
---|
| 66 | const TObjArray *fTrackInputArray; //!
|
---|
| 67 |
|
---|
| 68 | TObjArray *fTowerOutputArray; //!
|
---|
| 69 | TObjArray *fPhotonOutputArray; //!
|
---|
| 70 |
|
---|
| 71 | TObjArray *fEFlowTrackOutputArray; //!
|
---|
| 72 | TObjArray *fEFlowTowerOutputArray; //!
|
---|
| 73 |
|
---|
| 74 | TObjArray *fTowerECalArray; //!
|
---|
| 75 | TIterator *fItTowerECalArray; //!
|
---|
| 76 |
|
---|
| 77 | TObjArray *fTowerHCalArray; //!
|
---|
| 78 | TIterator *fItTowerHCalArray; //!
|
---|
| 79 |
|
---|
| 80 | TObjArray *fTowerTrackArray; //!
|
---|
| 81 | TIterator *fItTowerTrackArray; //!
|
---|
| 82 |
|
---|
| 83 | TObjArray *fTowerECalTrackArray; //!
|
---|
| 84 | TIterator *fItTowerECalTrackArray; //!
|
---|
| 85 |
|
---|
| 86 | TObjArray *fTowerHCalTrackArray; //!
|
---|
| 87 | TIterator *fItTowerHCalTrackArray; //!
|
---|
| 88 |
|
---|
| 89 | void FinalizeTower();
|
---|
| 90 | Double_t LogNormal(Double_t mean, Double_t sigma);
|
---|
| 91 |
|
---|
| 92 | ClassDef(OldCalorimeter, 1)
|
---|
| 93 | };
|
---|
| 94 |
|
---|
| 95 | #endif
|
---|