Fork me on GitHub

source: git/display/Delphes3DGeometry.h@ 781e3118

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 781e3118 was f53a4d2, checked in by Pavel Demin <pavel.demin@…>, 9 years ago

adapt EventDisplay to ROOT 6.04

  • Property mode set to 100644
File size: 3.6 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 Delphes3DGeometry_h
20#define Delphes3DGeometry_h
21
22#include <set>
23#include <map>
24#include <vector>
25
26#include "Rtypes.h"
27
28class TAxis;
29class TGeoManager;
30class TGeoVolume;
31class TGeoMedium;
32
33// TODO: asymmetric detector
34
35class Delphes3DGeometry {
36 public:
37 Delphes3DGeometry(TGeoManager *geom = NULL, bool transp = false);
38 ~Delphes3DGeometry() {}
39
40 void readFile(const char *filename, const char *ParticlePropagator="ParticlePropagator",
41 const char *TrackingEfficiency="ChargedHadronTrackingEfficiency",
42 const char *MuonEfficiency="MuonEfficiency",
43 const char *Calorimeters="Calorimeter");
44
45 void setContingency(Double_t contingency) { contingency_ = contingency; }
46 void setCaloBarrelThickness(Double_t thickness) { calo_barrel_thickness_ = thickness; }
47 void setCaloEndcapThickness(Double_t thickness) { calo_endcap_thickness_ = thickness; }
48 void setMuonSystemThickness(Double_t thickness) { muonSystem_thickn_ = thickness; }
49
50 TGeoVolume *getDetector(bool withTowers = true);
51
52 Double_t getTrackerRadius() const { return tk_radius_; }
53 Double_t getDetectorRadius() const { return muonSystem_radius_; }
54 Double_t getTrackerHalfLength() const { return tk_length_; }
55 Double_t getDetectorHalfLength() const { return muonSystem_length_; }
56 Double_t getBField() const { return tk_Bz_; }
57 std::pair<TAxis*, TAxis*> getCaloAxes() { return std::make_pair(etaAxis_,phiAxis_); }
58
59 private:
60 std::pair<Double_t, Double_t> addTracker(TGeoVolume *top);
61 std::pair<Double_t, Double_t> addCalorimeter(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set< std::pair<Double_t, Int_t> >& caloBinning);
62 std::pair<Double_t, Double_t> addMuonDets(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength);
63 void addCaloTowers(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set< std::pair<Double_t, Int_t> >& caloBinning);
64
65 private:
66
67 TGeoManager *geom_;
68
69 TGeoMedium *vacuum_;
70 TGeoMedium *tkmed_;
71 TGeoMedium *calomed_;
72 TGeoMedium *mudetmed_;
73
74 TAxis *etaAxis_;
75 TAxis *phiAxis_;
76
77 Double_t contingency_;
78 Double_t calo_barrel_thickness_;
79 Double_t calo_endcap_thickness_;
80 Double_t muonSystem_thickn_;
81 Double_t muonSystem_radius_;
82 Double_t muonSystem_length_;
83 Double_t tk_radius_;
84 Double_t tk_length_;
85 Double_t tk_etamax_;
86 Double_t tk_Bz_;
87
88 std::vector<std::string> calorimeters_;
89 std::vector<std::string> muondets_;
90
91 std::map<std::string, Double_t> muonSystem_etamax_;
92 std::map<std::string, std::set< std::pair<Double_t, Int_t> > > caloBinning_;
93
94};
95
96#endif
Note: See TracBrowser for help on using the repository browser.