#include <CSCGeometry.h>
Public Types | |
typedef std::vector< const CSCChamber * > | ChamberContainer |
typedef std::vector< const CSCLayer * > | LayerContainer |
Public Types inherited from TrackingGeometry | |
using | DetContainer = std::vector< const GeomDet * > |
using | DetIdContainer = std::vector< DetId > |
using | DetTypeContainer = std::vector< const GeomDetType * > |
using | mapIdToDet = std::unordered_map< unsigned int, const GeomDet * > |
using | mapIdToDetUnit = std::unordered_map< unsigned int, const GeomDet * > |
Public Member Functions | |
const CSCChamberSpecs * | buildSpecs (int iChamberType, const std::vector< float > &fpar, const std::vector< float > &fupar, const CSCWireGroupPackage &wg) |
bool | centreTIOffsets () const |
const CSCChamber * | chamber (CSCDetId id) const |
Return the chamber corresponding to given DetId. More... | |
const ChamberContainer & | chambers () const |
Return a vector of all chambers. More... | |
void | clear () |
CSCGeometry () | |
Default constructor. More... | |
CSCGeometry (bool debugV, bool gangedstripsME1a_, bool onlywiresME1a_, bool realWireGeometry_, bool useCentreTIOffsets_) | |
Real constructor. More... | |
const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
const DetContainer & | detUnits () const override |
Returm a vector of all GeomDet. More... | |
const CSCChamberSpecs * | findSpecs (int iChamberType) |
bool | gangedStrips () const |
const GeomDet * | idToDet (DetId) const override |
const GeomDet * | idToDetUnit (DetId) const override |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
const CSCLayer * | layer (CSCDetId id) const |
Return the layer corresponding to given DetId. More... | |
const LayerContainer & | layers () const |
Return a vector of all layers. More... | |
void | queryModelling () const |
Dump parameters for overall strip and wire modelling. More... | |
bool | realWireGeometry () const |
void | setDebugV (bool dbgv) |
void | setGangedStripsInME1a (bool gs) |
void | setOnlyWiresInME1a (bool ow) |
void | setUseCentreTIOffsets (bool cti) |
void | setUseRealWireGeometry (bool rwg) |
bool | wiresOnly () const |
~CSCGeometry () override | |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Types | |
typedef std::map< DetId, GeomDet * > | CSCDetMap |
typedef std::map< int, const CSCChamberSpecs *, std::less< int > > | CSCSpecsContainer |
Private Member Functions | |
void | addChamber (CSCChamber *ch) |
Add a chamber with given DetId. More... | |
void | addDet (GeomDet *det) |
Add a GeomDet; not to be called by the builder. More... | |
void | addDetId (DetId id) |
Add a DetId. More... | |
void | addDetType (GeomDetType *type) |
Add a DetType. More... | |
void | addLayer (CSCLayer *l) |
Add a DetUnit. More... | |
void | deallocate () |
deallocate managed memory More... | |
Friends | |
class | CSCGeometryBuilder |
class | GeometryAligner |
The model of the geometry of the endcap muon CSC detectors.
Definition at line 24 of file CSCGeometry.h.
typedef std::vector<const CSCChamber*> CSCGeometry::ChamberContainer |
Definition at line 30 of file CSCGeometry.h.
|
private |
Definition at line 25 of file CSCGeometry.h.
|
private |
Definition at line 27 of file CSCGeometry.h.
typedef std::vector<const CSCLayer*> CSCGeometry::LayerContainer |
Definition at line 31 of file CSCGeometry.h.
CSCGeometry::CSCGeometry | ( | ) |
Default constructor.
Definition at line 10 of file CSCGeometry.cc.
References debugV_, and queryModelling().
CSCGeometry::CSCGeometry | ( | bool | debugV, |
bool | gangedstripsME1a_, | ||
bool | onlywiresME1a_, | ||
bool | realWireGeometry_, | ||
bool | useCentreTIOffsets_ | ||
) |
Real constructor.
Definition at line 20 of file CSCGeometry.cc.
References debugV_, and queryModelling().
|
override |
|
private |
Add a chamber with given DetId.
Definition at line 58 of file CSCGeometry.cc.
References addDet(), and theChambers.
Referenced by CSCGeometryBuilder::buildChamber().
|
private |
Add a GeomDet; not to be called by the builder.
Definition at line 73 of file CSCGeometry.cc.
References GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by addChamber(), and addLayer().
|
private |
|
private |
Add a DetUnit.
Definition at line 63 of file CSCGeometry.cc.
References addDet(), cmsLHEtoEOSManager::l, theDetTypes, theDetUnitIds, theDetUnits, and theLayers.
Referenced by CSCGeometryBuilder::buildChamber().
const CSCChamberSpecs * CSCGeometry::buildSpecs | ( | int | iChamberType, |
const std::vector< float > & | fpar, | ||
const std::vector< float > & | fupar, | ||
const CSCWireGroupPackage & | wg | ||
) |
Build CSCChamberSpecs for given chamber type.
@ a good candidate to be replaced by a factory?
Definition at line 159 of file CSCGeometry.cc.
References specsContainer.
Referenced by CSCGeometryBuilder::buildChamber().
|
inline |
Use the backed-out offsets for theCentreToIntersection in CSCLayerGeometry
Definition at line 130 of file CSCGeometry.h.
References useCentreTIOffsets_.
Referenced by CSCGeometryBuilder::build().
const CSCChamber * CSCGeometry::chamber | ( | CSCDetId | id | ) | const |
Return the chamber corresponding to given DetId.
Definition at line 100 of file CSCGeometry.cc.
References makeMuonMisalignmentScenario::endcap, globals_cff::id1, idToDet(), relativeConstraints::ring, and relativeConstraints::station.
Referenced by L1MuonRecoTreeProducer::analyze(), BeamHaloAnalyzer::analyze(), CSCSegmentBuilder::build(), CSCTriggerPrimitivesBuilder::build(), GEMCSCSegmentBuilder::build(), CSCGeometryBuilder::buildChamber(), CSCSectorReceiverLUT::calcGlobalPhiME(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), CSCValidation::doTimeMonitoring(), CSCEfficiency::filter(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME11(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME21(), L1TMuon::GeometryTranslator::getCSCSpecificPoint(), AngleConverter::getGlobalEta(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerPrimitivesReader::getGlobalPosition(), AngleConverter::getProcessorPhi(), geometryXMLparser.CSCAlignable::index(), MuonMesh::isClusteredWith(), MuonSimHitProducer::produce(), CSCBaseboard::setCSCGeometry(), and CSCSegtoRPC::thePoints().
const CSCGeometry::ChamberContainer & CSCGeometry::chambers | ( | ) | const |
Return a vector of all chambers.
Definition at line 96 of file CSCGeometry.cc.
References theChambers.
Referenced by FWRecoGeometryESProducer::addCSCGeometry(), CSCChamberMasker::beginRun(), AlignableMuon::buildCSCEndcap(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCGeometryValidate::validateCSCChamberGeometry(), and ValidateGeometry::validateCSChamberGeometry().
void CSCGeometry::clear | ( | void | ) |
Definition at line 33 of file CSCGeometry.cc.
References deallocate(), specsContainer, theChambers, theDetIds, theDets, theDetTypes, theDetUnitIds, theDetUnits, theLayers, and theMap.
|
private |
deallocate managed memory
Definition at line 47 of file CSCGeometry.cc.
References specsContainer, and theChambers.
Referenced by clear(), and ~CSCGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 87 of file CSCGeometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 83 of file CSCGeometry.cc.
References theDets.
Referenced by CSCRecoBadChannelsAnalyzer::analyze().
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 79 of file CSCGeometry.cc.
References theDetTypes.
Referenced by CSCRecoBadChannelsAnalyzer::analyze().
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 85 of file CSCGeometry.cc.
References theDetUnitIds.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 81 of file CSCGeometry.cc.
References theDetUnits.
const CSCChamberSpecs * CSCGeometry::findSpecs | ( | int | iChamberType | ) |
Return the CSCChamberSpecs* for given chamber type if it exists, or 0 if it has not been created.
Definition at line 151 of file CSCGeometry.cc.
References specsContainer.
Referenced by CSCGeometryBuilder::buildChamber().
|
inline |
Ganged strips in ME1a
Definition at line 110 of file CSCGeometry.h.
References gangedstripsME1a_.
Referenced by CSCOfflineMonitor::doPedestalNoise().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 91 of file CSCGeometry.cc.
References mps_fire::i, and theMap.
Referenced by MuonGeometrySanityCheck::analyze(), CSCGeometryBuilder::buildChamber(), MuonCSCDetLayerGeometryBuilder::buildLayer(), chamber(), CSCEfficiency::filter(), CSCTriggerPrimitivesReader::getGlobalPosition(), HLTCSCOverlapFilter::hltFilter(), HLTCSCRing2or3Filter::hltFilter(), idToDetUnit(), CSCPairResidualsConstraint::isFiducial(), MuonSegmentProducer::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsTrackPreparation::produce(), CSCPairResidualsConstraint::radius(), CSCPairResidualsConstraint::setZplane(), and TracktoRPC::thePoints().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 89 of file CSCGeometry.cc.
References idToDet().
Referenced by BeamHaloAnalyzer::analyze(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), GlobalRecHitsAnalyzer::fillMuon(), GlobalRecHitsProducer::fillMuon(), CSCBaseValidation::findLayer(), CSCDigitizer::findLayer(), layer(), and MuonSimHitProducer::produce().
Return the layer corresponding to given DetId.
Definition at line 105 of file CSCGeometry.cc.
References idToDetUnit().
Referenced by MuonCSCChamberResidual::addResidual(), MuonTruth::analyze(), CSCHitAssociator::associateCSCHitId(), CSCHitAssociator::associateHitId(), GEMCSCSegmentBuilder::build(), CSCTriggerPrimitivesReader::calcEfficiency(), CSCTriggerPrimitivesReader::calcResolution(), CSCPairResidualsConstraint::calculatePhi(), CSCOfflineMonitor::doRecHits(), CSCValidation::doRecHits(), MuonShowerDigiFiller::fill(), CSCEfficiency::fillRechitsSegments_info(), CSCEfficiency::fillWG_info(), CSCValidation::findNonAssociatedRecHits(), CSCRecHitDBuilder::getLayer(), geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
const CSCGeometry::LayerContainer & CSCGeometry::layers | ( | ) | const |
Return a vector of all layers.
Definition at line 98 of file CSCGeometry.cc.
References theLayers.
Referenced by CSCRecoBadChannelsAnalyzer::analyze(), CSCGeometryValidate::validateCSCLayerGeometry(), and ValidateGeometry::validateCSCLayerGeometry().
void CSCGeometry::queryModelling | ( | ) | const |
Dump parameters for overall strip and wire modelling.
Definition at line 107 of file CSCGeometry.cc.
References gangedstripsME1a_, LogTrace, onlywiresME1a_, realWireGeometry_, AlCaHLTBitMon_QueryRunRegistry::string, and useCentreTIOffsets_.
Referenced by CSCGeometry().
|
inline |
Wire geometry modelled as real hardware (complex groupings of wires and dead regions) or as a pseudo geometry with just one wire grouping per chamber type (as was done in ORCA versions up to and including ORCA_8_8_1).
Definition at line 124 of file CSCGeometry.h.
References realWireGeometry_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 33 of file CSCGeometry.h.
|
friend |
Definition at line 34 of file CSCGeometry.h.
|
private |
Definition at line 173 of file CSCGeometry.h.
Referenced by CSCGeometry(), and setDebugV().
|
private |
Definition at line 175 of file CSCGeometry.h.
Referenced by gangedStrips(), queryModelling(), and setGangedStripsInME1a().
|
private |
Definition at line 176 of file CSCGeometry.h.
Referenced by queryModelling(), setOnlyWiresInME1a(), and wiresOnly().
|
private |
Definition at line 177 of file CSCGeometry.h.
Referenced by queryModelling(), realWireGeometry(), and setUseRealWireGeometry().
|
private |
Definition at line 181 of file CSCGeometry.h.
Referenced by buildSpecs(), clear(), deallocate(), and findSpecs().
|
private |
Definition at line 155 of file CSCGeometry.h.
Referenced by addChamber(), chambers(), clear(), and deallocate().
|
private |
Definition at line 165 of file CSCGeometry.h.
|
private |
Definition at line 163 of file CSCGeometry.h.
|
private |
Definition at line 162 of file CSCGeometry.h.
Referenced by addDetType(), addLayer(), clear(), and detTypes().
|
private |
Definition at line 166 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and detUnitIds().
|
private |
Definition at line 164 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and detUnits().
|
private |
Definition at line 169 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and layers().
|
private |
Definition at line 158 of file CSCGeometry.h.
|
private |
Definition at line 178 of file CSCGeometry.h.
Referenced by centreTIOffsets(), queryModelling(), and setUseCentreTIOffsets().