CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTriggerGeomManager.cc
Go to the documentation of this file.
2 
5 
6 #include <iostream>
7 
8 std::vector<CSCChamber*>
10  unsigned sector, unsigned subsector) const
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  {
19  ring = CSCTriggerNumbering::ringFromTriggerLabels(station,tcscid);
20  chamber = CSCTriggerNumbering::chamberFromTriggerLabels(sector,subsector,station,tcscid);
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 }
29 
32  unsigned sector, unsigned subsector,
33  unsigned tcscid) const
34 {
36 
37  int ring = 0;
38  int chamber = 0;
39 
40  ring = CSCTriggerNumbering::ringFromTriggerLabels(station,tcscid);
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: query.py:137
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
Definition: CSCGeometry.cc:117
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.
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)