#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 32 of file CSCGeometry.h.
|
private |
Definition at line 26 of file CSCGeometry.h.
|
private |
Definition at line 28 of file CSCGeometry.h.
typedef std::vector<const CSCLayer*> CSCGeometry::LayerContainer |
Definition at line 33 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 15 of file CSCGeometry.cc.
References debugV_, and queryModelling().
|
override |
|
private |
Add a chamber with given DetId.
Definition at line 51 of file CSCGeometry.cc.
References addDet(), and theChambers.
Referenced by CSCGeometryBuilder::buildChamber(), and centreTIOffsets().
|
private |
Add a GeomDet; not to be called by the builder.
Definition at line 71 of file CSCGeometry.cc.
References GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by addChamber(), addLayer(), and centreTIOffsets().
|
private |
Add a DetId.
Referenced by centreTIOffsets().
|
private |
Add a DetType.
Definition at line 66 of file CSCGeometry.cc.
References theDetTypes.
Referenced by centreTIOffsets().
|
private |
Add a DetUnit.
Definition at line 57 of file CSCGeometry.cc.
References addDet(), CSCLayer::chamber(), GeomDet::geographicalId(), CSCChamber::specs(), theDetTypes, theDetUnitIds, theDetUnits, and theLayers.
Referenced by CSCGeometryBuilder::buildChamber(), and centreTIOffsets().
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 191 of file CSCGeometry.cc.
References specsContainer.
Referenced by CSCGeometryBuilder::buildChamber().
|
inline |
Use the backed-out offsets for theCentreToIntersection in CSCLayerGeometry
Definition at line 133 of file CSCGeometry.h.
References addChamber(), addDet(), addDetId(), addDetType(), addLayer(), deallocate(), checklumidiff::l, queryModelling(), and useCentreTIOffsets_.
Referenced by CSCGeometryBuilder::build().
const CSCChamber * CSCGeometry::chamber | ( | CSCDetId | id | ) | const |
Return the chamber corresponding to given DetId.
Definition at line 133 of file CSCGeometry.cc.
References makeMuonMisalignmentScenario::endcap, globals_cff::id1, idToDet(), relativeConstraints::ring, and relativeConstraints::station.
Referenced by RPCEfficiency::analyze(), L1MuonRecoTreeProducer::analyze(), BeamHaloAnalyzer::analyze(), CSCSegmentBuilder::build(), CSCTriggerPrimitivesBuilder::build(), GEMCSCSegmentBuilder::build(), CSCGeometryBuilder::buildChamber(), CSCSectorReceiverLUT::calcGlobalPhiME(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), CSCSegtoRPC::CSCSegtoRPC(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), CSCOfflineMonitor::doSegments(), CSCValidation::doSegments(), CSCValidation::doTimeMonitoring(), CSCEfficiency::filter(), CSCComparatorDigiFitter::fit(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME11(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME21(), CSCComparatorDigiFitter::getComparatorDigiCoordinates(), L1TMuon::GeometryTranslator::getCSCSpecificPoint(), AngleConverter::getGlobalEta(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerPrimitivesReader::getGlobalPosition(), AngleConverter::getProcessorPhi(), geometryXMLparser.CSCAlignable::index(), MuonMesh::isClusteredWith(), MuonMesh::isDuplicateOf(), MuonSimHitProducer::produce(), and CSCBaseboard::setCSCGeometry().
const CSCGeometry::ChamberContainer & CSCGeometry::chambers | ( | ) | const |
Return a vector of all chambers.
Definition at line 121 of file CSCGeometry.cc.
References theChambers.
Referenced by FWRecoGeometryESProducer::addCSCGeometry(), CSCChamberMasker::beginRun(), AlignableMuon::buildCSCEndcap(), CSCOfflineMonitor::doEfficiencies(), CSCValidation::doEfficiencies(), and ValidateGeometry::validateCSChamberGeometry().
void CSCGeometry::clear | ( | void | ) |
Definition at line 25 of file CSCGeometry.cc.
References deallocate(), specsContainer, theChambers, theDetIds, theDets, theDetTypes, theDetUnitIds, theDetUnits, theLayers, and theMap.
|
private |
deallocate managed memory
Definition at line 39 of file CSCGeometry.cc.
References specsContainer, and theChambers.
Referenced by centreTIOffsets(), clear(), and ~CSCGeometry().
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 102 of file CSCGeometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 90 of file CSCGeometry.cc.
References theDets.
Referenced by CSCRecoBadChannelsAnalyzer::analyze().
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 78 of file CSCGeometry.cc.
References theDetTypes.
Referenced by CSCRecoBadChannelsAnalyzer::analyze().
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 96 of file CSCGeometry.cc.
References theDetUnitIds.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 84 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 184 of file CSCGeometry.cc.
References specsContainer.
Referenced by CSCGeometryBuilder::buildChamber().
|
inline |
Ganged strips in ME1a
Definition at line 113 of file CSCGeometry.h.
References gangedstripsME1a_.
Referenced by CSCChamberSpecs::CSCChamberSpecs(), CSCLayerGeometry::CSCLayerGeometry(), and CSCOfflineMonitor::doPedestalNoise().
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 114 of file CSCGeometry.cc.
References mps_fire::i, and theMap.
Referenced by MuonGeometrySanityCheck::analyze(), CSCGeometryBuilder::buildChamber(), MuonCSCDetLayerGeometryBuilder::buildLayer(), chamber(), CSCEfficiency::filter(), CSCComparatorDigiFitter::fit(), CSCComparatorDigiFitter::getComparatorDigiCoordinates(), CSCTriggerPrimitivesReader::getGlobalPosition(), HLTCSCOverlapFilter::hltFilter(), HLTCSCRing2or3Filter::hltFilter(), idToDetUnit(), CSCPairResidualsConstraint::isFiducial(), MuonSegmentProducer::produce(), TrackerToMuonPropagator::produce(), CSCOverlapsTrackPreparation::produce(), CSCPairResidualsConstraint::radius(), CSCPairResidualsConstraint::setZplane(), and TracktoRPC::TracktoRPC().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 108 of file CSCGeometry.cc.
References idToDet().
Referenced by BeamHaloAnalyzer::analyze(), GlobalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), GlobalHitsProdHist::fillMuon(), GlobalHitsAnalyzer::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 139 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 127 of file CSCGeometry.cc.
References theLayers.
Referenced by CSCRecoBadChannelsAnalyzer::analyze(), and ValidateGeometry::validateCSCLayerGeometry().
void CSCGeometry::queryModelling | ( | ) | const |
Dump parameters for overall strip and wire modelling.
Definition at line 143 of file CSCGeometry.cc.
References gangedstripsME1a_, LogTrace, onlywiresME1a_, realWireGeometry_, AlCaHLTBitMon_QueryRunRegistry::string, and useCentreTIOffsets_.
Referenced by centreTIOffsets(), and 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 127 of file CSCGeometry.h.
References realWireGeometry_.
Referenced by CSCLayerGeometry::CSCLayerGeometry().
|
inline |
|
inline |
Definition at line 104 of file CSCGeometry.h.
References gangedstripsME1a_.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Definition at line 35 of file CSCGeometry.h.
|
friend |
Definition at line 36 of file CSCGeometry.h.
|
private |
Definition at line 177 of file CSCGeometry.h.
Referenced by CSCGeometry(), and setDebugV().
|
private |
Definition at line 179 of file CSCGeometry.h.
Referenced by gangedStrips(), queryModelling(), and setGangedStripsInME1a().
|
private |
Definition at line 180 of file CSCGeometry.h.
Referenced by queryModelling(), setOnlyWiresInME1a(), and wiresOnly().
|
private |
Definition at line 181 of file CSCGeometry.h.
Referenced by queryModelling(), realWireGeometry(), and setUseRealWireGeometry().
|
private |
Definition at line 185 of file CSCGeometry.h.
Referenced by buildSpecs(), clear(), deallocate(), and findSpecs().
|
private |
Definition at line 159 of file CSCGeometry.h.
Referenced by addChamber(), chambers(), clear(), and deallocate().
|
private |
Definition at line 169 of file CSCGeometry.h.
|
private |
Definition at line 167 of file CSCGeometry.h.
|
private |
Definition at line 166 of file CSCGeometry.h.
Referenced by addDetType(), addLayer(), clear(), and detTypes().
|
private |
Definition at line 170 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and detUnitIds().
|
private |
Definition at line 168 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and detUnits().
|
private |
Definition at line 173 of file CSCGeometry.h.
Referenced by addLayer(), clear(), and layers().
|
private |
Definition at line 162 of file CSCGeometry.h.
|
private |
Definition at line 182 of file CSCGeometry.h.
Referenced by centreTIOffsets(), queryModelling(), and setUseCentreTIOffsets().