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 EcalBarrelGeometry * getEcalBarrelGeometry () const
 
const EcalEndcapGeometry * getEcalEndcapGeometry () 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 EcalBarrelGeometry * EcalBarrelGeometry_
 
const CaloSubdetectorTopologyEcalBarrelTopology_
 
const EcalEndcapGeometry * EcalEndcapGeometry_
 
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");
51  edm::ParameterSet fastDetHF = fastCalo.getParameter<edm::ParameterSet>("ForwardCalorimeterProperties");
52 
60 
61 }
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 63 of file Calorimeter.cc.

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

64 {
72 }
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 75 of file Calorimeter.cc.

References myECALBarrelProperties_, myECALEndcapProperties_, and NULL.

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

75  {
76  if ( onEcal ) {
77  if ( onEcal == 1 )
79  else
81  } else
82  return NULL;
83 }
#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 135 of file Calorimeter.cc.

References EcalBarrelGeometry_, EcalEndcapGeometry_, and PreshowerGeometry_.

Referenced by EcalHitMaker::getHits(), and CaloGeometryHelper::getWindow().

136 {
137  if(subdetn==1) return EcalBarrelGeometry_;
138  if(subdetn==2) return EcalEndcapGeometry_;
139  if(subdetn==3) return PreshowerGeometry_;
140  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector geometry: " << subdetn << std::endl;
141  return 0;
142 }
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 144 of file Calorimeter.cc.

References EcalBarrelTopology_, and EcalEndcapTopology_.

Referenced by CaloGeometryHelper::getWindow().

145 {
146  if(subdetn==1) return EcalBarrelTopology_;
147  if(subdetn==2) return EcalEndcapTopology_;
148  edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector topology: " << subdetn << std::endl;
149  return 0;
150 }
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::HDShowerSimulation(), and CalorimetryManager::reconstructHCAL().

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

HCAL properties.

Definition at line 86 of file Calorimeter.cc.

References myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, and NULL.

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

86  {
87  if ( onHcal ) {
88  if ( onHcal == 1 )
90  else
91  if ( onHcal == 2 )
93  else {
95  edm::LogInfo("CalorimeterProperties") << " Calorimeter::hcalProperties : set myHCALForwardProperties" << std::endl;
96  }
97  } else
98  return NULL;
99 }
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 102 of file Calorimeter.cc.

References myPreshowerLayer1Properties_, and NULL.

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

102  {
103  if ( onLayer1 )
105  else
106  return NULL;
107 }
#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 110 of file Calorimeter.cc.

References myPreshowerLayer2Properties_, and NULL.

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

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

Definition at line 117 of file Calorimeter.cc.

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

Referenced by FamosManager::setupGeometryAndField().

118 {
119  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
120  EcalBarrelGeometry_ = dynamic_cast<const EcalBarrelGeometry*>(pG.getSubdetectorGeometry(DetId::Ecal,EcalBarrel));
121  EcalEndcapGeometry_ = dynamic_cast<const EcalEndcapGeometry*>(pG.getSubdetectorGeometry(DetId::Ecal,EcalEndcap));
123  // Takes a lot of time
125 }
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 127 of file Calorimeter.cc.

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

Referenced by FamosManager::setupGeometryAndField().

128 {
131 }
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().