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 Calorimeter_h
|
---|
20 | #define Calorimeter_h
|
---|
21 |
|
---|
22 | /** \class Calorimeter
|
---|
23 | *
|
---|
24 | * Fills calorimeter towers, performs calorimeter resolution smearing,
|
---|
25 | * and creates energy flow objects (tracks, photons, and neutral hadrons).
|
---|
26 | *
|
---|
27 | * $Date$
|
---|
28 | * $Revision$
|
---|
29 | *
|
---|
30 | *
|
---|
31 | * \author P. Demin - UCL, Louvain-la-Neuve
|
---|
32 | *
|
---|
33 | */
|
---|
34 |
|
---|
35 | #include "classes/DelphesModule.h"
|
---|
36 |
|
---|
37 | #include <map>
|
---|
38 | #include <set>
|
---|
39 | #include <vector>
|
---|
40 |
|
---|
41 | class TObjArray;
|
---|
42 | class DelphesFormula;
|
---|
43 | class Candidate;
|
---|
44 |
|
---|
45 | class Calorimeter: public DelphesModule
|
---|
46 | {
|
---|
47 | public:
|
---|
48 |
|
---|
49 | Calorimeter();
|
---|
50 | ~Calorimeter();
|
---|
51 |
|
---|
52 | void Init();
|
---|
53 | void Process();
|
---|
54 | void Finish();
|
---|
55 |
|
---|
56 | private:
|
---|
57 |
|
---|
58 | typedef std::map< Long64_t, std::pair< Double_t, Double_t > > TFractionMap; //!
|
---|
59 | typedef std::map< Double_t, std::set< Double_t > > TBinMap; //!
|
---|
60 |
|
---|
61 | Candidate *fTower;
|
---|
62 | Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
|
---|
63 | Double_t fTowerECalEnergy, fTowerHCalEnergy;
|
---|
64 | Double_t fTrackECalEnergy, fTrackHCalEnergy;
|
---|
65 |
|
---|
66 | Double_t fTowerECalTime, fTowerHCalTime;
|
---|
67 | Double_t fTrackECalTime, fTrackHCalTime;
|
---|
68 |
|
---|
69 | Double_t fTowerECalTimeWeight, fTowerHCalTimeWeight;
|
---|
70 | Double_t fTrackECalTimeWeight, fTrackHCalTimeWeight;
|
---|
71 |
|
---|
72 | Int_t fTowerTrackHits, fTowerPhotonHits;
|
---|
73 |
|
---|
74 | Double_t fECalEnergyMin;
|
---|
75 | Double_t fHCalEnergyMin;
|
---|
76 |
|
---|
77 | Double_t fECalSigmaMin;
|
---|
78 | Double_t fHCalSigmaMin;
|
---|
79 |
|
---|
80 | Bool_t fDitherTowerCenter;
|
---|
81 |
|
---|
82 | TFractionMap fFractionMap; //!
|
---|
83 | TBinMap fBinMap; //!
|
---|
84 |
|
---|
85 | std::vector < Double_t > fEtaBins;
|
---|
86 | std::vector < std::vector < Double_t >* > fPhiBins;
|
---|
87 |
|
---|
88 | std::vector < Long64_t > fTowerHits;
|
---|
89 |
|
---|
90 | std::vector < Double_t > fTowerECalFractions;
|
---|
91 | std::vector < Double_t > fTowerHCalFractions;
|
---|
92 |
|
---|
93 | std::vector < Double_t > fTrackECalFractions;
|
---|
94 | std::vector < Double_t > fTrackHCalFractions;
|
---|
95 |
|
---|
96 | DelphesFormula *fECalResolutionFormula; //!
|
---|
97 | DelphesFormula *fHCalResolutionFormula; //!
|
---|
98 |
|
---|
99 | TIterator *fItParticleInputArray; //!
|
---|
100 | TIterator *fItTrackInputArray; //!
|
---|
101 |
|
---|
102 | const TObjArray *fParticleInputArray; //!
|
---|
103 | const TObjArray *fTrackInputArray; //!
|
---|
104 |
|
---|
105 | TObjArray *fTowerOutputArray; //!
|
---|
106 | TObjArray *fPhotonOutputArray; //!
|
---|
107 |
|
---|
108 | TObjArray *fEFlowTrackOutputArray; //!
|
---|
109 | TObjArray *fEFlowPhotonOutputArray; //!
|
---|
110 | TObjArray *fEFlowNeutralHadronOutputArray; //!
|
---|
111 |
|
---|
112 | TObjArray *fTowerTrackArray; //!
|
---|
113 | TIterator *fItTowerTrackArray; //!
|
---|
114 |
|
---|
115 | void FinalizeTower();
|
---|
116 | Double_t LogNormal(Double_t mean, Double_t sigma);
|
---|
117 |
|
---|
118 | ClassDef(Calorimeter, 1)
|
---|
119 | };
|
---|
120 |
|
---|
121 | #endif
|
---|