Fork me on GitHub

source: git/modules/Calorimeter.h@ 6fc566b

Timing
Last change on this file since 6fc566b was 77e9ae1, checked in by Pavel Demin <pavel-demin@…>, 6 years ago

set Standard to Cpp03 in .clang-format

  • Property mode set to 100644
File size: 3.0 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 Calorimeter();
45 ~Calorimeter();
46
47 void Init();
48 void Process();
49 void Finish();
[4600a41]50
[d7d2da3]51private:
[77e9ae1]52 typedef std::map<Long64_t, std::pair<Double_t, Double_t> > TFractionMap; //!
53 typedef std::map<Double_t, std::set<Double_t> > TBinMap; //!
[d7d2da3]54
55 Candidate *fTower;
56 Double_t fTowerEta, fTowerPhi, fTowerEdges[4];
[00e8dca]57 Double_t fECalTowerEnergy, fHCalTowerEnergy;
[04290b1]58 Double_t fECalTrackEnergy, fHCalTrackEnergy;
[a221d1f]59
[839deb7]60 Double_t fTimingEnergyMin;
61 Bool_t fElectronsFromTrack;
62
[2dab783]63 Int_t fTowerTrackHits, fTowerPhotonHits;
[d7d2da3]64
[8624f58]65 Double_t fECalEnergyMin;
66 Double_t fHCalEnergyMin;
[a221d1f]67
[38bf1ae]68 Double_t fECalEnergySignificanceMin;
69 Double_t fHCalEnergySignificanceMin;
[a221d1f]70
[04290b1]71 Double_t fECalTrackSigma;
72 Double_t fHCalTrackSigma;
73
[4e09c3a]74 Bool_t fSmearTowerCenter;
[4b9a2dc]75
[d7d2da3]76 TFractionMap fFractionMap; //!
77 TBinMap fBinMap; //!
78
[341014c]79 std::vector<Double_t> fEtaBins;
80 std::vector<std::vector<Double_t> *> fPhiBins;
[d7d2da3]81
[341014c]82 std::vector<Long64_t> fTowerHits;
[d7d2da3]83
[341014c]84 std::vector<Double_t> fECalTowerFractions;
85 std::vector<Double_t> fHCalTowerFractions;
[82575a3]86
[341014c]87 std::vector<Double_t> fECalTrackFractions;
88 std::vector<Double_t> fHCalTrackFractions;
[82575a3]89
90 DelphesFormula *fECalResolutionFormula; //!
91 DelphesFormula *fHCalResolutionFormula; //!
92
[d7d2da3]93 TIterator *fItParticleInputArray; //!
94 TIterator *fItTrackInputArray; //!
95
96 const TObjArray *fParticleInputArray; //!
97 const TObjArray *fTrackInputArray; //!
98
99 TObjArray *fTowerOutputArray; //!
[82575a3]100 TObjArray *fPhotonOutputArray; //!
[a221d1f]101
[82575a3]102 TObjArray *fEFlowTrackOutputArray; //!
103 TObjArray *fEFlowPhotonOutputArray; //!
104 TObjArray *fEFlowNeutralHadronOutputArray; //!
105
[04290b1]106 TObjArray *fECalTowerTrackArray; //!
107 TIterator *fItECalTowerTrackArray; //!
[00e8dca]108
[04290b1]109 TObjArray *fHCalTowerTrackArray; //!
110 TIterator *fItHCalTowerTrackArray; //!
[9493a0f]111
[d7d2da3]112 void FinalizeTower();
[4600a41]113 Double_t LogNormal(Double_t mean, Double_t sigma);
114
[d7d2da3]115 ClassDef(Calorimeter, 1)
116};
117
118#endif
Note: See TracBrowser for help on using the repository browser.