Fork me on GitHub

source: git/modules/SimpleCalorimeter.h@ 400597a

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 400597a was 7c0fcd5, checked in by Pavel Demin <demin@…>, 10 years ago

delete duplicate license file and prepend GPLv3 header to all source code files

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[7c0fcd5]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
[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 * $Date: 2014-04-16 15:29:31 +0200 (Wed, 16 Apr 2014) $
28 * $Revision: 1364 $
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
41class TObjArray;
42class DelphesFormula;
43class Candidate;
44
45class SimpleCalorimeter: public DelphesModule
46{
47public:
48
49 SimpleCalorimeter();
50 ~SimpleCalorimeter();
51
52 void Init();
53 void Process();
54 void Finish();
55
56private:
57
58 typedef std::map< Long64_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 fTowerEnergy;
64 Double_t fTrackEnergy;
65
66 Double_t fTowerTime;
67 Double_t fTrackTime;
68
69 Double_t fTowerWeightTime;
70 Double_t fTrackWeightTime;
71
72 Int_t fTowerTrackHits, fTowerPhotonHits;
73
74 TFractionMap fFractionMap; //!
75 TBinMap fBinMap; //!
76
77 std::vector < Double_t > fEtaBins;
78 std::vector < std::vector < Double_t >* > fPhiBins;
79
80 std::vector < Long64_t > fTowerHits;
81
82 std::vector < Double_t > fTowerFractions;
83
84 std::vector < Double_t > fTrackFractions;
85
86 DelphesFormula *fResolutionFormula; //!
87
88 TIterator *fItParticleInputArray; //!
89 TIterator *fItTrackInputArray; //!
90
91 const TObjArray *fParticleInputArray; //!
92 const TObjArray *fTrackInputArray; //!
93
94 TObjArray *fTowerOutputArray; //!
95
96 TObjArray *fEFlowTowerOutputArray; //!
97
98 TObjArray *fTowerTrackArray; //!
99 TIterator *fItTowerTrackArray; //!
100
101 void FinalizeTower();
102 Double_t LogNormal(Double_t mean, Double_t sigma);
103
104 ClassDef(SimpleCalorimeter, 1)
105};
106
107#endif
Note: See TracBrowser for help on using the repository browser.