#include <CaloGeometryHelper.h>
Public Types | |
typedef std::array< DetId, 8 > | NeiVect |
typedef math::XYZVector | XYZPoint |
typedef math::XYZVector | XYZVector |
Public Member Functions | |
bool | borderCrossing (const DetId &, const DetId &) const |
void | buildCrystal (const DetId &id, Crystal &) const |
CaloGeometryHelper () | |
CaloGeometryHelper (const edm::ParameterSet &fastCalo) | |
DetId | getClosestCell (const XYZPoint &point, bool ecal, bool central) const |
const NeiVect & | getNeighbours (const DetId &det) const |
void | getWindow (const DetId &pivot, int s1, int s2, std::vector< DetId > &) const |
void | initialize (double bField) |
double | magneticField () const |
bool | move (DetId &cell, const CaloDirection &dir, bool fast=true) const |
bool | preshowerPresent () const |
double | preshowerZPosition (int layer) const |
~CaloGeometryHelper () | |
Public Member Functions inherited from Calorimeter | |
Calorimeter () | |
Calorimeter (const edm::ParameterSet &caloParameters) | |
const ECALProperties * | ecalProperties (int onEcal) const |
ECAL properties. More... | |
const EcalBarrelGeometry * | getEcalBarrelGeometry () const |
const EcalEndcapGeometry * | getEcalEndcapGeometry () const |
const CaloSubdetectorGeometry * | getEcalGeometry (int subdetn) const |
const EcalPreshowerGeometry * | getEcalPreshowerGeometry () const |
const CaloSubdetectorTopology * | getEcalTopology (int subdetn) const |
const CaloSubdetectorGeometry * | getHcalGeometry () const |
const HCALProperties * | hcalProperties (int onHcal) const |
HCAL properties. More... | |
const PreshowerLayer1Properties * | layer1Properties (int onLayer1) const |
Preshower Layer1 properties. More... | |
const PreshowerLayer2Properties * | layer2Properties (int onLayer2) const |
Preshower Layer2 properties. More... | |
void | setupGeometry (const CaloGeometry &pG) |
void | setupTopology (const CaloTopology &) |
~Calorimeter () | |
Private Member Functions | |
void | buildCrystalArray () |
void | buildNeighbourArray () |
bool | diagonalmove (DetId &cell, const CaloDirection &dir) const |
bool | simplemove (DetId &cell, const CaloDirection &dir) const |
Private Attributes | |
std::vector< BaseCrystal > | barrelCrystals_ |
std::vector< NeiVect > | barrelNeighbours_ |
double | bfield_ |
std::vector< BaseCrystal > | endcapCrystals_ |
std::vector< NeiVect > | endcapNeighbours_ |
bool | neighbourmapcalculated_ |
bool | preshowerPresent_ |
double | psLayer1Z_ |
double | psLayer2Z_ |
Additional Inherited Members | |
Protected Attributes inherited from Calorimeter | |
const EcalBarrelGeometry * | EcalBarrelGeometry_ |
const CaloSubdetectorTopology * | EcalBarrelTopology_ |
const EcalEndcapGeometry * | EcalEndcapGeometry_ |
const CaloSubdetectorTopology * | EcalEndcapTopology_ |
const CaloSubdetectorGeometry * | HcalGeometry_ |
ECALBarrelProperties * | myECALBarrelProperties_ |
ECALEndcapProperties * | myECALEndcapProperties_ |
HCALBarrelProperties * | myHCALBarrelProperties_ |
HCALEndcapProperties * | myHCALEndcapProperties_ |
HCALForwardProperties * | myHCALForwardProperties_ |
PreshowerLayer1Properties * | myPreshowerLayer1Properties_ |
PreshowerLayer2Properties * | myPreshowerLayer2Properties_ |
const EcalPreshowerGeometry * | PreshowerGeometry_ |
Definition at line 18 of file CaloGeometryHelper.h.
typedef std::array<DetId, 8> CaloGeometryHelper::NeiVect |
Definition at line 41 of file CaloGeometryHelper.h.
Definition at line 21 of file CaloGeometryHelper.h.
Definition at line 20 of file CaloGeometryHelper.h.
CaloGeometryHelper::CaloGeometryHelper | ( | ) |
Definition at line 26 of file CaloGeometryHelper.cc.
References neighbourmapcalculated_, psLayer1Z_, and psLayer2Z_.
CaloGeometryHelper::CaloGeometryHelper | ( | const edm::ParameterSet & | fastCalo | ) |
CaloGeometryHelper::~CaloGeometryHelper | ( | ) |
Definition at line 56 of file CaloGeometryHelper.cc.
Definition at line 370 of file CaloGeometryHelper.cc.
References alignmentValidation::c1, EcalBarrel, EcalEndcap, EBDetId::im(), EEDetId::isc(), EBDetId::ism(), and DetId::subdetId().
Referenced by EcalHitMaker::buildSegments(), and EcalHitMaker::configureGeometry().
Definition at line 157 of file CaloGeometryHelper.cc.
References barrelCrystals_, EcalBarrel, EcalEndcap, endcapCrystals_, ecalpyutils::hashedIndex(), and DetId::subdetId().
Referenced by EcalHitMaker::buildGeometry(), and EcalHitMaker::EcalHitMaker().
|
private |
Definition at line 390 of file CaloGeometryHelper.cc.
References barrelCrystals_, DetId::Ecal, EcalBarrel, Calorimeter::EcalBarrelGeometry_, EcalEndcap, Calorimeter::EcalEndcapGeometry_, endcapCrystals_, relativeConstraints::geom, CaloSubdetectorGeometry::getGeometry(), CaloSubdetectorGeometry::getValidDetIds(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, BaseCrystal::setCorners(), and findQualityFiles::size.
Referenced by initialize().
|
private |
Definition at line 169 of file CaloGeometryHelper.cc.
References barrelNeighbours_, central, EAST, DetId::Ecal, EcalBarrel, Calorimeter::EcalBarrelGeometry_, Calorimeter::EcalBarrelTopology_, EcalEndcap, Calorimeter::EcalEndcapGeometry_, Calorimeter::EcalEndcapTopology_, endcapNeighbours_, CaloSubdetectorGeometry::getValidDetIds(), CaloSubdetectorTopology::getWindow(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), recoMuon::in, EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, LogDebug, move(), neighbourmapcalculated_, groupFilesInBlocks::nn, NORTH, NORTHEAST, NORTHWEST, orderedDir, findQualityFiles::size, SOUTH, SOUTHEAST, SOUTHWEST, mps_update::status, and WEST.
Referenced by initialize().
|
private |
Definition at line 318 of file CaloGeometryHelper.cc.
References DeadROC_duringRun::dir, EAST, NORTH, NORTHEAST, NORTHWEST, mps_fire::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, and WEST.
Referenced by move().
Definition at line 58 of file CaloGeometryHelper.cc.
References gpuPixelDoublets::cc, central, funct::cos(), Calorimeter::EcalBarrelGeometry_, Calorimeter::EcalEndcapGeometry_, PV3DBase< T, PVType, FrameType >::eta(), Histos::fill(), EcalEndcapGeometry::getClosestCell(), EcalBarrelGeometry::getClosestCell(), CaloSubdetectorGeometry::getGeometry(), HcalForward, Calorimeter::HcalGeometry_, HcalDetId::ieta(), Histos::instance(), HcalDetId::iphi(), perp(), PV3DBase< T, PVType, FrameType >::phi(), point, mps_fire::result, mathSSE::sqrt(), and DetId::subdetId().
Referenced by HcalHitMaker::addHit(), EcalHitMaker::EcalHitMaker(), CalorimetryManager::EMShowerSimulation(), CalorimetryManager::HDShowerSimulation(), CalorimetryManager::MuonMipSimulation(), and CalorimetryManager::reconstructHCAL().
const CaloGeometryHelper::NeiVect & CaloGeometryHelper::getNeighbours | ( | const DetId & | det | ) | const |
Definition at line 267 of file CaloGeometryHelper.cc.
References barrelNeighbours_, EcalBarrel, endcapNeighbours_, EBDetId::hashedIndex(), EEDetId::hashedIndex(), and DetId::subdetId().
Referenced by CrystalWindowMap::CrystalWindowMap().
void CaloGeometryHelper::getWindow | ( | const DetId & | pivot, |
int | s1, | ||
int | s2, | ||
std::vector< DetId > & | vec | ||
) | const |
Definition at line 148 of file CaloGeometryHelper.cc.
References HLT_2024v12_cff::distance, Calorimeter::getEcalGeometry(), Calorimeter::getEcalTopology(), jetUpdater_cfi::sort, and DetId::subdetId().
Referenced by EcalHitMaker::EcalHitMaker().
void CaloGeometryHelper::initialize | ( | double | bField | ) |
Definition at line 38 of file CaloGeometryHelper.cc.
References Calorimetry_cff::bField, bfield_, buildCrystalArray(), buildNeighbourArray(), Calorimeter::getEcalPreshowerGeometry(), CaloSubdetectorGeometry::getGeometry(), LogDebug, preshowerPresent_, psLayer1Z_, and psLayer2Z_.
|
inline |
Definition at line 44 of file CaloGeometryHelper.h.
References bfield_.
Referenced by EcalHitMaker::configureGeometry().
bool CaloGeometryHelper::move | ( | DetId & | cell, |
const CaloDirection & | dir, | ||
bool | fast = true |
||
) | const |
Definition at line 272 of file CaloGeometryHelper.cc.
References barrelNeighbours_, diagonalmove(), DeadROC_duringRun::dir, EAST, EcalBarrel, endcapNeighbours_, EBDetId::hashedIndex(), EEDetId::hashedIndex(), neighbourmapcalculated_, NONE, NORTH, NORTHEAST, NORTHWEST, mps_fire::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, mps_update::status, DetId::subdetId(), and WEST.
Referenced by buildNeighbourArray(), and EcalHitMaker::configureGeometry().
|
inline |
Definition at line 51 of file CaloGeometryHelper.h.
References preshowerPresent_.
Referenced by CalorimetryManager::initialize().
|
inline |
Definition at line 33 of file CaloGeometryHelper.h.
References nano_mu_digi_cff::layer, psLayer1Z_, and psLayer2Z_.
Referenced by PreshowerHitMaker::addHit(), and PreshowerHitMaker::PreshowerHitMaker().
|
private |
Definition at line 302 of file CaloGeometryHelper.cc.
References DeadROC_duringRun::dir, EcalBarrel, Calorimeter::EcalBarrelTopology_, EcalEndcap, Calorimeter::EcalEndcapTopology_, CaloSubdetectorTopology::getNeighbours(), and DetId::subdetId().
Referenced by diagonalmove(), and move().
|
private |
Definition at line 67 of file CaloGeometryHelper.h.
Referenced by buildCrystal(), and buildCrystalArray().
|
private |
Definition at line 64 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), getNeighbours(), and move().
|
private |
Definition at line 73 of file CaloGeometryHelper.h.
Referenced by initialize(), and magneticField().
|
private |
Definition at line 68 of file CaloGeometryHelper.h.
Referenced by buildCrystal(), and buildCrystalArray().
|
private |
Definition at line 65 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), getNeighbours(), and move().
|
private |
Definition at line 70 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), CaloGeometryHelper(), and move().
|
private |
Definition at line 74 of file CaloGeometryHelper.h.
Referenced by initialize(), and preshowerPresent().
|
private |
Definition at line 61 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), initialize(), and preshowerZPosition().
|
private |
Definition at line 61 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), initialize(), and preshowerZPosition().