CMS 3D CMS Logo

Calorimeter.cc
Go to the documentation of this file.
10 
21 
23  myPreshowerLayer1Properties_(nullptr),
24  myPreshowerLayer2Properties_(nullptr),
25  myECALBarrelProperties_ (nullptr),
26  myECALEndcapProperties_ (nullptr),
27  myHCALBarrelProperties_ (nullptr),
28  myHCALEndcapProperties_ (nullptr),
29  myHCALForwardProperties_ (nullptr),
30  EcalBarrelGeometry_ (nullptr),
31  EcalEndcapGeometry_ (nullptr),
32  HcalGeometry_ (nullptr),
33  PreshowerGeometry_ (nullptr)
34 {
35 ;
36 }
37 
50 {
51  edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties");
52  edm::ParameterSet fastDetHF = fastCalo.getParameter<edm::ParameterSet>("ForwardCalorimeterProperties");
53 
61 
62 }
63 
65 {
73 }
74 
75 const ECALProperties*
76 Calorimeter::ecalProperties(int onEcal) const {
77  if ( onEcal ) {
78  if ( onEcal == 1 )
80  else
82  } else
83  return nullptr;
84 }
85 
86 const HCALProperties*
87 Calorimeter::hcalProperties(int onHcal) const {
88  if ( onHcal ) {
89  if ( onHcal == 1 )
91  else
92  if ( onHcal == 2 )
94  else {
96  edm::LogInfo("CalorimeterProperties") << " Calorimeter::hcalProperties : set myHCALForwardProperties" << std::endl;
97  }
98  } else
99  return nullptr;
100 }
101 
103 Calorimeter::layer1Properties(int onLayer1) const {
104  if ( onLayer1 )
106  else
107  return nullptr;
108 }
109 
111 Calorimeter::layer2Properties(int onLayer2) const {
112  if ( onLayer2 )
114  else
115  return nullptr;
116 }
117 
119 {
120  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
124  // Takes a lot of time
126 }
127 
128 void Calorimeter::setupTopology(const CaloTopology& theTopology)
129 {
132 }
133 
134 
135 
137 {
138  if(subdetn==1) return EcalBarrelGeometry_;
139  if(subdetn==2) return EcalEndcapGeometry_;
140  if(subdetn==3) return PreshowerGeometry_;
141  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector geometry: " << subdetn << std::endl;
142  return nullptr;
143 }
144 
146 {
147  if(subdetn==1) return EcalBarrelTopology_;
148  if(subdetn==2) return EcalEndcapTopology_;
149  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector topology: " << subdetn << std::endl;
150  return nullptr;
151 }
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:44
const ECALProperties * ecalProperties(int onEcal) const
ECAL properties.
Definition: Calorimeter.cc:76
void setupTopology(const CaloTopology &)
Definition: Calorimeter.cc:128
const EcalEndcapGeometry * EcalEndcapGeometry_
Definition: Calorimeter.h:78
HCALForwardProperties * myHCALForwardProperties_
Definition: Calorimeter.h:74
PreshowerLayer2Properties * myPreshowerLayer2Properties_
Definition: Calorimeter.h:69
const EcalPreshowerGeometry * PreshowerGeometry_
Definition: Calorimeter.h:80
const PreshowerLayer1Properties * layer1Properties(int onLayer1) const
Preshower Layer1 properties.
Definition: Calorimeter.cc:103
const CaloSubdetectorTopology * EcalEndcapTopology_
Definition: Calorimeter.h:84
#define nullptr
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
const CaloSubdetectorGeometry * getEcalGeometry(int subdetn) const
Definition: Calorimeter.cc:136
const PreshowerLayer2Properties * layer2Properties(int onLayer2) const
Preshower Layer2 properties.
Definition: Calorimeter.cc:111
const HCALProperties * hcalProperties(int onHcal) const
HCAL properties.
Definition: Calorimeter.cc:87
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const CaloSubdetectorTopology * getEcalTopology(int subdetn) const
Definition: Calorimeter.cc:145
void setupGeometry(const CaloGeometry &pG)
Definition: Calorimeter.cc:118
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:79
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
Definition: CaloTopology.cc:25
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:70
const CaloSubdetectorTopology * EcalBarrelTopology_
Definition: Calorimeter.h:83
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:68
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:73