#include <CSCTriggerNumbering.h>
Public Member Functions | |
CSCTriggerNumbering () | |
~CSCTriggerNumbering () | |
Static Public Member Functions | |
static int | chamberFromTriggerLabels (int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID) |
static int | maxTriggerCscId () |
static int | maxTriggerSectorId () |
static int | maxTriggerSubSectorId () |
static int | minTriggerCscId () |
static int | minTriggerSectorId () |
static int | minTriggerSubSectorId () |
static int | ringFromTriggerLabels (int station, int triggerCSCID) |
static int | sectorFromTriggerLabels (int TriggerSector, int TriggerSubSector, int station) |
static int | triggerCscIdFromLabels (CSCDetId id) |
static int | triggerCscIdFromLabels (int station, int ring, int chamber) |
static int | triggerSectorFromLabels (CSCDetId id) |
static int | triggerSectorFromLabels (int station, int ring, int chamber) |
static int | triggerSubSectorFromLabels (CSCDetId id) |
static int | triggerSubSectorFromLabels (int station, int chamber) |
Private Types | |
enum | eTrigMaxNum { MAX_TRIGSECTOR = 6, MAX_CSCID = 9, MAX_TRIGSUBSECTOR = 2 } |
enum | eTrigMinNum { MIN_TRIGSECTOR = 1, MIN_CSCID = 1, MIN_TRIGSUBSECTOR = 0 } |
Converts standard trigger labels to geometry labels. "Standard" implies that the numbering is EXACTLY that of CMS NOTE: CMS IN 2000/004 v. 2.1 (Oct, 2005).
Definition at line 15 of file CSCTriggerNumbering.h.
|
private |
Enumerator | |
---|---|
MAX_TRIGSECTOR | |
MAX_CSCID | |
MAX_TRIGSUBSECTOR |
Definition at line 121 of file CSCTriggerNumbering.h.
|
private |
Enumerator | |
---|---|
MIN_TRIGSECTOR | |
MIN_CSCID | |
MIN_TRIGSUBSECTOR |
Definition at line 124 of file CSCTriggerNumbering.h.
CSCTriggerNumbering::CSCTriggerNumbering | ( | ) |
CSCTriggerNumbering::~CSCTriggerNumbering | ( | ) |
|
static |
\function chamberFromTriggerLabels
This function calculates the chamber number for a given set of trigger labels.
Definition at line 30 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, MAX_CSCID, MAX_TRIGSECTOR, MAX_TRIGSUBSECTOR, CSCDetId::maxStationId(), MIN_TRIGSUBSECTOR, CSCDetId::minStationId(), and relativeConstraints::station.
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCBaseboard::CSCBaseboard(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME11(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME21(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerSimpleMapping::hwId(), csc::L1TrackId::L1TrackId(), and CSCTriggerMapping::swId().
|
inlinestatic |
Minimum and Maximum values for trigger specific labels.
Definition at line 110 of file CSCTriggerNumbering.h.
References MAX_CSCID.
Referenced by CSCSectorReceiverLUT::calcGlobalEtaME(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCMotherboard::checkValid(), and CSCSectorReceiverLUT::getGlobalEtaValue().
|
inlinestatic |
Definition at line 112 of file CSCTriggerNumbering.h.
References MAX_TRIGSECTOR.
Referenced by CSCTFTrackBuilder::buildTracks(), CSCTFTrackBuilder::CSCTFTrackBuilder(), CSCTFTrackBuilder::initialize(), CSCTFDTReceiver::process(), and CSCTFTrackBuilder::~CSCTFTrackBuilder().
|
inlinestatic |
|
inlinestatic |
Definition at line 111 of file CSCTriggerNumbering.h.
References MIN_CSCID.
Referenced by CSCSectorReceiverLUT::calcGlobalEtaME(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCMotherboard::checkValid(), and CSCSectorReceiverLUT::getGlobalEtaValue().
|
inlinestatic |
Definition at line 113 of file CSCTriggerNumbering.h.
References MIN_TRIGSECTOR.
Referenced by CSCTFTrackBuilder::buildTracks(), CSCTFTrackBuilder::CSCTFTrackBuilder(), CSCTFTrackBuilder::initialize(), CSCTFDTReceiver::process(), and CSCTFTrackBuilder::~CSCTFTrackBuilder().
|
inlinestatic |
|
static |
The following functions transform trigger labels into their corresponding standard chamber labels. \function ringFromTriggerLabels
This function calculates the ring at which a given chamber resides. Station 1: ring = [1,3] Station 2-4: ring = [1,2]
Definition at line 5 of file CSCTriggerNumbering.cc.
References Exception, MAX_CSCID, CSCDetId::maxStationId(), MIN_CSCID, CSCDetId::minStationId(), relativeConstraints::ring, and relativeConstraints::station.
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCSectorReceiverLUT::calcGlobalEtaME(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCBaseboard::CSCBaseboard(), CSCTriggerPrimitivesBuilder::CSCTriggerPrimitivesBuilder(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCTriggerSimpleMapping::hwId(), and CSCTriggerMapping::swId().
|
static |
\function sectorFromTriggerLabels
Translates trigger sector and trigger subsector into the "real" sector number For station 1 sector = [1,12] For stations 2-4 sector = [1,6]
Definition at line 64 of file CSCTriggerNumbering.cc.
References Exception, MAX_TRIGSECTOR, MAX_TRIGSUBSECTOR, CSCDetId::maxStationId(), MIN_TRIGSUBSECTOR, CSCDetId::minStationId(), and relativeConstraints::station.
Referenced by MuonScenarioBuilder::moveCSCSectors().
|
static |
Definition at line 170 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::ring, relativeConstraints::station, and triggerCscIdFromLabels().
|
static |
Return trigger-level CSC id within a sector for an Endcap Muon chamber.
This id is an index within a sector such that the 3 inner ring chambers (20 degrees each) are 1, 2, 3 (increasing counterclockwise) and the 6 outer ring chambers (10 degrees each) are 4, 5, 6, 7, 8, 9 (again increasing counter-clockwise.)
This method knows which chambers are part of which sector and returns the chamber label/index/identifier accordingly. Beware that this information is liable to change according to hardware and software changes.
Definition at line 137 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, CSCDetId::maxChamberId(), CSCDetId::maxRingId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), CSCDetId::minRingId(), CSCDetId::minStationId(), mps_fire::result, relativeConstraints::ring, and relativeConstraints::station.
Referenced by csctf::TrackStub::cscid(), csctf::TrackStub::cscidSeparateME1a(), and triggerCscIdFromLabels().
|
static |
Definition at line 101 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::ring, relativeConstraints::station, and triggerSectorFromLabels().
|
static |
The following functions transform standard chamber labels into their corresponding trigger labels. Return trigger-level sector id for an Endcap Muon chamber.
This method encapsulates the information about which chambers are in which sectors, and may need updating according to hardware changes, or software chamber indexing.
Station 1 has 3 rings of 10-degree chambers.
Stations 2, 3, 4 have an inner ring of 20-degree chambers and an outer ring of 10-degree chambers.
Sectors are 60 degree slices of a station, covering both rings.
For Station 1, there are subsectors of 30 degrees: 9 10-degree chambers (3 each from ME1/1, ME1/2, ME1/3.)
The first sector starts at phi = 15 degrees so it matches Barrel Muon sectors. We count from one not zero.
Definition at line 76 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, CSCDetId::maxChamberId(), CSCDetId::maxRingId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), CSCDetId::minRingId(), CSCDetId::minStationId(), mps_fire::result, relativeConstraints::ring, and relativeConstraints::station.
Referenced by MuonScenarioBuilder::moveCSCSectors(), csc::L1TrackId::sector(), csctf::TrackStub::sector(), and triggerSectorFromLabels().
|
static |
Definition at line 133 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::station, and triggerSubSectorFromLabels().
|
static |
Return trigger-level sub sector id within a sector in station one.
Each station one sector has two 30 degree subsectors. Again, we count from one, not zero. Zero is an allowed return value though.
A return value of zero means this station does not have subsectors.
Definition at line 105 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, CSCDetId::maxChamberId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), CSCDetId::minStationId(), and relativeConstraints::station.
Referenced by CSCTFAnalyzer::analyze(), L1TCSCTF::analyze(), CSCTFTrackBuilder::buildTracks(), CSCTFSPCoreLogic::loadData(), MuonScenarioBuilder::moveCSCSectors(), CSCTFPacker::produce(), CSCTFSectorProcessor::run(), L1Analysis::L1AnalysisCSCTF::SetLCTs(), L1Analysis::L1AnalysisCSCTF::SetTracks(), csctf::TrackStub::subsector(), and triggerSubSectorFromLabels().