#include <CSCTriggerGeomManager.h>
Public Member Functions | |
CSCChamber * | chamber (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned tcscid) const |
Return the CSCChamber for a corresponding endcap/station/sector/subsector/trigger cscid. | |
CSCTriggerGeomManager (const CSCTriggerGeomManager &parent) | |
CSCTriggerGeomManager () | |
std::vector< CSCChamber * > | sectorOfChambersInStation (unsigned endcap, unsigned station, unsigned sector, unsigned subsector) const |
Return a list of chambers in a given endcap/station/sector/subsector. | |
void | setGeometry (const edm::ESHandle< CSCGeometry > &thegeom) |
~CSCTriggerGeomManager () | |
Private Attributes | |
CSCGeometry * | geom |
Container for CSC geometry-related code.
--Port from ORCA L1MuCSCGeometryManager-- This class contains methods that provide access to the CSC Geometry using Trigger-Type labels. Based on nominal CSC geometry for now. Updated to use CMSSW style pointers/interfaces.
Definition at line 21 of file CSCTriggerGeomManager.h.
CSCTriggerGeomManager::CSCTriggerGeomManager | ( | ) | [inline] |
Definition at line 25 of file CSCTriggerGeomManager.h.
:geom(0) {}
CSCTriggerGeomManager::CSCTriggerGeomManager | ( | const CSCTriggerGeomManager & | parent | ) | [inline] |
Definition at line 26 of file CSCTriggerGeomManager.h.
CSCTriggerGeomManager::~CSCTriggerGeomManager | ( | ) | [inline] |
Definition at line 27 of file CSCTriggerGeomManager.h.
{}
CSCChamber * CSCTriggerGeomManager::chamber | ( | unsigned | endcap, |
unsigned | station, | ||
unsigned | sector, | ||
unsigned | subsector, | ||
unsigned | tcscid | ||
) | const |
Return the CSCChamber for a corresponding endcap/station/sector/subsector/trigger cscid.
Definition at line 31 of file CSCTriggerGeomManager.cc.
References CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), geom, errorMatrix2Lands_multiChannel::id, NULL, query::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCAnodeLCTProcessor::run(), CSCCathodeLCTProcessor::run(), and sectorOfChambersInStation().
{ CSCChamber* result = NULL; int ring = 0; int chamber = 0; ring = CSCTriggerNumbering::ringFromTriggerLabels(station,tcscid); chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,tcscid); CSCDetId id(endcap,station,ring,chamber,0); result = const_cast<CSCChamber*>(geom->chamber(id)); return result; }
std::vector< CSCChamber * > CSCTriggerGeomManager::sectorOfChambersInStation | ( | unsigned | endcap, |
unsigned | station, | ||
unsigned | sector, | ||
unsigned | subsector | ||
) | const |
Return a list of chambers in a given endcap/station/sector/subsector.
Definition at line 9 of file CSCTriggerGeomManager.cc.
References chamber(), CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), CSCDetId, geom, errorMatrix2Lands_multiChannel::id, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), query::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().
{ std::vector<CSCChamber*> result; int ring = 0, chamber = 0; CSCDetId id; for(int tcscid = CSCTriggerNumbering::minTriggerCscId(); tcscid <= CSCTriggerNumbering::maxTriggerCscId(); ++tcscid) { ring = CSCTriggerNumbering::ringFromTriggerLabels(station,tcscid); chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,tcscid); id = CSCDetId(endcap,station,ring,chamber,0); result.push_back(const_cast<CSCChamber*>(geom->chamber(id))); } return result; }
void CSCTriggerGeomManager::setGeometry | ( | const edm::ESHandle< CSCGeometry > & | thegeom | ) | [inline] |
Definition at line 29 of file CSCTriggerGeomManager.h.
References geom, and edm::ESHandle< T >::product().
Referenced by CSCTriggerGeometry::setGeometry().
{ geom = const_cast<CSCGeometry*>(thegeom.product()); }
CSCGeometry* CSCTriggerGeomManager::geom [private] |
Definition at line 41 of file CSCTriggerGeomManager.h.
Referenced by chamber(), sectorOfChambersInStation(), and setGeometry().