CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Calorimeter.cc
Go to the documentation of this file.
9 
20 
22  myPreshowerLayer1Properties_(NULL),
23  myPreshowerLayer2Properties_(NULL),
24  myECALBarrelProperties_ (NULL),
25  myECALEndcapProperties_ (NULL),
26  myHCALBarrelProperties_ (NULL),
27  myHCALEndcapProperties_ (NULL),
28  myHCALForwardProperties_ (NULL),
29  EcalBarrelGeometry_ (NULL),
30  EcalEndcapGeometry_ (NULL),
31  HcalGeometry_ (NULL),
32  PreshowerGeometry_ (NULL)
33 {
34 ;
35 }
36 
38  myPreshowerLayer1Properties_(NULL),
39  myPreshowerLayer2Properties_(NULL),
40  myECALBarrelProperties_ (NULL),
41  myECALEndcapProperties_ (NULL),
42  myHCALBarrelProperties_ (NULL),
43  myHCALEndcapProperties_ (NULL),
44  myHCALForwardProperties_ (NULL),
45  EcalBarrelGeometry_ (NULL),
46  EcalEndcapGeometry_ (NULL),
47  HcalGeometry_ (NULL),
48  PreshowerGeometry_ (NULL)
49 {
50  edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties");
58 
59 }
60 
62 {
70 }
71 
72 const ECALProperties*
73 Calorimeter::ecalProperties(int onEcal) const {
74  if ( onEcal ) {
75  if ( onEcal == 1 )
77  else
79  } else
80  return NULL;
81 }
82 
83 const HCALProperties*
84 Calorimeter::hcalProperties(int onHcal) const {
85  if ( onHcal ) {
86  if ( onHcal == 1 )
88  else
89  if ( onHcal == 2 )
91  else {
93  edm::LogInfo("CalorimeterProperties") << " Calorimeter::hcalProperties : set myHCALForwardProperties" << std::endl;
94  }
95  } else
96  return NULL;
97 }
98 
100 Calorimeter::layer1Properties(int onLayer1) const {
101  if ( onLayer1 )
103  else
104  return NULL;
105 }
106 
108 Calorimeter::layer2Properties(int onLayer2) const {
109  if ( onLayer2 )
111  else
112  return NULL;
113 }
114 
116 {
117  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
121  // Takes a lot of time
123 }
124 
125 void Calorimeter::setupTopology(const CaloTopology& theTopology)
126 {
129 }
130 
131 
132 
134 {
135  if(subdetn==1) return EcalBarrelGeometry_;
136  if(subdetn==2) return EcalEndcapGeometry_;
137  if(subdetn==3) return PreshowerGeometry_;
138  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector geometry: " << subdetn << std::endl;
139  return 0;
140 }
141 
143 {
144  if(subdetn==1) return EcalBarrelTopology_;
145  if(subdetn==2) return EcalEndcapTopology_;
146  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector topology: " << subdetn << std::endl;
147  return 0;
148 }
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:43
const ECALProperties * ecalProperties(int onEcal) const
ECAL properties.
Definition: Calorimeter.cc:73
void setupTopology(const CaloTopology &)
Definition: Calorimeter.cc:125
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
#define NULL
Definition: scimark2.h:8
const PreshowerLayer1Properties * layer1Properties(int onLayer1) const
Preshower Layer1 properties.
Definition: Calorimeter.cc:100
const CaloSubdetectorTopology * EcalEndcapTopology_
Definition: Calorimeter.h:84
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
const CaloSubdetectorGeometry * getEcalGeometry(int subdetn) const
Definition: Calorimeter.cc:133
const PreshowerLayer2Properties * layer2Properties(int onLayer2) const
Preshower Layer2 properties.
Definition: Calorimeter.cc:108
const HCALProperties * hcalProperties(int onHcal) const
HCAL properties.
Definition: Calorimeter.cc:84
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const CaloSubdetectorTopology * getEcalTopology(int subdetn) const
Definition: Calorimeter.cc:142
void setupGeometry(const CaloGeometry &pG)
Definition: Calorimeter.cc:115
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:26
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