CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
Calorimeter Class Reference

#include <Calorimeter.h>

Inheritance diagram for Calorimeter:
CaloGeometryHelper

Public Member Functions

 Calorimeter ()
 
 Calorimeter (const edm::ParameterSet &caloParameters)
 
const ECALPropertiesecalProperties (int onEcal) const
 ECAL properties. More...
 
const EcalBarrelGeometrygetEcalBarrelGeometry () const
 
const EcalEndcapGeometrygetEcalEndcapGeometry () const
 
const CaloSubdetectorGeometrygetEcalGeometry (int subdetn) const
 
const EcalPreshowerGeometrygetEcalPreshowerGeometry () const
 
const CaloSubdetectorTopologygetEcalTopology (int subdetn) const
 
const CaloSubdetectorGeometrygetHcalGeometry () const
 
const HCALPropertieshcalProperties (int onHcal) const
 HCAL properties. More...
 
const PreshowerLayer1Propertieslayer1Properties (int onLayer1) const
 Preshower Layer1 properties. More...
 
const PreshowerLayer2Propertieslayer2Properties (int onLayer2) const
 Preshower Layer2 properties. More...
 
void setupGeometry (const CaloGeometry &pG)
 
void setupTopology (const CaloTopology &)
 
 ~Calorimeter ()
 

Protected Attributes

const EcalBarrelGeometryEcalBarrelGeometry_
 
const CaloSubdetectorTopologyEcalBarrelTopology_
 
const EcalEndcapGeometryEcalEndcapGeometry_
 
const CaloSubdetectorTopologyEcalEndcapTopology_
 
const CaloSubdetectorGeometryHcalGeometry_
 
ECALBarrelPropertiesmyECALBarrelProperties_
 
ECALEndcapPropertiesmyECALEndcapProperties_
 
HCALBarrelPropertiesmyHCALBarrelProperties_
 
HCALEndcapPropertiesmyHCALEndcapProperties_
 
HCALForwardPropertiesmyHCALForwardProperties_
 
PreshowerLayer1PropertiesmyPreshowerLayer1Properties_
 
PreshowerLayer2PropertiesmyPreshowerLayer2Properties_
 
const EcalPreshowerGeometryPreshowerGeometry_
 

Detailed Description

Definition at line 26 of file Calorimeter.h.

Constructor & Destructor Documentation

Calorimeter::Calorimeter ( )

Definition at line 21 of file Calorimeter.cc.

21  :
33 {
34 ;
35 }
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
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:79
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:70
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:68
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:73
Calorimeter::Calorimeter ( const edm::ParameterSet caloParameters)

Definition at line 37 of file Calorimeter.cc.

References edm::ParameterSet::getParameter(), myECALBarrelProperties_, myECALEndcapProperties_, myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, myPreshowerLayer1Properties_, and myPreshowerLayer2Properties_.

37  :
49 {
50  edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties");
58 
59 }
T getParameter(std::string const &) const
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
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:79
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:70
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:68
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:73
Calorimeter::~Calorimeter ( )

Definition at line 61 of file Calorimeter.cc.

References myECALBarrelProperties_, myECALEndcapProperties_, myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, myPreshowerLayer1Properties_, and myPreshowerLayer2Properties_.

62 {
70 }
HCALForwardProperties * myHCALForwardProperties_
Definition: Calorimeter.h:74
PreshowerLayer2Properties * myPreshowerLayer2Properties_
Definition: Calorimeter.h:69
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:70
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:68
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:73

Member Function Documentation

const ECALProperties * Calorimeter::ecalProperties ( int  onEcal) const

ECAL properties.

Definition at line 73 of file Calorimeter.cc.

References myECALBarrelProperties_, myECALEndcapProperties_, and NULL.

Referenced by CaloHitMaker::CaloHitMaker(), CaloSegment::CaloSegment(), CalorimetryManager::EMShowerSimulation(), and CalorimetryManager::HDShowerSimulation().

73  {
74  if ( onEcal ) {
75  if ( onEcal == 1 )
77  else
79  } else
80  return NULL;
81 }
#define NULL
Definition: scimark2.h:8
ECALEndcapProperties * myECALEndcapProperties_
Definition: Calorimeter.h:71
ECALBarrelProperties * myECALBarrelProperties_
Definition: Calorimeter.h:70
const EcalBarrelGeometry* Calorimeter::getEcalBarrelGeometry ( ) const
inline

