test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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, NULL, mps_fire::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().

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

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)
tuple result
Definition: mps_fire.py:84
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(), CSCDetId, geom, CSCTriggerNumbering::maxTriggerCscId(), CSCTriggerNumbering::minTriggerCscId(), mps_fire::result, relativeConstraints::ring, and CSCTriggerNumbering::ringFromTriggerLabels().

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)
tuple result
Definition: mps_fire.py:84
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

Definition at line 29 of file CSCTriggerGeomManager.h.

References geom, and edm::ESHandle< class >::product().

Referenced by CSCTriggerGeometry::setGeometry().

29 { geom = const_cast<CSCGeometry*>(thegeom.product()); }
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

CSCGeometry* CSCTriggerGeomManager::geom
private

Definition at line 41 of file CSCTriggerGeomManager.h.

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