CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCTriggerGeomManager Class Reference

#include <CSCTriggerGeomManager.h>

Public Member Functions

CSCChamberchamber (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned tcscid) const
 Return the CSCChamber for a corresponding endcap/station/sector/subsector/trigger cscid. More...
 
 CSCTriggerGeomManager ()
 
 CSCTriggerGeomManager (const CSCTriggerGeomManager &parent)
 
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. More...
 
void setGeometry (const edm::ESHandle< CSCGeometry > &thegeom)
 
 ~CSCTriggerGeomManager ()
 

Private Attributes

CSCGeometrygeom
 

Detailed Description

Container for CSC geometry-related code.

Author
Lindsey Gray March 2006

–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.

Constructor & Destructor Documentation

CSCTriggerGeomManager::CSCTriggerGeomManager ( )
inline

Definition at line 25 of file CSCTriggerGeomManager.h.

25 :geom(0) {}
CSCTriggerGeomManager::CSCTriggerGeomManager ( const CSCTriggerGeomManager parent)
inline

Definition at line 26 of file CSCTriggerGeomManager.h.

26 :geom(parent.geom) {}
CSCTriggerGeomManager::~CSCTriggerGeomManager ( )
inline

Definition at line 27 of file CSCTriggerGeomManager.h.

27 {}

Member Function Documentation

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, hcalTTPDigis_cfi::id, NULL, mps_fire::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().

Referenced by CSCTriggerPrimitivesBuilder::build(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCGEMTriggerLUTGenerator::generateLUTsME11(), CSCGEMTriggerLUTGenerator::generateLUTsME21(), CSCSectorReceiverLUT::getGlobalEtaValue(), geometryXMLparser.CSCAlignable::index(), CSCMotherboardME3141RPC::run(), CSCMotherboardME21GEM::run(), CSCMotherboardME11GEM::run(), CSCAnodeLCTProcessor::run(), CSCCathodeLCTProcessor::run(), sectorOfChambersInStation(), and setGeometry().

34 {
36 
37  int ring = 0;
38  int chamber = 0;
39 
41  chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,tcscid);
42  CSCDetId id(endcap,station,ring,chamber,0);
43 
44  result = const_cast<CSCChamber*>(geom->chamber(id));
45 
46  return result;
47 }
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...
#define NULL
Definition: scimark2.h:8
static int ringFromTriggerLabels(int station, int triggerCSCID)
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:118
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
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(), geom, hcalTTPDigis_cfi::id, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), mps_fire::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().

Referenced by setGeometry().

11 {
12  std::vector<CSCChamber*> result;
13  int ring = 0, chamber = 0;
14  CSCDetId id;
15 
16  for(int tcscid = CSCTriggerNumbering::minTriggerCscId();
17  tcscid <= CSCTriggerNumbering::maxTriggerCscId(); ++tcscid)
18  {
21 
22  id = CSCDetId(endcap,station,ring,chamber,0);
23 
24  result.push_back(const_cast<CSCChamber*>(geom->chamber(id)));
25  }
26 
27  return result;
28 }
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...
static int ringFromTriggerLabels(int station, int triggerCSCID)
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:118
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
void CSCTriggerGeomManager::setGeometry ( const edm::ESHandle< CSCGeometry > &  thegeom)
inline

Member Data Documentation

CSCGeometry* CSCTriggerGeomManager::geom
private

Definition at line 41 of file CSCTriggerGeomManager.h.

Referenced by chamber(), sectorOfChambersInStation(), and setGeometry().