#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 25 of file CaloGeometryHelper.cc.
References neighbourmapcalculated_, psLayer1Z_, and psLayer2Z_.
CaloGeometryHelper::CaloGeometryHelper | ( | const edm::ParameterSet & | fastCalo | ) |
CaloGeometryHelper::~CaloGeometryHelper | ( | ) |
Definition at line 61 of file CaloGeometryHelper.cc.
Definition at line 431 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 172 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 453 of file CaloGeometryHelper.cc.
References barrelCrystals_, DetId::Ecal, EcalBarrel, Calorimeter::EcalBarrelGeometry_, EcalEndcap, Calorimeter::EcalEndcapGeometry_, endcapCrystals_, relativeConstraints::geom, CaloCellGeometry::getCorners(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), CaloSubdetectorGeometry::getValidDetIds(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, BaseCrystal::setCorners(), and findQualityFiles::size.
Referenced by initialize().
|
private |
Definition at line 187 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_, NORTH, NORTHEAST, NORTHWEST, orderedDir, findQualityFiles::size, SOUTH, SOUTHEAST, SOUTHWEST, ntuplemaker::status, and WEST.
Referenced by initialize().
|
private |
Definition at line 367 of file CaloGeometryHelper.cc.
References EAST, NORTH, NORTHEAST, NORTHWEST, query::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, and WEST.
Referenced by move().
in sync with BaseParticlePropagator
Definition at line 65 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(), CaloCellGeometry::getPosition(), HcalEndcap, HcalForward, Calorimeter::HcalGeometry_, HcalDetId::ieta(), HcalDetId::ietaAbs(), Histos::instance(), HcalDetId::iphi(), DetId::null(), perp(), Geom::Phi< T >::phi(), PV3DBase< T, PVType, FrameType >::phi(), query::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 306 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 162 of file CaloGeometryHelper.cc.
References HLT_25ns14e33_v1_cff::distance, Calorimeter::getEcalGeometry(), Calorimeter::getEcalTopology(), python.multivaluedict::sort(), and DetId::subdetId().
Referenced by EcalHitMaker::EcalHitMaker().
void CaloGeometryHelper::initialize | ( | double | bField | ) |
Definition at line 39 of file CaloGeometryHelper.cc.
References ecalTB2006H4_GenSimDigiReco_cfg::bField, bfield_, buildCrystalArray(), buildNeighbourArray(), Calorimeter::getEcalPreshowerGeometry(), CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), LogDebug, preshowerPresent_, psLayer1Z_, psLayer2Z_, and PV3DBase< T, PVType, FrameType >::z().
Referenced by FamosManager::setupGeometryAndField().
|
inline |
Definition at line 52 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 312 of file CaloGeometryHelper.cc.
References barrelNeighbours_, diagonalmove(), dir, EAST, EcalBarrel, endcapNeighbours_, EBDetId::hashedIndex(), EEDetId::hashedIndex(), neighbourmapcalculated_, NONE, NORTH, NORTHEAST, NORTHWEST, DetId::null(), query::result, simplemove(), SOUTH, SOUTHEAST, SOUTHWEST, ntuplemaker::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 |
Definition at line 59 of file CaloGeometryHelper.h.
References preshowerPresent_.
Referenced by CalorimetryManager::reconstruct().
|
inline |
Definition at line 38 of file CaloGeometryHelper.h.
References psLayer1Z_, and psLayer2Z_.
Referenced by PreshowerHitMaker::addHit(), and PreshowerHitMaker::PreshowerHitMaker().
|
private |
Definition at line 347 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(), and magneticField().
|
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(), and preshowerPresent().
|
private |
Definition at line 69 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), initialize(), and preshowerZPosition().
|
private |
Definition at line 69 of file CaloGeometryHelper.h.
Referenced by CaloGeometryHelper(), initialize(), and preshowerZPosition().