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.
10 
21 
23  myPreshowerLayer1Properties_(NULL),
24  myPreshowerLayer2Properties_(NULL),
25  myECALBarrelProperties_ (NULL),
26  myECALEndcapProperties_ (NULL),
27  myHCALBarrelProperties_ (NULL),
28  myHCALEndcapProperties_ (NULL),
29  myHCALForwardProperties_ (NULL),
30  EcalBarrelGeometry_ (NULL),
31  EcalEndcapGeometry_ (NULL),
32  HcalGeometry_ (NULL),
33  PreshowerGeometry_ (NULL)
34 {
35 ;
36 }
37 
39  myPreshowerLayer1Properties_(NULL),
40  myPreshowerLayer2Properties_(NULL),
41  myECALBarrelProperties_ (NULL),
42  myECALEndcapProperties_ (NULL),
43  myHCALBarrelProperties_ (NULL),
44  myHCALEndcapProperties_ (NULL),
45  myHCALForwardProperties_ (NULL),
46  EcalBarrelGeometry_ (NULL),
47  EcalEndcapGeometry_ (NULL),
48  HcalGeometry_ (NULL),
49  PreshowerGeometry_ (NULL)
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 NULL;
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 NULL;
100 }
101 
103 Calorimeter::layer1Properties(int onLayer1) const {
104  if ( onLayer1 )
106  else
107  return NULL;
108 }
109 
111 Calorimeter::layer2Properties(int onLayer2) const {
112  if ( onLayer2 )
114  else
115  return NULL;
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 0;
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 0;
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:45
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
#define NULL
Definition: scimark2.h:8
const PreshowerLayer1Properties * layer1Properties(int onLayer1) const
Preshower Layer1 properties.
Definition: Calorimeter.cc:103
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: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: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