Fork me on GitHub

source: git/modules/SimpleCalorimeter.h@ fa42514

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

replace DitherTowerCenter with SmearTowerCenter

  • Property mode set to 100644
File size: 2.6 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
[82575a3]19#ifndef SimpleCalorimeter_h
20#define SimpleCalorimeter_h
21
22/** \class SimpleCalorimeter
23 *
24 * Fills SimpleCalorimeter towers, performs SimpleCalorimeter 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 SimpleCalorimeter: public DelphesModule
42{
43public:
44
45 SimpleCalorimeter();
46 ~SimpleCalorimeter();
47
48 void Init();
49 void Process();
50 void Finish();
51
52private:
53
54 typedef std::map< Long64_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 fTowerEnergy;
60 Double_t fTrackEnergy;
[e5767b57]61
[82575a3]62 Double_t fTowerTime;
63 Double_t fTrackTime;
[e5767b57]64
65 Double_t fTowerTimeWeight;
66 Double_t fTrackTimeWeight;
67
[82575a3]68 Int_t fTowerTrackHits, fTowerPhotonHits;
69
[4b9a2dc]70 Double_t fEnergyMin;
[e5767b57]71
72 Double_t fEnergySignificanceMin;
73
[4e09c3a]74 Bool_t fSmearTowerCenter;
[4b9a2dc]75
[82575a3]76 TFractionMap fFractionMap; //!
77 TBinMap fBinMap; //!
78
79 std::vector < Double_t > fEtaBins;
80 std::vector < std::vector < Double_t >* > fPhiBins;
81
82 std::vector < Long64_t > fTowerHits;
83
84 std::vector < Double_t > fTowerFractions;
[e5767b57]85
[82575a3]86 std::vector < Double_t > fTrackFractions;
[e5767b57]87
[82575a3]88 DelphesFormula *fResolutionFormula; //!
[e5767b57]89
[82575a3]90 TIterator *fItParticleInputArray; //!
91 TIterator *fItTrackInputArray; //!
92
93 const TObjArray *fParticleInputArray; //!
94 const TObjArray *fTrackInputArray; //!
95
96 TObjArray *fTowerOutputArray; //!
[e5767b57]97
[82575a3]98 TObjArray *fEFlowTowerOutputArray; //!
[e5767b57]99
[82575a3]100 TObjArray *fTowerTrackArray; //!
101 TIterator *fItTowerTrackArray; //!
102
103 void FinalizeTower();
104 Double_t LogNormal(Double_t mean, Double_t sigma);
105
106 ClassDef(SimpleCalorimeter, 1)
107};
108
109#endif
Note: See TracBrowser for help on using the repository browser.