Fork me on GitHub

source: git/modules/Calorimeter.h@ 914d1be

Last change on this file since 914d1be was 5eda6767, checked in by Michele Selvaggi <michele@…>, 4 years ago

fix calo tower position

  • Property mode set to 100644
File size: 3.1 KB
Line 
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 * \author P. Demin - UCL, Louvain-la-Neuve
28 *
29 */
30
31#include "classes/DelphesModule.h"
32
33#include <map>
34#include <set>
35#include <vector>
36
37class TObjArray;
38class DelphesFormula;
39class Candidate;
40
41class Calorimeter: public DelphesModule
42{
43public:
44 Calorimeter();
45 ~Calorimeter();
46
47 void Init();
48 void Process();
49 void Finish();
50
51private:
52 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //!
53 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!
54
55 Candidate *fTower;
56 Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
57 Double_t fECalTowerEnergy, fHCalTowerEnergy;
58 Double_t fECalTrackEnergy, fHCalTrackEnergy;
59
60 Double_t fTimingEnergyMin;
61 Bool_t fElectronsFromTrack;
62 Double_t fTowerRmax;
63
64 Int_t fTowerTrackHits, fTowerPhotonHits;
65
66 Double_t fECalEnergyMin;
67 Double_t fHCalEnergyMin;
68
69 Double_t fECalEnergySignificanceMin;
70 Double_t fHCalEnergySignificanceMin;
71
72 Double_t fECalTrackSigma;
73 Double_t fHCalTrackSigma;
74
75 Bool_t fSmearTowerCenter;
76
77 TFractionMap fFractionMap; //!
78 TBinMap fBinMap; //!
79
80 std::vector<Double_t> fEtaBins;
81 std::vector<std::vector<Double_t> *> fPhiBins;
82
83 std::vector<Long64_t> fTowerHits;
84
85 std::vector<Double_t> fECalTowerFractions;
86 std::vector<Double_t> fHCalTowerFractions;
87
88 std::vector<Double_t> fECalTrackFractions;
89 std::vector<Double_t> fHCalTrackFractions;
90
91 DelphesFormula *fECalResolutionFormula; //!
92 DelphesFormula *fHCalResolutionFormula; //!
93
94 TIterator *fItParticleInputArray; //!
95 TIterator *fItTrackInputArray; //!
96
97 const TObjArray *fParticleInputArray; //!
98 const TObjArray *fTrackInputArray; //!
99
100 TObjArray *fTowerOutputArray; //!
101 TObjArray *fPhotonOutputArray; //!
102
103 TObjArray *fEFlowTrackOutputArray; //!
104 TObjArray *fEFlowPhotonOutputArray; //!
105 TObjArray *fEFlowNeutralHadronOutputArray; //!
106
107 TObjArray *fECalTowerTrackArray; //!
108 TIterator *fItECalTowerTrackArray; //!
109
110 TObjArray *fHCalTowerTrackArray; //!
111 TIterator *fItHCalTowerTrackArray; //!
112
113 void FinalizeTower();
114 Double_t LogNormal(Double_t mean, Double_t sigma);
115
116 ClassDef(Calorimeter, 1)
117};
118
119#endif
Note: See TracBrowser for help on using the repository browser.