CMS 3D CMS Logo

Public Member Functions | Protected Attributes

Calorimeter Class Reference

#include <Calorimeter.h>

Inheritance diagram for Calorimeter:
CaloGeometryHelper

List of all members.

Public Member Functions

 Calorimeter ()
 Calorimeter (const edm::ParameterSet &caloParameters)
const ECALPropertiesecalProperties (int onEcal) const
 ECAL properties.
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.
const PreshowerLayer1Propertieslayer1Properties (int onLayer1) const
 Preshower Layer1 properties.
const PreshowerLayer2Propertieslayer2Properties (int onLayer2) const
 Preshower Layer2 properties.
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 ( )
Calorimeter::Calorimeter ( const edm::ParameterSet caloParameters)
Calorimeter::~Calorimeter ( )

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().

                                            {
  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_.

const EcalEndcapGeometry* Calorimeter::getEcalEndcapGeometry ( ) const [inline]

Definition at line 53 of file Calorimeter.h.

References EcalEndcapGeometry_.

Referenced by EcalHitMaker::EcalHitMaker().

const CaloSubdetectorGeometry * Calorimeter::getEcalGeometry ( int  subdetn) const

Definition at line 133 of file Calorimeter.cc.

References EcalBarrelGeometry_, EcalEndcapGeometry_, and PreshowerGeometry_.

Referenced by CaloGeometryHelper::getWindow(), CalorimetryManager::loadFromEcalBarrel(), and CalorimetryManager::loadFromEcalEndcap().

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

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::loadFromHcal().

{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)
void Calorimeter::setupTopology ( const CaloTopology theTopology)

Member Data Documentation

const EcalBarrelGeometry* Calorimeter::EcalBarrelGeometry_ [protected]
const EcalEndcapGeometry* Calorimeter::EcalEndcapGeometry_ [protected]

Definition at line 70 of file Calorimeter.h.

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

Definition at line 71 of file Calorimeter.h.

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

Definition at line 72 of file Calorimeter.h.

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

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().

Definition at line 80 of file Calorimeter.h.

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