CMS 3D CMS Logo

CSCUtils.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TMuonEndCapPhase2_CSCUtils_h
2 #define L1Trigger_L1TMuonEndCapPhase2_CSCUtils_h
3 
5 
6 namespace emtf::phase2::csc {
7 
8  // Enums
9  enum Facing { kFront, kRear, kNone };
10 
11  // Chambers
13 
15 
17 
19 
20  // Functions
21  bool isTPInSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector);
22 
24  int match_endcap, int match_sector, int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_id);
25 
26  int getId(int ring, int station, int chamber);
27 
28  int getTriggerSector(int ring, int station, int chamber);
29 
30  int getTriggerSubsector(int station, int chamber);
31 
33 
34  std::pair<int, int> getMaxStripAndWire(int station, int ring);
35 
36  std::pair<int, int> getMaxPatternAndQuality(int station, int ring);
37 
38 } // namespace emtf::phase2::csc
39 
40 #endif // namespace L1Trigger_L1TMuonEndCapPhase2_CSCUtils_h
bool isTPInSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector)
Definition: CSCUtils.cc:17
std::pair< int, int > getMaxPatternAndQuality(int station, int ring)
Definition: CSCUtils.cc:161
int getId(int ring, int station, int chamber)
Definition: CSCUtils.cc:39
int getNext20DegChamber(int chamber)
Definition: CSCUtils.cc:12
int getTriggerSubsector(int station, int chamber)
Definition: CSCUtils.cc:85
std::pair< int, int > getMaxStripAndWire(int station, int ring)
Definition: CSCUtils.cc:131
int getNext10DegChamber(int chamber)
Definition: CSCUtils.cc:8
int getTriggerSector(int ring, int station, int chamber)
Definition: CSCUtils.cc:70
Facing getFaceDirection(int station, int ring, int chamber)
Definition: CSCUtils.cc:100
bool isTPInNeighborSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_id)
Definition: CSCUtils.cc:21
int getPrev10DegChamber(int chamber)
Definition: CSCUtils.cc:10
int getPrev20DegChamber(int chamber)
Definition: CSCUtils.cc:14