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 
41 
43 {
44  public:
46  CSCMotherboard(unsigned endcap, unsigned station, unsigned sector,
47  unsigned subsector, unsigned chamber,
48  const edm::ParameterSet& conf);
49 
52 
55 
57  void run(const std::vector<int> w_time[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_WIRES],
58  const std::vector<int> hs_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS],
59  const std::vector<int> ds_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]);
60 
63  void run(const CSCWireDigiCollection* wiredc, const CSCComparatorDigiCollection* compdc);
64 
66  std::vector<CSCCorrelatedLCTDigi> readoutLCTs();
67 
69  std::vector<CSCCorrelatedLCTDigi> getLCTs();
70 
73  void clear();
74 
76  void setConfigParameters(const CSCDBL1TPParameters* conf);
77 
80 
83 
84  // VK: change to protected, to allow inheritance
85  protected:
86 
89  int infoV;
90 
92  const unsigned theEndcap;
93  const unsigned theStation;
94  const unsigned theSector;
95  const unsigned theSubsector;
96  const unsigned theTrigChamber;
97 
99  bool isMTCC;
100 
102  bool isTMB07;
103 
105  bool isSLHC;
106 
108  unsigned int mpc_block_me1a;
111 
114 
117 
120 
122  static const unsigned int def_mpc_block_me1a;
123  static const unsigned int def_alct_trig_enable, def_clct_trig_enable;
125  static const unsigned int def_tmb_l1a_window_size;
126 
128  enum {MAX_LCT_BINS = 16};
129 
132 
135 
137  void checkConfigParameters();
138 
139  void correlateLCTs(CSCALCTDigi bestALCT, CSCALCTDigi secondALCT,
140  CSCCLCTDigi bestCLCT, CSCCLCTDigi secondCLCT);
142  const CSCCLCTDigi& cLCT);
143  unsigned int encodePattern(const int ptn, const int highPt);
144  unsigned int findQuality(const CSCALCTDigi& aLCT, const CSCCLCTDigi& cLCT);
145 
147  void dumpConfigParams() const;
148 
149  // Method for tests
150  void testLCT();
151 };
152 #endif
const unsigned theSector
CSCCorrelatedLCTDigi constructLCTs(const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT)
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], const std::vector< int > ds_times[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS])
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
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