Changes in display/Delphes3DGeometry.h [77e9ae1:f53a4d2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/Delphes3DGeometry.h
r77e9ae1 rf53a4d2 20 20 #define Delphes3DGeometry_h 21 21 22 #include <set> 22 23 #include <map> 23 #include <set>24 24 #include <vector> 25 25 … … 33 33 // TODO: asymmetric detector 34 34 35 class Delphes3DGeometry 36 { 37 public: 38 Delphes3DGeometry(TGeoManager *geom = NULL, bool transp = false); 39 ~Delphes3DGeometry() {} 35 class Delphes3DGeometry { 36 public: 37 Delphes3DGeometry(TGeoManager *geom = NULL, bool transp = false); 38 ~Delphes3DGeometry() {} 40 39 41 void readFile(const char *filename, const char *ParticlePropagator ="ParticlePropagator",42 const char *TrackingEfficiency ="ChargedHadronTrackingEfficiency",43 const char *MuonEfficiency ="MuonEfficiency",44 const char *Calorimeters ="Calorimeter");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"); 45 44 46 void setContingency(Double_t contingency) { contingency_ = contingency; }47 void setCaloBarrelThickness(Double_t thickness) { calo_barrel_thickness_ = thickness; }48 void setCaloEndcapThickness(Double_t thickness) { calo_endcap_thickness_ = thickness; }49 void setMuonSystemThickness(Double_t thickness) { muonSystem_thickn_ = thickness; }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; } 50 49 51 TGeoVolume *getDetector(bool withTowers = true);50 TGeoVolume *getDetector(bool withTowers = true); 52 51 53 Double_t getTrackerRadius() const { return tk_radius_; }54 Double_t getDetectorRadius() const { return muonSystem_radius_; }55 Double_t getTrackerHalfLength() const { return tk_length_; }56 Double_t getDetectorHalfLength() const { return muonSystem_length_; }57 Double_t getBField() const { return tk_Bz_; }58 std::pair<TAxis *, TAxis *> getCaloAxes() { return std::make_pair(etaAxis_,phiAxis_); }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_); } 59 58 60 private:61 std::pair<Double_t, Double_t> addTracker(TGeoVolume *top);62 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);63 std::pair<Double_t, Double_t> addMuonDets(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength);64 void addCaloTowers(TGeoVolume *top, const char *name, Double_t innerBarrelRadius, Double_t innerBarrelLength, std::set<std::pair<Double_t, Int_t> > &caloBinning);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); 65 64 66 private: 67 TGeoManager *geom_; 65 private: 68 66 69 TGeoMedium *vacuum_; 70 TGeoMedium *tkmed_; 71 TGeoMedium *calomed_; 72 TGeoMedium *mudetmed_; 67 TGeoManager *geom_; 73 68 74 TAxis *etaAxis_; 75 TAxis *phiAxis_; 69 TGeoMedium *vacuum_; 70 TGeoMedium *tkmed_; 71 TGeoMedium *calomed_; 72 TGeoMedium *mudetmed_; 76 73 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_; 74 TAxis *etaAxis_; 75 TAxis *phiAxis_; 87 76 88 std::vector<std::string> calorimeters_; 89 std::vector<std::string> muondets_; 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_; 90 87 91 std::map<std::string, Double_t> muonSystem_etamax_; 92 std::map<std::string, std::set<std::pair<Double_t, Int_t> > > caloBinning_; 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 93 94 }; 94 95
Note:
See TracChangeset
for help on using the changeset viewer.