#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 (int station, int ring, int chamber) |
static int | triggerCscIdFromLabels (CSCDetId id) |
static int | triggerSectorFromLabels (int station, int ring, int chamber) |
static int | triggerSectorFromLabels (CSCDetId id) |
static int | triggerSubSectorFromLabels (int station, int chamber) |
static int | triggerSubSectorFromLabels (CSCDetId id) |
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 124 of file CSCTriggerNumbering.h.
|
private |
Enumerator | |
---|---|
MIN_TRIGSECTOR | |
MIN_CSCID | |
MIN_TRIGSUBSECTOR |
Definition at line 127 of file CSCTriggerNumbering.h.
CSCTriggerNumbering::CSCTriggerNumbering | ( | ) |
CSCTriggerNumbering::~CSCTriggerNumbering | ( | ) |
|
static |
chamberFromTriggerLabels
This function calculates the chamber number for a given set of trigger labels.
Definition at line 33 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, MAX_CSCID, MAX_TRIGSECTOR, MAX_TRIGSUBSECTOR, CSCDetId::maxStationId(), and CSCDetId::minStationId().
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCTriggerGeomManager::chamber(), CSCMotherboardME11::correlateLCTs(), CSCMotherboardME11GEM::correlateLCTsGEM(), CSCAnodeLCTProcessor::CSCAnodeLCTProcessor(), CSCCathodeLCTProcessor::CSCCathodeLCTProcessor(), CSCMotherboardME11GEM::CSCMotherboardME11GEM(), CSCMotherboardME21GEM::CSCMotherboardME21GEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME11(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME21(), CSCUpgradeMotherboardLUTGenerator::generateLUTsME3141(), CSCTriggerSimpleMapping::hwId(), csc::L1TrackId::L1TrackId(), CSCMotherboardME21GEM::retrieveGEMCoPads(), CSCMotherboardME11GEM::retrieveGEMCoPads(), CSCTriggerGeomManager::sectorOfChambersInStation(), CSCUpgradeMotherboard::setupGeometry(), and CSCTriggerMapping::swId().
|
inlinestatic |
Minimum and Maximum values for trigger specific labels.
Definition at line 112 of file CSCTriggerNumbering.h.
References MAX_CSCID.
Referenced by CSCSectorReceiverLUT::calcGlobalEtaME(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCSectorReceiverLUT::getGlobalEtaValue(), and CSCTriggerGeomManager::sectorOfChambersInStation().
|
inlinestatic |
Definition at line 114 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 113 of file CSCTriggerNumbering.h.
References MIN_CSCID.
Referenced by CSCSectorReceiverLUT::calcGlobalEtaME(), CSCSectorReceiverLUT::calcGlobalPhiME(), CSCSectorReceiverLUT::getGlobalEtaValue(), and CSCTriggerGeomManager::sectorOfChambersInStation().
|
inlinestatic |
Definition at line 115 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. 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(), CSCDetId::minStationId(), and relativeConstraints::ring.
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCSectorReceiverLUT::calcGlobalEtaME(), CSCTriggerGeomManager::chamber(), CSCAnodeLCTProcessor::CSCAnodeLCTProcessor(), CSCCathodeLCTProcessor::CSCCathodeLCTProcessor(), CSCMotherboard::CSCMotherboard(), CSCTriggerPrimitivesBuilder::CSCTriggerPrimitivesBuilder(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCMotherboard::getLCTs(), CSCTriggerSimpleMapping::hwId(), CSCTriggerGeomManager::sectorOfChambersInStation(), and CSCTriggerMapping::swId().
|
static |
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 68 of file CSCTriggerNumbering.cc.
References Exception, MAX_TRIGSECTOR, MAX_TRIGSUBSECTOR, CSCDetId::maxStationId(), and CSCDetId::minStationId().
Referenced by MuonScenarioBuilder::moveCSCSectors().
|
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 152 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, Exception, CSCDetId::maxChamberId(), CSCDetId::maxRingId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), CSCDetId::minRingId(), CSCDetId::minStationId(), and mps_fire::result.
Referenced by csctf::TrackStub::cscid(), csctf::TrackStub::cscidSeparateME1a(), CSCUpgradeMotherboardLUTGenerator::Helpers::getRPCfromCSC(), CSCMotherboardME3141RPC::run(), and triggerCscIdFromLabels().
|
static |
Definition at line 190 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::ring, relativeConstraints::station, and triggerCscIdFromLabels().
|
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 83 of file CSCTriggerNumbering.cc.
References Exception, CSCDetId::maxChamberId(), CSCDetId::maxRingId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), CSCDetId::minRingId(), CSCDetId::minStationId(), and mps_fire::result.
Referenced by CSCUpgradeMotherboardLUTGenerator::Helpers::getRPCfromCSC(), MuonScenarioBuilder::moveCSCSectors(), CSCMotherboardME3141RPC::run(), csc::L1TrackId::sector(), csctf::TrackStub::sector(), and triggerSectorFromLabels().
|
static |
Definition at line 113 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::ring, relativeConstraints::station, and triggerSectorFromLabels().
|
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 118 of file CSCTriggerNumbering.cc.
References Exception, CSCDetId::maxChamberId(), CSCDetId::maxStationId(), CSCDetId::minChamberId(), and CSCDetId::minStationId().
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().
|
static |
Definition at line 147 of file CSCTriggerNumbering.cc.
References relativeConstraints::chamber, relativeConstraints::station, and triggerSubSectorFromLabels().