Definition at line 51 of file Calorimeter.h.

References EcalBarrelGeometry_.

51 {return EcalBarrelGeometry_;}
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const EcalEndcapGeometry* Calorimeter::getEcalEndcapGeometry ( ) const
inline

Definition at line 53 of file Calorimeter.h.

References EcalEndcapGeometry_.

Referenced by EcalHitMaker::EcalHitMaker().

53 {return EcalEndcapGeometry_;}
const EcalEndcapGeometry * EcalEndcapGeometry_
Definition: Calorimeter.h:78
const CaloSubdetectorGeometry * Calorimeter::getEcalGeometry ( int  subdetn) const

Definition at line 133 of file Calorimeter.cc.

References EcalBarrelGeometry_, EcalEndcapGeometry_, and PreshowerGeometry_.

Referenced by CaloGeometryHelper::getWindow().

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 }
const EcalEndcapGeometry * EcalEndcapGeometry_
Definition: Calorimeter.h:78
const EcalPreshowerGeometry * PreshowerGeometry_
Definition: Calorimeter.h:80
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const EcalPreshowerGeometry* Calorimeter::getEcalPreshowerGeometry ( ) const
inline

Definition at line 55 of file Calorimeter.h.

References PreshowerGeometry_.

Referenced by PreshowerHitMaker::addHit(), and CaloGeometryHelper::initialize().

55 {return PreshowerGeometry_;}
const EcalPreshowerGeometry * PreshowerGeometry_
Definition: Calorimeter.h:80
const CaloSubdetectorTopology * Calorimeter::getEcalTopology ( int  subdetn) const

Definition at line 142 of file Calorimeter.cc.

References EcalBarrelTopology_, and EcalEndcapTopology_.

Referenced by CaloGeometryHelper::getWindow().

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 }
const CaloSubdetectorTopology * EcalEndcapTopology_
Definition: Calorimeter.h:84
const CaloSubdetectorTopology * EcalBarrelTopology_
Definition: Calorimeter.h:83
const CaloSubdetectorGeometry* Calorimeter::getHcalGeometry ( ) const
inline

Definition at line 57 of file Calorimeter.h.

References HcalGeometry_.

Referenced by CalorimetryManager::reconstruct().

57 {return HcalGeometry_;}
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:79
const HCALProperties * Calorimeter::hcalProperties ( int  onHcal) const

HCAL properties.

Definition at line 84 of file Calorimeter.cc.

References myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, and NULL.

Referenced by CaloHitMaker::CaloHitMaker(), CaloSegment::CaloSegment(), CalorimetryManager::EMShowerSimulation(), EcalHitMaker::hcalCellLine(), and CalorimetryManager::HDShowerSimulation().

84  {
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 }
HCALForwardProperties * myHCALForwardProperties_
Definition: Calorimeter.h:74
#define NULL
Definition: scimark2.h:8
HCALBarrelProperties * myHCALBarrelProperties_
Definition: Calorimeter.h:72
HCALEndcapProperties * myHCALEndcapProperties_
Definition: Calorimeter.h:73
const PreshowerLayer1Properties * Calorimeter::layer1Properties ( int  onLayer1) const

Preshower Layer1 properties.

Definition at line 100 of file Calorimeter.cc.

References myPreshowerLayer1Properties_, and NULL.

Referenced by CaloHitMaker::CaloHitMaker(), CaloSegment::CaloSegment(), CalorimetryManager::EMShowerSimulation(), and EcalHitMaker::preshowerCellLine().

100  {
101  if ( onLayer1 )
103  else
104  return NULL;
105 }
#define NULL
Definition: scimark2.h:8
PreshowerLayer1Properties * myPreshowerLayer1Properties_
Definition: Calorimeter.h:68
const PreshowerLayer2Properties * Calorimeter::layer2Properties ( int  onLayer2) const

Preshower Layer2 properties.

Definition at line 108 of file Calorimeter.cc.

References myPreshowerLayer2Properties_, and NULL.

