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 
38  : myPreshowerLayer1Properties_(nullptr),
39  myPreshowerLayer2Properties_(nullptr),
40  myECALBarrelProperties_(nullptr),
41  myECALEndcapProperties_(nullptr),
42  myHCALBarrelProperties_(nullptr),
43  myHCALEndcapProperties_(nullptr),
44  myHCALForwardProperties_(nullptr),
45  EcalBarrelGeometry_(nullptr),
46  EcalEndcapGeometry_(nullptr),
47  HcalGeometry_(nullptr),
48  PreshowerGeometry_(nullptr) {
49  edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties");
50  edm::ParameterSet fastDetHF = fastCalo.getParameter<edm::ParameterSet>("ForwardCalorimeterProperties");
51 
59 }
60 
76 }
77 
78 const ECALProperties* Calorimeter::ecalProperties(int onEcal) const {
79  if (onEcal) {
80  if (onEcal == 1)
82  else
84  } else
85  return nullptr;
86 }
87 
88 const HCALProperties* Calorimeter::hcalProperties(int onHcal) const {
89  if (onHcal) {
90  if (onHcal == 1)
92  else if (onHcal == 2)
94  else {
96  edm::LogInfo("CalorimeterProperties")
97  << " Calorimeter::hcalProperties : set myHCALForwardProperties" << std::endl;
98  }
99  } else
100  return nullptr;
101 }
102 
104  if (onLayer1)
106  else
107  return nullptr;
108 }
109 
111  if (onLayer2)
113  else
114  return nullptr;
115 }
116 
118  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
122  // Takes a lot of time
125 }
126 
127 void Calorimeter::setupTopology(const CaloTopology& theTopology) {
130 }
131 
133  if (subdetn == 1)
134  return EcalBarrelGeometry_;
135  if (subdetn == 2)
136  return EcalEndcapGeometry_;
137  if (subdetn == 3)
138  return PreshowerGeometry_;
139  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector geometry: " << subdetn << std::endl;
140  return nullptr;
141 }
142 
144  if (subdetn == 1)
145  return EcalBarrelTopology_;
146  if (subdetn == 2)
147  return EcalEndcapTopology_;
148  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector topology: " << subdetn << std::endl;
149  return nullptr;
150 }
const CaloSubdetectorGeometry * getEcalGeometry(int subdetn) const
Definition: Calorimeter.cc:132
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
const PreshowerLayer1Properties * layer1Properties(int onLayer1) const
Preshower Layer1 properties.
Definition: Calorimeter.cc:103
void setupTopology(const CaloTopology &)
Definition: Calorimeter.cc:127
const ECALProperties * ecalProperties(int onEcal) const
ECAL properties.
Definition: Calorimeter.cc:78
const EcalEndcapGeometry * EcalEndcapGeometry_
Definition: Calorimeter.h:74
HCALForwardProperties * myHCALForwardProperties_
Definition: Calorimeter.h:70
const PreshowerLayer2Properties * layer2Properties(int onLayer2) const
Preshower Layer2 properties.
Definition: Calorimeter.cc:110
PreshowerLayer2Properties * myPreshowerLayer2Properties_
Definition: Calorimeter.h:65
const EcalPreshowerGeometry * PreshowerGeometry_
Definition: Calorimeter.h:76
const CaloSubdetectorTopology * EcalEndcapTopology_
Definition: Calorimeter.h:80
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:67
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:68
const CaloSubdetectorTopology * getEcalTopology(int subdetn) const
Definition: Calorimeter.cc:143
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:73
void setupGeometry(const CaloGeometry &pG)
Definition: Calorimeter.cc:117
Log< level::Info, false > LogInfo
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
Definition: CaloTopology.cc:17
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:75
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:66
const CaloSubdetectorTopology * EcalBarrelTopology_
Definition: Calorimeter.h:79
Log< level::Warning, false > LogWarning
const HCALProperties * hcalProperties(int onHcal) const
HCAL properties.
Definition: Calorimeter.cc:88
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:64
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:69