#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 49 of file CaloGeometryHelper.h.
Definition at line 24 of file CaloGeometryHelper.h.
Definition at line 23 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 62 of file CaloGeometryHelper.cc.
Definition at line 432 of file CaloGeometryHelper.cc.
References EcalBarrel, EcalEndcap, EBDetId::im(), EEDetId::isc(), EBDetId::ism(), and DetId::subdetId().
Referenced by EcalHitMaker::buildSegments(), and EcalHitMaker::configureGeometry().
Definition at line 173 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 454 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 188 of file CaloGeometryHelper.cc.
References barrelNeighbours_, 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 368 of file CaloGeometryHelper.cc.
References EAST, NORTH, NORTHEAST, NORTHWEST, mps_fire::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, and WEST.
Referenced by move().
in sync with BaseParticlePropagator
Definition at line 66 of file CaloGeometryHelper.cc.
References funct::cos(), HcalDetId::depth(), Calorimeter::EcalBarrelGeometry_, Calorimeter::EcalEndcapGeometry_, PV3DBase< T, PVType, FrameType >::eta(), Histos::fill(), plotBeamSpotDB::first, CaloSubdetectorGeometry::getClosestCell(), EcalEndcapGeometry::getClosestCell(), EcalBarrelGeometry::getClosestCell(), CaloSubdetectorGeometry::getGeometry(), HcalEndcap, HcalForward, Calorimeter::HcalGeometry_, HcalDetId::ieta(), HcalDetId::ietaAbs(), Histos::instance(), HcalDetId::iphi(), DetId::null(), perp(), PV3DBase< T, PVType, FrameType >::phi(), mps_fire::result, edm::second(), 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 307 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 163 of file CaloGeometryHelper.cc.
References SoftLeptonByDistance_cfi::distance, Calorimeter::getEcalGeometry(), Calorimeter::getEcalTopology(), and DetId::subdetId().
Referenced by EcalHitMaker::EcalHitMaker().
void CaloGeometryHelper::initialize | ( | double | bField | ) |
Definition at line 40 of file CaloGeometryHelper.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, bfield_, buildCrystalArray(), buildNeighbourArray(), Calorimeter::getEcalPreshowerGeometry(), CaloSubdetectorGeometry::getGeometry(), LogDebug, preshowerPresent_, psLayer1Z_, and psLayer2Z_.
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Definition at line 52 of file CaloGeometryHelper.h.
References dir, and eostools::move().
Referenced by EcalHitMaker::configureGeometry().
bool CaloGeometryHelper::move | ( | DetId & | cell, |
const CaloDirection & | dir, | ||
bool | fast = true |
||
) | const |
Definition at line 313 of file CaloGeometryHelper.cc.
References barrelNeighbours_, diagonalmove(), dir, EAST, EcalBarrel, endcapNeighbours_, EBDetId::hashedIndex(), EEDetId::hashedIndex(), neighbourmapcalculated_, NONE, NORTH, NORTHEAST, NORTHWEST, DetId::null(), mps_fire::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, mps_update::status, DetId::subdetId(), and WEST.
Referenced by Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), buildNeighbourArray(), EcalHitMaker::configureGeometry(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
inline |
|
inline |
Definition at line 38 of file CaloGeometryHelper.h.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, and initialize().
Referenced by PreshowerHitMaker::addHit(), and PreshowerHitMaker::PreshowerHitMaker().
|
private |
Definition at line 348 of file CaloGeometryHelper.cc.
References EcalBarrel, Calorimeter::EcalBarrelTopology_, EcalEndcap, Calorimeter::EcalEndcapTopology_, CaloSubdetectorTopology::getNeighbours(), and DetId::subdetId().
Referenced by diagonalmove(), and move().
|
private |
Definition at line 75 of file CaloGeometryHelper.h.
Referenced by buildCrystal(), and buildCrystalArray().
|
private |
Definition at line 72 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), getNeighbours(), and move().
|
private |
Definition at line 81 of file CaloGeometryHelper.h.
Referenced by initialize().
|
private |
Definition at line 76 of file CaloGeometryHelper.h.
Referenced by buildCrystal(), and buildCrystalArray().
|
private |
Definition at line 73 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), getNeighbours(), and move().
|
private |
Definition at line 78 of file CaloGeometryHelper.h.
Referenced by buildNeighbourArray(), CaloGeometryHelper(), and move().
|
private |
Definition at line 82 of file CaloGeometryHelper.h.
Referenced by initialize().
|
private |
Definition at line 69 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), and initialize().
|
private |
Definition at line 69 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), and initialize().