Referenced by CaloSegment::CaloSegment(), CalorimetryManager::EMShowerSimulation(), and EcalHitMaker::preshowerCellLine().

108  {
109  if ( onLayer2 )
111  else
112  return NULL;
113 }
PreshowerLayer2Properties * myPreshowerLayer2Properties_
Definition: Calorimeter.h:69
#define NULL
Definition: scimark2.h:8
void Calorimeter::setupGeometry ( const CaloGeometry pG)

Definition at line 115 of file Calorimeter.cc.

References DetId::Ecal, EcalBarrel, EcalBarrelGeometry_, EcalEndcap, EcalEndcapGeometry_, EcalPreshower, CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalBarrel, HcalGeometry_, and PreshowerGeometry_.

Referenced by FamosManager::setupGeometryAndField().

116 {
117  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
121  // Takes a lot of time
123 }
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:43
const EcalEndcapGeometry * EcalEndcapGeometry_
Definition: Calorimeter.h:78
const EcalPreshowerGeometry * PreshowerGeometry_
Definition: Calorimeter.h:80
const EcalBarrelGeometry * EcalBarrelGeometry_
Definition: Calorimeter.h:77
const CaloSubdetectorGeometry * HcalGeometry_
Definition: Calorimeter.h:79
void Calorimeter::setupTopology ( const CaloTopology theTopology)

Definition at line 125 of file Calorimeter.cc.

References DetId::Ecal, EcalBarrel, EcalBarrelTopology_, EcalEndcap, EcalEndcapTopology_, and CaloTopology::getSubdetectorTopology().

Referenced by FamosManager::setupGeometryAndField().

126 {
129 }
const CaloSubdetectorTopology * EcalEndcapTopology_
Definition: Calorimeter.h:84
const CaloSubdetectorTopology * getSubdetectorTopology(const DetId &id) const
access the subdetector Topology for the given subdetector directly
Definition: CaloTopology.cc:26
const CaloSubdetectorTopology * EcalBarrelTopology_
Definition: Calorimeter.h:83

Member Data Documentation

const EcalBarrelGeometry* Calorimeter::EcalBarrelGeometry_
protected
const CaloSubdetectorTopology* Calorimeter::EcalBarrelTopology_
protected
const EcalEndcapGeometry* Calorimeter::EcalEndcapGeometry_
protected
const CaloSubdetectorTopology* Calorimeter::EcalEndcapTopology_
protected
const CaloSubdetectorGeometry* Calorimeter::HcalGeometry_
protected
ECALBarrelProperties* Calorimeter::myECALBarrelProperties_
protected

Definition at line 70 of file Calorimeter.h.

Referenced by Calorimeter(), ecalProperties(), and ~Calorimeter().

ECALEndcapProperties* Calorimeter::myECALEndcapProperties_
protected

Definition at line 71 of file Calorimeter.h.

Referenced by Calorimeter(), ecalProperties(), and ~Calorimeter().

HCALBarrelProperties* Calorimeter::myHCALBarrelProperties_
protected

Definition at line 72 of file Calorimeter.h.

Referenced by Calorimeter(), hcalProperties(), and ~Calorimeter().

HCALEndcapProperties* Calorimeter::myHCALEndcapProperties_
protected

Definition at line 73 of file Calorimeter.h.

Referenced by Calorimeter(), hcalProperties(), and ~Calorimeter().

HCALForwardProperties* Calorimeter::myHCALForwardProperties_
protected

Definition at line 74 of file Calorimeter.h.

Referenced by Calorimeter(), hcalProperties(), and ~Calorimeter().

PreshowerLayer1Properties* Calorimeter::myPreshowerLayer1Properties_
protected

Definition at line 68 of file Calorimeter.h.

Referenced by Calorimeter(), layer1Properties(), and ~Calorimeter().

PreshowerLayer2Properties* Calorimeter::myPreshowerLayer2Properties_
protected

Definition at line 69 of file Calorimeter.h.

Referenced by Calorimeter(), layer2Properties(), and ~Calorimeter().

const EcalPreshowerGeometry* Calorimeter::PreshowerGeometry_
protected

Definition at line 80 of file Calorimeter.h.

Referenced by getEcalGeometry(), getEcalPreshowerGeometry(), and setupGeometry().