Fork me on GitHub

source: git/modules/Calorimeter.h@ d6347e0

ImprovedOutputFile Timing dual_readout llp
Last change on this file since d6347e0 was 4e09c3a, checked in by Pavel Demin <pavel.demin@…>, 10 years ago

replace DitherTowerCenter with SmearTowerCenter

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[51f7063]1/*
2 * Delphes: a framework for fast simulation of a generic collider experiment
3 * Copyright (C) 2012-2014 Universite catholique de Louvain (UCL), Belgium
[1fa50c2]4 *
[51f7063]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.
[1fa50c2]9 *
[51f7063]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.
[1fa50c2]14 *
[51f7063]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
[d7d2da3]19#ifndef Calorimeter_h
20#define Calorimeter_h
21
22/** \class Calorimeter
23 *
24 * Fills calorimeter towers, performs calorimeter resolution smearing,
[d4c4d9d]25 * and creates energy flow objects (tracks, photons, and neutral hadrons).
[d7d2da3]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
45 Calorimeter();
46 ~Calorimeter();
47
48 void Init();
49 void Process();
50 void Finish();
[4600a41]51
[d7d2da3]52private:
53
[82575a3]54 typedef std::map< Long64_t, std::pair< Double_t, Double_t > > TFractionMap; //!
[d7d2da3]55 typedef std::map< Double_t, std::set< Double_t > > TBinMap; //!
56
57 Candidate *fTower;
58 Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
[82575a3]59 Double_t fTowerECalEnergy, fTowerHCalEnergy;
60 Double_t fTrackECalEnergy, fTrackHCalEnergy;
[a221d1f]61
[82575a3]62 Double_t fTowerECalTime, fTowerHCalTime;
63 Double_t fTrackECalTime, fTrackHCalTime;
[a221d1f]64
[ca29ad7]65 Double_t fTowerECalTimeWeight, fTowerHCalTimeWeight;
66 Double_t fTrackECalTimeWeight, fTrackHCalTimeWeight;
[a221d1f]67
[2dab783]68 Int_t fTowerTrackHits, fTowerPhotonHits;
[d7d2da3]69
[8624f58]70 Double_t fECalEnergyMin;
71 Double_t fHCalEnergyMin;
[a221d1f]72
[38bf1ae]73 Double_t fECalEnergySignificanceMin;
74 Double_t fHCalEnergySignificanceMin;
[a221d1f]75
[4e09c3a]76 Bool_t fSmearTowerCenter;
[4b9a2dc]77
[d7d2da3]78 TFractionMap fFractionMap; //!
79 TBinMap fBinMap; //!
80
81 std::vector < Double_t > fEtaBins;
82 std::vector < std::vector < Double_t >* > fPhiBins;
83
84 std::vector < Long64_t > fTowerHits;
85
[82575a3]86 std::vector < Double_t > fTowerECalFractions;
87 std::vector < Double_t > fTowerHCalFractions;
88
89 std::vector < Double_t > fTrackECalFractions;
90 std::vector < Double_t > fTrackHCalFractions;
91
92 DelphesFormula *fECalResolutionFormula; //!
93 DelphesFormula *fHCalResolutionFormula; //!
94
[d7d2da3]95 TIterator *fItParticleInputArray; //!
96 TIterator *fItTrackInputArray; //!
97
98 const TObjArray *fParticleInputArray; //!
99 const TObjArray *fTrackInputArray; //!
100
101 TObjArray *fTowerOutputArray; //!
[82575a3]102 TObjArray *fPhotonOutputArray; //!
[a221d1f]103
[82575a3]104 TObjArray *fEFlowTrackOutputArray; //!
105 TObjArray *fEFlowPhotonOutputArray; //!
106 TObjArray *fEFlowNeutralHadronOutputArray; //!
107
[9493a0f]108 TObjArray *fTowerTrackArray; //!
109 TIterator *fItTowerTrackArray; //!
110
[d7d2da3]111 void FinalizeTower();
[4600a41]112 Double_t LogNormal(Double_t mean, Double_t sigma);
113
[d7d2da3]114 ClassDef(Calorimeter, 1)
115};
116
117#endif
Note: See TracBrowser for help on using the repository browser.