#include <Calorimeter.h>
Definition at line 26 of file Calorimeter.h.
Calorimeter::Calorimeter | ( | ) |
Definition at line 21 of file Calorimeter.cc.
: myPreshowerLayer1Properties_(NULL), myPreshowerLayer2Properties_(NULL), myECALBarrelProperties_ (NULL), myECALEndcapProperties_ (NULL), myHCALBarrelProperties_ (NULL), myHCALEndcapProperties_ (NULL), myHCALForwardProperties_ (NULL), EcalBarrelGeometry_ (NULL), EcalEndcapGeometry_ (NULL), HcalGeometry_ (NULL), PreshowerGeometry_ (NULL) { ; }
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_.
: myPreshowerLayer1Properties_(NULL), myPreshowerLayer2Properties_(NULL), myECALBarrelProperties_ (NULL), myECALEndcapProperties_ (NULL), myHCALBarrelProperties_ (NULL), myHCALEndcapProperties_ (NULL), myHCALForwardProperties_ (NULL), EcalBarrelGeometry_ (NULL), EcalEndcapGeometry_ (NULL), HcalGeometry_ (NULL), PreshowerGeometry_ (NULL) { edm::ParameterSet fastDet = fastCalo.getParameter<edm::ParameterSet>("CalorimeterProperties"); myPreshowerLayer1Properties_ = new PreshowerLayer1Properties(fastDet); myPreshowerLayer2Properties_ = new PreshowerLayer2Properties(fastDet); myECALBarrelProperties_ = new ECALBarrelProperties (fastDet); myECALEndcapProperties_ = new ECALEndcapProperties (fastDet); myHCALBarrelProperties_ = new HCALBarrelProperties (fastDet); myHCALEndcapProperties_ = new HCALEndcapProperties (fastDet); myHCALForwardProperties_ = new HCALForwardProperties (fastDet); }
Calorimeter::~Calorimeter | ( | ) |
Definition at line 61 of file Calorimeter.cc.
References myECALBarrelProperties_, myECALEndcapProperties_, myHCALBarrelProperties_, myHCALEndcapProperties_, myHCALForwardProperties_, myPreshowerLayer1Properties_, and myPreshowerLayer2Properties_.
{ if(myPreshowerLayer1Properties_ ) delete myPreshowerLayer1Properties_ ; if(myPreshowerLayer2Properties_ ) delete myPreshowerLayer2Properties_ ; if(myECALBarrelProperties_ ) delete myECALBarrelProperties_ ; if(myECALEndcapProperties_ ) delete myECALEndcapProperties_ ; if(myHCALBarrelProperties_ ) delete myHCALBarrelProperties_ ; if(myHCALEndcapProperties_ ) delete myHCALEndcapProperties_ ; if(myHCALForwardProperties_ ) delete myHCALForwardProperties_ ; }
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().
{ if ( onEcal ) { if ( onEcal == 1 ) return myECALBarrelProperties_; else return myECALEndcapProperties_; } else return NULL; }
const EcalBarrelGeometry* Calorimeter::getEcalBarrelGeometry | ( | ) | const [inline] |
Definition at line 51 of file Calorimeter.h.
References EcalBarrelGeometry_.
{return EcalBarrelGeometry_;}
const EcalEndcapGeometry* Calorimeter::getEcalEndcapGeometry | ( | ) | const [inline] |
Definition at line 53 of file Calorimeter.h.
References EcalEndcapGeometry_.
Referenced by EcalHitMaker::EcalHitMaker().
{return EcalEndcapGeometry_;}
const CaloSubdetectorGeometry * Calorimeter::getEcalGeometry | ( | int | subdetn | ) | const |
Definition at line 133 of file Calorimeter.cc.
References EcalBarrelGeometry_, EcalEndcapGeometry_, and PreshowerGeometry_.
Referenced by CaloGeometryHelper::getWindow().
{ if(subdetn==1) return EcalBarrelGeometry_; if(subdetn==2) return EcalEndcapGeometry_; if(subdetn==3) return PreshowerGeometry_; edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector geometry: " << subdetn << std::endl; return 0; }
const EcalPreshowerGeometry* Calorimeter::getEcalPreshowerGeometry | ( | ) | const [inline] |
Definition at line 55 of file Calorimeter.h.
References PreshowerGeometry_.
Referenced by PreshowerHitMaker::addHit(), and CaloGeometryHelper::initialize().
{return PreshowerGeometry_;}
const CaloSubdetectorTopology * Calorimeter::getEcalTopology | ( | int | subdetn | ) | const |
Definition at line 142 of file Calorimeter.cc.
References EcalBarrelTopology_, and EcalEndcapTopology_.
Referenced by CaloGeometryHelper::getWindow().
{ if(subdetn==1) return EcalBarrelTopology_; if(subdetn==2) return EcalEndcapTopology_; edm::LogWarning("Calorimeter") << "Requested an invalid ECAL subdetector topology: " << subdetn << std::endl; return 0; }
const CaloSubdetectorGeometry* Calorimeter::getHcalGeometry | ( | ) | const [inline] |
Definition at line 57 of file Calorimeter.h.
References HcalGeometry_.
Referenced by CalorimetryManager::reconstruct().
{return HcalGeometry_;}
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().
{ if ( onHcal ) { if ( onHcal == 1 ) return myHCALBarrelProperties_; else if ( onHcal == 2 ) return myHCALEndcapProperties_; else { return myHCALForwardProperties_; edm::LogInfo("CalorimeterProperties") << " Calorimeter::hcalProperties : set myHCALForwardProperties" << std::endl; } } else return NULL; }
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().
{ if ( onLayer1 ) return myPreshowerLayer1Properties_; else return NULL; }
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().
{ if ( onLayer2 ) return myPreshowerLayer2Properties_; else return NULL; }
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().
{ edm::LogInfo("CalorimeterProperties") << " setupGeometry " << std::endl; EcalBarrelGeometry_ = dynamic_cast<const EcalBarrelGeometry*>(pG.getSubdetectorGeometry(DetId::Ecal,EcalBarrel)); EcalEndcapGeometry_ = dynamic_cast<const EcalEndcapGeometry*>(pG.getSubdetectorGeometry(DetId::Ecal,EcalEndcap)); HcalGeometry_ = pG.getSubdetectorGeometry(DetId::Hcal,HcalBarrel); // Takes a lot of time PreshowerGeometry_ = dynamic_cast<const EcalPreshowerGeometry*>(pG.getSubdetectorGeometry(DetId::Ecal,EcalPreshower)); }
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().
{ EcalBarrelTopology_ = theTopology.getSubdetectorTopology(DetId::Ecal,EcalBarrel); EcalEndcapTopology_ = theTopology.getSubdetectorTopology(DetId::Ecal,EcalEndcap); }
const EcalBarrelGeometry* Calorimeter::EcalBarrelGeometry_ [protected] |
Definition at line 77 of file Calorimeter.h.
Referenced by CaloGeometryHelper::buildCrystalArray(), CaloGeometryHelper::buildNeighbourArray(), CaloGeometryHelper::getClosestCell(), getEcalBarrelGeometry(), getEcalGeometry(), and setupGeometry().
const CaloSubdetectorTopology* Calorimeter::EcalBarrelTopology_ [protected] |
Definition at line 83 of file Calorimeter.h.
Referenced by CaloGeometryHelper::buildNeighbourArray(), getEcalTopology(), setupTopology(), and CaloGeometryHelper::simplemove().
const EcalEndcapGeometry* Calorimeter::EcalEndcapGeometry_ [protected] |
Definition at line 78 of file Calorimeter.h.
Referenced by CaloGeometryHelper::buildCrystalArray(), CaloGeometryHelper::buildNeighbourArray(), CaloGeometryHelper::getClosestCell(), getEcalEndcapGeometry(), getEcalGeometry(), and setupGeometry().
const CaloSubdetectorTopology* Calorimeter::EcalEndcapTopology_ [protected] |
Definition at line 84 of file Calorimeter.h.
Referenced by CaloGeometryHelper::buildNeighbourArray(), getEcalTopology(), setupTopology(), and CaloGeometryHelper::simplemove().
const CaloSubdetectorGeometry* Calorimeter::HcalGeometry_ [protected] |
Definition at line 79 of file Calorimeter.h.
Referenced by CaloGeometryHelper::getClosestCell(), getHcalGeometry(), and setupGeometry().
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().
Definition at line 74 of file Calorimeter.h.
Referenced by Calorimeter(), hcalProperties(), and ~Calorimeter().
Definition at line 68 of file Calorimeter.h.
Referenced by Calorimeter(), layer1Properties(), and ~Calorimeter().
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().