test
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 22 of file Calorimeter.cc.

22  :
34 {
35 ;
36 }
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 38 of file Calorimeter.cc.

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

38  :
50 {
51  edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties");
52  edm::ParameterSet fastDetHF = fastCalo.getParameter<edm::ParameterSet>("ForwardCalorimeterProperties");
53 
61 
62 }
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 64 of file Calorimeter.cc.

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

65 {
73 }
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 76 of file Calorimeter.cc.

References myECALBarrelProperties_, myECALEndcapProperties_, and NULL.

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

76  {
77  if ( onEcal ) {
78  if ( onEcal == 1 )
80  else
82  } else
83  return NULL;
84 }
#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 136 of file Calorimeter.cc.

References EcalBarrelGeometry_, EcalEndcapGeometry_, and PreshowerGeometry_.

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

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 }
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 145 of file Calorimeter.cc.

References EcalBarrelTopology_, and EcalEndcapTopology_.

Referenced by CaloGeometryHelper::getWindow().

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 }
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 87 of file Calorimeter.cc.

References myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, and NULL.

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

87  {
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 }
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 103 of file Calorimeter.cc.

References myPreshowerLayer1Properties_, and NULL.

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

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

References myPreshowerLayer2Properties_, and NULL.

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

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

Definition at line 118 of file Calorimeter.cc.

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

Referenced by FamosManager::setupGeometryAndField().

119 {
120  edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl;
124  // Takes a lot of time
126 }
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 128 of file Calorimeter.cc.

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

Referenced by FamosManager::setupGeometryAndField().

129 {
132 }
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().