[ef8a06d] | 1 | /*
|
---|
| 2 | * Delphes: a framework for fast simulation of a generic collider experiment
|
---|
| 3 | * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
|
---|
| 4 | *
|
---|
| 5 | * This program is free software: you can redistribute it and/or modify
|
---|
| 6 | * it under the terms of the GNU General Public License as published by
|
---|
| 7 | * the Free Software Foundation, either version 3 of the License, or
|
---|
| 8 | * (at your option) any later version.
|
---|
| 9 | *
|
---|
| 10 | * This program is distributed in the hope that it will be useful,
|
---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 13 | * GNU General Public License for more details.
|
---|
| 14 | *
|
---|
| 15 | * You should have received a copy of the GNU General Public License
|
---|
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 17 | */
|
---|
| 18 |
|
---|
| 19 | #ifndef DualReadoutCalorimeter_h
|
---|
| 20 | #define DualReadoutCalorimeter_h
|
---|
| 21 |
|
---|
| 22 | /** \class DualReadoutCalorimeter
|
---|
| 23 | *
|
---|
| 24 | * Fills DualReadoutCalorimeter towers, performs DualReadoutCalorimeter resolution smearing,
|
---|
| 25 | * and creates energy flow objects (tracks, photons, and neutral hadrons).
|
---|
| 26 | *
|
---|
[a1b19ea] | 27 | * \author M. Selvaggi - CERN
|
---|
[ef8a06d] | 28 | *
|
---|
| 29 | */
|
---|
| 30 |
|
---|
| 31 | #include "classes/DelphesModule.h"
|
---|
| 32 |
|
---|
| 33 | #include <map>
|
---|
| 34 | #include <set>
|
---|
| 35 | #include <vector>
|
---|
| 36 |
|
---|
| 37 | class TObjArray;
|
---|
| 38 | class DelphesFormula;
|
---|
| 39 | class Candidate;
|
---|
| 40 |
|
---|
| 41 | class DualReadoutCalorimeter: public DelphesModule
|
---|
| 42 | {
|
---|
| 43 | public:
|
---|
| 44 |
|
---|
| 45 | DualReadoutCalorimeter();
|
---|
| 46 | ~DualReadoutCalorimeter();
|
---|
| 47 |
|
---|
| 48 | void Init();
|
---|
| 49 | void Process();
|
---|
| 50 | void Finish();
|
---|
| 51 |
|
---|
| 52 | private:
|
---|
| 53 |
|
---|
| 54 | typedef std::map< Long64_t, std::pair< Double_t, Double_t > > TFractionMap; //!
|
---|
| 55 | typedef std::map< Double_t, std::set< Double_t > > TBinMap; //!
|
---|
| 56 |
|
---|
| 57 | Candidate *fTower;
|
---|
| 58 | Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
|
---|
| 59 | Double_t fECalTowerEnergy, fHCalTowerEnergy;
|
---|
| 60 | Double_t fECalTrackEnergy, fHCalTrackEnergy;
|
---|
[a1b19ea] | 61 | Double_t fTrackEnergy;
|
---|
[5eda6767] | 62 | Double_t fTowerRmax;
|
---|
[ef8a06d] | 63 |
|
---|
| 64 | Double_t fTimingEnergyMin;
|
---|
| 65 | Bool_t fElectronsFromTrack;
|
---|
| 66 |
|
---|
| 67 | Int_t fTowerTrackHits, fTowerPhotonHits;
|
---|
| 68 |
|
---|
| 69 | Double_t fECalEnergyMin;
|
---|
| 70 | Double_t fHCalEnergyMin;
|
---|
| 71 | Double_t fEnergyMin;
|
---|
| 72 |
|
---|
| 73 | Double_t fECalEnergySignificanceMin;
|
---|
| 74 | Double_t fHCalEnergySignificanceMin;
|
---|
| 75 | Double_t fEnergySignificanceMin;
|
---|
| 76 |
|
---|
| 77 | Double_t fECalTrackSigma;
|
---|
| 78 | Double_t fHCalTrackSigma;
|
---|
[a1b19ea] | 79 | Double_t fTrackSigma;
|
---|
[ef8a06d] | 80 |
|
---|
[61dccd3] | 81 | Double_t fTowerTime;
|
---|
| 82 | Double_t fTowerTimeWeight;
|
---|
| 83 |
|
---|
[ef8a06d] | 84 | Bool_t fSmearTowerCenter;
|
---|
| 85 |
|
---|
| 86 | TFractionMap fFractionMap; //!
|
---|
| 87 | TBinMap fBinMap; //!
|
---|
| 88 |
|
---|
| 89 | std::vector < Double_t > fEtaBins;
|
---|
| 90 | std::vector < std::vector < Double_t >* > fPhiBins;
|
---|
| 91 |
|
---|
| 92 | std::vector < Long64_t > fTowerHits;
|
---|
| 93 |
|
---|
| 94 | std::vector < Double_t > fECalTowerFractions;
|
---|
| 95 | std::vector < Double_t > fHCalTowerFractions;
|
---|
| 96 |
|
---|
| 97 | std::vector < Double_t > fECalTrackFractions;
|
---|
| 98 | std::vector < Double_t > fHCalTrackFractions;
|
---|
| 99 |
|
---|
| 100 | DelphesFormula *fECalResolutionFormula; //!
|
---|
| 101 | DelphesFormula *fHCalResolutionFormula; //!
|
---|
| 102 |
|
---|
| 103 | TIterator *fItParticleInputArray; //!
|
---|
| 104 | TIterator *fItTrackInputArray; //!
|
---|
| 105 |
|
---|
| 106 | const TObjArray *fParticleInputArray; //!
|
---|
| 107 | const TObjArray *fTrackInputArray; //!
|
---|
| 108 |
|
---|
| 109 | TObjArray *fTowerOutputArray; //!
|
---|
| 110 | TObjArray *fPhotonOutputArray; //!
|
---|
| 111 |
|
---|
| 112 | TObjArray *fEFlowTrackOutputArray; //!
|
---|
| 113 | TObjArray *fEFlowPhotonOutputArray; //!
|
---|
| 114 | TObjArray *fEFlowNeutralHadronOutputArray; //!
|
---|
| 115 |
|
---|
| 116 | TObjArray *fECalTowerTrackArray; //!
|
---|
| 117 | TIterator *fItECalTowerTrackArray; //!
|
---|
| 118 |
|
---|
| 119 | TObjArray *fHCalTowerTrackArray; //!
|
---|
| 120 | TIterator *fItHCalTowerTrackArray; //!
|
---|
| 121 |
|
---|
[a1b19ea] | 122 | TObjArray *fTowerTrackArray; //!
|
---|
| 123 | TIterator *fItTowerTrackArray; //!
|
---|
| 124 |
|
---|
[ef8a06d] | 125 | void FinalizeTower();
|
---|
| 126 | Double_t LogNormal(Double_t mean, Double_t sigma);
|
---|
| 127 |
|
---|
| 128 | ClassDef(DualReadoutCalorimeter, 1)
|
---|
| 129 | };
|
---|
| 130 |
|
---|
| 131 | #endif
|
---|