CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCMotherboard.h
Go to the documentation of this file.
1 #ifndef CSCTriggerPrimitives_CSCMotherboard_h
2 #define CSCTriggerPrimitives_CSCMotherboard_h
3 
40 
42 {
43  public:
45  CSCMotherboard(unsigned endcap, unsigned station, unsigned sector,
46  unsigned subsector, unsigned chamber,
47  const edm::ParameterSet& conf);
48 
51 
54 
56  void run(const std::vector<int> w_time[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_WIRES],
57  const std::vector<int> hs_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS_7CFEBS],
58  const std::vector<int> ds_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS_7CFEBS]);
59 
62  void run(const CSCWireDigiCollection* wiredc, const CSCComparatorDigiCollection* compdc);
63 
65  std::vector<CSCCorrelatedLCTDigi> readoutLCTs();
66 
68  std::vector<CSCCorrelatedLCTDigi> getLCTs();
69 
72  void clear();
73 
75  void setConfigParameters(const CSCDBL1TPParameters* conf);
76 
79 
82 
83  // VK: change to protected, to allow inheritance
84  protected:
85 
88  int infoV;
89 
91  const unsigned theEndcap;
92  const unsigned theStation;
93  const unsigned theSector;
94  const unsigned theSubsector;
95  const unsigned theTrigChamber;
96 
98  bool isMTCC;
99 
101  bool isTMB07;
102 
104  bool isSLHC;
105 
107  unsigned int mpc_block_me1a;
110 
113 
116 
119 
121  static const unsigned int def_mpc_block_me1a;
122  static const unsigned int def_alct_trig_enable, def_clct_trig_enable;
124  static const unsigned int def_tmb_l1a_window_size;
125 
127  enum {MAX_LCT_BINS = 16};
128 
131 
134 
136  void checkConfigParameters();
137 
138  void correlateLCTs(CSCALCTDigi bestALCT, CSCALCTDigi secondALCT,
139  CSCCLCTDigi bestCLCT, CSCCLCTDigi secondCLCT);
141  const CSCCLCTDigi& cLCT);
142  unsigned int encodePattern(const int ptn, const int highPt);
143  unsigned int findQuality(const CSCALCTDigi& aLCT, const CSCCLCTDigi& cLCT);
144 
146  void dumpConfigParams() const;
147 
148  // Method for tests
149  void testLCT();
150 };
151 #endif
const unsigned theSector
CSCCorrelatedLCTDigi constructLCTs(const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT)
unsigned int clct_trig_enable
std::vector< CSCCorrelatedLCTDigi > getLCTs()
std::vector< CSCCorrelatedLCTDigi > readoutLCTs()
unsigned int match_trig_window_size
const unsigned theTrigChamber
static const unsigned int def_alct_trig_enable
const unsigned theEndcap
static const unsigned int def_mpc_block_me1a
unsigned int findQuality(const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT)
static const unsigned int def_clct_trig_enable
unsigned int mpc_block_me1a
void correlateLCTs(CSCALCTDigi bestALCT, CSCALCTDigi secondALCT, CSCCLCTDigi bestCLCT, CSCCLCTDigi secondCLCT)
const unsigned theStation
CSCCorrelatedLCTDigi secondLCT[MAX_LCT_BINS]
static const unsigned int def_tmb_l1a_window_size
const unsigned theSubsector
void run(const std::vector< int > w_time[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_WIRES], const std::vector< int > hs_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS_7CFEBS], const std::vector< int > ds_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS_7CFEBS])
unsigned int encodePattern(const int ptn, const int highPt)
unsigned int tmb_l1a_window_size
void checkConfigParameters()
unsigned int match_trig_enable
CSCAnodeLCTProcessor * alct
tuple conf
Definition: dbtoconf.py:185
CSCCorrelatedLCTDigi firstLCT[MAX_LCT_BINS]
static const unsigned int def_match_trig_window_size
unsigned int alct_trig_enable
CSCCathodeLCTProcessor * clct
void dumpConfigParams() const
void setConfigParameters(const CSCDBL1TPParameters *conf)
static const unsigned int def_match_trig_enable