11 constexpr std::array<int, 48> wg_min_hs_ME1a_ = {
12 {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, -1, -1, -1, -1, -1, -1, -1, -1,
13 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
14 constexpr std::array<int, 48> wg_max_hs_ME1a_ = {
15 {223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 223, 205, 189, 167, 150, -1, -1, -1, -1, -1, -1, -1, -1,
16 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
17 constexpr std::array<int, 48> wg_min_hs_ME1a_ganged_ = {
18 {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, -1, -1, -1, -1, -1, -1, -1, -1,
19 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
20 constexpr std::array<int, 48> wg_max_hs_ME1a_ganged_ = {
21 {159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 150, -1, -1, -1, -1, -1, -1, -1, -1,
22 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}};
23 constexpr std::array<int, 48> wg_min_hs_ME1b_ = {{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 100, 73, 47, 22, 0, 0,
24 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
25 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
26 constexpr std::array<int, 48> wg_max_hs_ME1b_ = {{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 127, 127,
27 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
28 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
29 127, 127, 127, 127, 127, 127, 127, 127, 105, 93, 78, 63}};
34 : endcap_(endcap), station_(station),
ring_(ring) {
36 gangedME1a_ = commonParams.getParameter<
bool>(
"gangedME1a");
62 const int min_hs_ME1a = wg_min_hs_ME1a_[wiregroup];
63 const int max_hs_ME1a = wg_max_hs_ME1a_[wiregroup];
64 const int min_hs_ME1a_ganged = wg_min_hs_ME1a_ganged_[wiregroup];
65 const int max_hs_ME1a_ganged = wg_max_hs_ME1a_ganged_[wiregroup];
66 const int min_hs_ME1b = wg_min_hs_ME1b_[wiregroup];
67 const int max_hs_ME1b = wg_max_hs_ME1b_[wiregroup];
81 return halfstrip >= min_hs_ME1a && halfstrip <= max_hs_ME1a;
94 return halfstrip >= min_hs_ME1a_ganged && halfstrip <= max_hs_ME1a_ganged;
102 return halfstrip >= min_hs_ME1b && halfstrip <= max_hs_ME1b;
const edm::EventSetup & c
bool isValid() const
check ALCT validity (1 - valid ALCT)
bool doesWiregroupCrossHalfStrip(int wg, int keystrip) const
uint16_t getKeyStrip(const uint16_t n=2) const
static const char ring_[]
bool isValid() const
check CLCT validity (1 - valid CLCT)
bool ignoreAlctCrossClct_
CSCALCTCrossCLCT(unsigned endcap, unsigned station, unsigned ring, bool ignoreAlctCrossClct, const edm::ParameterSet &conf)
uint16_t getKeyWG() const
return key wire group
bool doesALCTCrossCLCT(const CSCALCTDigi &a, const CSCCLCTDigi &c) const
T getParameter(std::string const &) const