CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCTriggerGeomManager Class Reference

#include <CSCTriggerGeomManager.h>

List of all members.

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

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.

:geom(0) {}
CSCTriggerGeomManager::CSCTriggerGeomManager ( const CSCTriggerGeomManager parent) [inline]

Definition at line 26 of file CSCTriggerGeomManager.h.

:geom(parent.geom) {}
CSCTriggerGeomManager::~CSCTriggerGeomManager ( ) [inline]

Definition at line 27 of file CSCTriggerGeomManager.h.

{}

Member Function Documentation

CSCChamber * CSCTriggerGeomManager::chamber ( unsigned  endcap,
unsigned  station,
unsigned  sector,
unsigned  subsector,
unsigned  tcscid 
) const
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(), 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()); }

Member Data Documentation

Definition at line 41 of file CSCTriggerGeomManager.h.

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