CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Types
CSCTriggerNumbering Class Reference

#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 }
 

Detailed Description

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

Warning
EVERY INDEX COUNTS FROM ONE

Definition at line 15 of file CSCTriggerNumbering.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

CSCTriggerNumbering::CSCTriggerNumbering ( )
CSCTriggerNumbering::~CSCTriggerNumbering ( )

Member Function Documentation

int CSCTriggerNumbering::chamberFromTriggerLabels ( int  TriggerSector,
int  TriggerSubSector,
int  station,
int  TriggerCSCID 
)
static

chamberFromTriggerLabels

This function calculates the chamber number for a given set of trigger labels.

Definition at line 33 of file CSCTriggerNumbering.cc.

Referenced by CSCTriggerGeomManager::chamber(), CSCTriggerSimpleMapping::hwId(), CSCTriggerGeomManager::sectorOfChambersInStation(), and CSCTriggerMapping::swId().

static int CSCTriggerNumbering::maxTriggerCscId ( )
inlinestatic

Minimum and Maximum values for trigger specific labels.

Definition at line 112 of file CSCTriggerNumbering.h.

References MAX_CSCID.

Referenced by CSCTriggerGeomManager::sectorOfChambersInStation().

static int CSCTriggerNumbering::maxTriggerSectorId ( )
inlinestatic
static int CSCTriggerNumbering::maxTriggerSubSectorId ( )
inlinestatic
static int CSCTriggerNumbering::minTriggerCscId ( )
inlinestatic
static int CSCTriggerNumbering::minTriggerSectorId ( )
inlinestatic
static int CSCTriggerNumbering::minTriggerSubSectorId ( )
inlinestatic
int CSCTriggerNumbering::ringFromTriggerLabels ( int  station,
int  triggerCSCID 
)
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.

Referenced by CSCTriggerGeomManager::chamber(), CSCTriggerSimpleMapping::hwId(), CSCTriggerGeomManager::sectorOfChambersInStation(), and CSCTriggerMapping::swId().

int CSCTriggerNumbering::sectorFromTriggerLabels ( int  TriggerSector,
int  TriggerSubSector,
int  station 
)
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.

int CSCTriggerNumbering::triggerCscIdFromLabels ( int  station,
int  ring,
int  chamber 
)
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.

Referenced by csctf::TrackStub::cscid(), and csctf::TrackStub::cscidSeparateME1a().

int CSCTriggerNumbering::triggerCscIdFromLabels ( CSCDetId  id)
static

Definition at line 190 of file CSCTriggerNumbering.cc.

int CSCTriggerNumbering::triggerSectorFromLabels ( int  station,
int  ring,
int  chamber 
)
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.

Referenced by csc::L1TrackId::sector(), and csctf::TrackStub::sector().

int CSCTriggerNumbering::triggerSectorFromLabels ( CSCDetId  id)
static

Definition at line 113 of file CSCTriggerNumbering.cc.

int CSCTriggerNumbering::triggerSubSectorFromLabels ( int  station,
int  chamber 
)
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.

Referenced by csctf::TrackStub::subsector().

int CSCTriggerNumbering::triggerSubSectorFromLabels ( CSCDetId  id)
static

Definition at line 147 of file CSCTriggerNumbering.cc.