28 static std::atomic<bool> config_dumped{
false};
77 if ((
infoV > 0) && !config_dumped) {
85 if ((i_layer + 1) % 2 == 0)
99 cclut_ = std::make_unique<ComparatorCodeLUT>(conf.
conf());
105 thresholds_ = shower.getParameter<std::vector<unsigned>>(
"showerThresholds");
108 peakCheck_ = shower.getParameter<
bool>(
"peakCheck");
136 static std::atomic<bool> config_dumped{
false};
149 if (!config_dumped) {
151 config_dumped =
true;
161 static const unsigned int max_fifo_tbins = 1 << 5;
162 static const unsigned int max_fifo_pretrig = 1 << 5;
163 static const unsigned int max_hit_persist = 1 << 4;
164 static const unsigned int max_drift_delay = 1 << 2;
165 static const unsigned int max_nplanes_hit_pretrig = 1 << 3;
166 static const unsigned int max_nplanes_hit_pattern = 1 << 3;
167 static const unsigned int max_pid_thresh_pretrig = 1 << 4;
169 static const unsigned int max_tmb_l1a_window_size = 1 << 4;
206 static std::atomic<bool> config_dumped{
false};
207 if ((
infoV > 0) && !config_dumped) {
209 config_dumped =
true;
227 <<
"+++ Invalid ring number for this processor " <<
theRing <<
" was set in the config." 229 <<
"+++ CSC geometry looks garbled; no emulation possible +++\n";
247 <<
"+++ CSC geometry looks garbled; no emulation possible +++\n";
272 <<
" is not defined in current geometry! +++\n" 273 <<
"+++ CSC geometry looks garbled; no emulation possible +++\n";
284 <<
" numStrips_ = " <<
numStrips_ <<
"; CLCT emulation skipped! +++";
285 std::vector<CSCCLCTDigi> emptyV;
303 unsigned int layersHit = 0;
306 if (!halfStripTimes[i_layer][i_hstrip].
empty()) {
316 run(halfStripTimes, lookupTable);
323 std::vector<CSCCLCTDigi> tmpV =
getCLCTs();
332 for (
auto&
p : tmpV) {
352 std::vector<CSCCLCTDigi> CLCTlist =
findLCTs(halfstrip, lookupTable);
354 for (
const auto&
p : CLCTlist) {
355 const int bx =
p.getBX();
360 <<
"; skipping it... +++\n";
419 for (
int hstrip = minHS; hstrip < maxHS; hstrip++) {
427 LogDebug(
"CSCCathodeLCTProcessor") <<
" bx " <<
bx <<
" bestCLCT key HS " << keyHS
428 <<
" localshower zone: " << minHS <<
", " << maxHS <<
" totalHits " 435 bool hasDigis =
false;
439 digiV[i_layer].clear();
452 LogTrace(
"CSCCathodeLCTProcessor") <<
"found " <<
digiV[i_layer].size() <<
" comparator digi(s) in layer " 463 const bool me1a = (
id.station() == 1) && (
id.
ring() == 4);
466 const unsigned int origStrip = digiIt->getStrip();
467 const unsigned int maxStripsME1a =
471 if (me1a && origStrip <= maxStripsME1a && !
disableME1a_) {
476 digiV[
id.layer() - 1].push_back(digi_corr);
478 digiV[
id.layer() - 1].push_back(*digiIt);
487 for (std::vector<CSCComparatorDigi>::iterator pld =
digiV[i_layer].begin(); pld !=
digiV[i_layer].end();
491 std::ostringstream strstrm;
492 strstrm <<
"Comparator digi: comparator = " << pld->getComparator() <<
" strip #" << pld->getStrip()
494 std::vector<int> bx_times = pld->getTimeBinsOn();
495 for (
unsigned int tbin = 0; tbin < bx_times.size(); tbin++)
496 strstrm <<
" " << bx_times[tbin];
497 LogTrace(
"CSCCathodeLCTProcessor") << strstrm.str();
502 int thisComparator = pld->getComparator();
503 if (thisComparator != 0 && thisComparator != 1) {
507 <<
" Found comparator digi with wrong comparator value = " << thisComparator <<
"; skipping it... +++\n";
512 int thisStrip = pld->getStrip() - 1;
513 if (thisStrip < 0 || thisStrip >=
numStrips_) {
517 <<
" Found comparator digi with wrong strip number = " << thisStrip <<
" (max strips = " <<
numStrips_ 518 <<
"); skipping it... +++\n";
524 int thisHalfstrip = 2 * thisStrip + thisComparator +
stagger[i_layer];
529 <<
" Found wrong halfstrip number = " << thisHalfstrip <<
"; skipping this digi... +++\n";
534 std::vector<int> bx_times = pld->getTimeBinsOn();
535 for (
unsigned int i = 0;
i < bx_times.size();
i++) {
545 if (bx_times[
i] > 1 && bx_times[
i] < static_cast<int>(
fifo_tbins)) {
546 if (
i == 0 || (
i > 0 && bx_times[
i] - bx_times[
i - 1] >= static_cast<int>(
hit_persist))) {
552 <<
"Comp digi: layer " << i_layer + 1 <<
" digi #" << i_digi + 1 <<
" strip " << thisStrip
553 <<
" halfstrip " << thisHalfstrip <<
" time " << bx_times[
i] <<
" comparator " << thisComparator
554 <<
" stagger " <<
stagger[i_layer];
555 halfstrip[i_layer][thisHalfstrip].push_back(bx_times[
i]);
560 <<
" Skipping comparator digi: strip = " << thisStrip <<
", layer = " << i_layer + 1
561 <<
", bx = " << bx_times[
i] <<
", bx of previous hit = " << bx_times[
i - 1];
566 <<
theChamber <<
"+++ Skipping comparator digi: strip = " << thisStrip
567 <<
", layer = " << i_layer + 1 <<
", bx = " << bx_times[
i] <<
" +++";
578 std::vector<CSCCLCTDigi> lctList;
591 while (start_bx < stop_bx) {
599 bool pre_trig =
preTrigger(start_bx, first_bx);
606 LogTrace(
"CSCCathodeLCTProcessor") <<
"..... pretrigger at bx = " << first_bx <<
"; waiting drift delay .....";
617 std::map<int, std::map<int, CSCCLCTDigi::ComparatorContainer>> hits_in_patterns;
618 hits_in_patterns.clear();
626 if (
nhits[hstrip] > 0) {
628 <<
" bx = " << std::setw(2) << latch_bx <<
" --->" 629 <<
" halfstrip = " << std::setw(3) << hstrip <<
" best pid = " << std::setw(2) <<
best_pid[hstrip]
630 <<
" nhits = " <<
nhits[hstrip];
648 best_halfstrip[ilct] = -1;
649 best_quality[ilct] = 0;
659 if (
quality[hstrip] > best_quality[0]) {
660 best_halfstrip[0] = hstrip;
661 best_quality[0] =
quality[hstrip];
664 const int best_hs(best_halfstrip[0]);
668 tempBestCLCT =
constructCLCT(first_bx, best_hs, hits_in_patterns[best_hs][
best_pid[best_hs]], lookupTable);
674 if (best_halfstrip[0] >= 0) {
685 if (
quality[hstrip] > best_quality[1]) {
686 best_halfstrip[1] = hstrip;
687 best_quality[1] =
quality[hstrip];
690 const int best_hs(best_halfstrip[1]);
702 bool changeOrder =
false;
704 unsigned qualityBest = 0, qualitySecond = 0;
705 unsigned patternBest = 0, patternSecond = 0;
706 unsigned halfStripBest = 0, halfStripSecond = 0;
721 if (qualitySecond > qualityBest)
723 else if ((qualitySecond == qualityBest) and (
int(patternSecond / 2) >
int(patternBest / 2)))
725 else if ((qualitySecond == qualityBest) and (
int(patternSecond / 2) ==
int(patternBest / 2)) and
726 (halfStripSecond < halfStripBest))
732 tempCLCT = tempBestCLCT;
733 tempBestCLCT = tempSecondCLCT;
734 tempSecondCLCT = tempCLCT;
739 lctList.push_back(tempBestCLCT);
741 if (tempSecondCLCT.
isValid()) {
742 lctList.push_back(tempSecondCLCT);
756 for (
unsigned int bx = latch_bx + 1;
bx < stop_time;
bx++) {
757 bool return_to_idle =
true;
764 LogTrace(
"CSCCathodeLCTProcessor") <<
" State machine busy at bx = " <<
bx;
765 return_to_idle =
false;
770 if (return_to_idle) {
772 LogTrace(
"CSCCathodeLCTProcessor") <<
" State machine returns to idle state at bx = " <<
bx;
779 start_bx = first_bx + 1;
807 std::vector<int> bx_times =
time[i_layer][i_strip];
808 for (
unsigned int i = 0;
i < bx_times.size();
i++) {
810 if (bx_times[
i] < 0 || bx_times[
i] +
hit_persist >= bits_in_pulse) {
813 <<
"+++ BX time of comparator digi (halfstrip = " << i_strip <<
" layer = " << i_layer
814 <<
") bx = " << bx_times[
i] <<
" is not within the range (0-" << bits_in_pulse
815 <<
"] allowed for pulse extension. Skip this digi! +++\n";
830 LogTrace(
"CSCCathodeLCTProcessor") <<
"....................PreTrigger...........................";
832 int nPreTriggers = 0;
834 bool pre_trig =
false;
836 for (
unsigned int bx_time = start_bx; bx_time <
fifo_tbins; bx_time++) {
843 std::map<int, std::map<int, CSCCLCTDigi::ComparatorContainer>> hits_in_patterns;
844 hits_in_patterns.clear();
854 if (
nhits[hstrip] > 0) {
856 <<
" bx = " << std::setw(2) << bx_time <<
" --->" 857 <<
" halfstrip = " << std::setw(3) << hstrip <<
" best pid = " << std::setw(2) <<
best_pid[hstrip]
858 <<
" nhits = " <<
nhits[hstrip];
881 LogTrace(
"CSCCathodeLCTProcessor") <<
"no pretrigger, returning \n";
888 const unsigned int bx_time,
std::map<
int, std::map<int, CSCCLCTDigi::ComparatorContainer>>& hits_in_patterns) {
896 for (
int key_hstrip = 0; key_hstrip <
numHalfStrips_; key_hstrip++) {
898 nhits[key_hstrip] = 0;
910 hit_layer[ilayer] =
false;
915 hits_single_pattern.resize(6);
916 for (
auto&
p : hits_single_pattern) {
921 double num_pattern_hits = 0., times_sum = 0.;
922 std::multiset<int> mset_for_median;
923 mset_for_median.clear();
939 LogTrace(
"CSCCathodeLCTProcessor") <<
" In patternFinding: key_strip = " << key_hstrip <<
" pid = " << pid
940 <<
" layer = " << this_layer <<
" strip = " << this_strip << std::endl;
944 if (hit_layer[this_layer] ==
false) {
945 hit_layer[this_layer] =
true;
948 hits_single_pattern[this_layer][strip_num] = this_strip -
stagger[this_layer];
953 int first_bx_layer = bx_time;
954 for (
unsigned int dbx = 0; dbx <
hit_persist; dbx++) {
960 times_sum += (double)first_bx_layer;
961 num_pattern_hits += 1.;
962 mset_for_median.insert(first_bx_layer);
964 LogTrace(
"CSCCathodeLCTProcessor") <<
" 1st bx in layer: " << first_bx_layer <<
" sum bx: " << times_sum
965 <<
" #pat. hits: " << num_pattern_hits;
973 hits_in_patterns[key_hstrip][pid] = hits_single_pattern;
977 if (layers_hit >
nhits[key_hstrip]) {
979 nhits[key_hstrip] = layers_hit;
995 const int best_patid,
1000 for (
int hstrip = best_hstrip - nspan; hstrip <= best_hstrip + pspan; hstrip++) {
1008 const unsigned halfstrip_withstagger,
1046 LogTrace(
"CSCCathodeLCTProcessor") <<
"Produce CLCT " << clct << std::endl;
1053 const unsigned hstrip,
1054 const unsigned nPreTriggers)
const {
1069 for (
auto&
p : newHits) {
1082 std::ostringstream strm;
1084 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
1085 strm <<
"+ CLCT configuration parameters: +\n";
1086 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
1087 strm <<
" fifo_tbins [total number of time bins in DAQ readout] = " <<
fifo_tbins <<
"\n";
1088 strm <<
" fifo_pretrig [start time of cathode raw hits in DAQ readout] = " <<
fifo_pretrig <<
"\n";
1089 strm <<
" hit_persist [duration of signal pulse, in 25 ns bins] = " <<
hit_persist <<
"\n";
1090 strm <<
" drift_delay [time after pre-trigger before TMB latches LCTs] = " <<
drift_delay <<
"\n";
1091 strm <<
" nplanes_hit_pretrig [min. number of layers hit for pre-trigger] = " <<
nplanes_hit_pretrig <<
"\n";
1092 strm <<
" nplanes_hit_pattern [min. number of layers hit for trigger] = " <<
nplanes_hit_pattern <<
"\n";
1093 strm <<
" pid_thresh_pretrig [lower threshold on pattern id] = " <<
pid_thresh_pretrig <<
"\n";
1094 strm <<
" min_separation [region of busy key strips] = " <<
min_separation <<
"\n";
1095 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
1096 LogDebug(
"CSCCathodeLCTProcessor") << strm.str();
1104 std::ostringstream strstrm;
1106 if (i_strip % 10 == 0) {
1108 strstrm << i_strip / 10;
1110 strstrm << (i_strip - 100) / 10;
1118 strstrm << i_strip % 10;
1126 std::vector<int> bx_times =
strip[i_layer][i_strip];
1128 strstrm << std::hex << bx_times[0] <<
std::dec;
1136 LogTrace(
"CSCCathodeLCTProcessor") << strstrm.str();
1143 std::vector<CSCCLCTDigi> tmpV;
1164 if (early_tbin < 0) {
1166 <<
"Early time bin (early_tbin) smaller than minimum allowed, which is 0. set early_tbin to 0.";
1169 if (late_tbin > max_late_tbin) {
1171 <<
"Late time bin (late_tbin) larger than maximum allowed, which is " << max_late_tbin
1172 <<
". set early_tbin to max allowed";
1177 const auto& all_clcts =
getCLCTs();
1181 int bx_readout = -1;
1182 for (
const auto& clct : all_clcts) {
1184 if (!clct.isValid())
1187 const int bx = clct.getBX();
1189 if (
bx < early_tbin) {
1192 <<
" Do not report correlated CLCT on key halfstrip " << clct.getStrip() <<
": found at bx " <<
bx 1193 <<
", whereas the earliest allowed bx is " << early_tbin;
1198 if (
bx > late_tbin) {
1201 <<
" Do not report correlated CLCT on key halfstrip " << clct.getStrip() <<
": found at bx " <<
bx 1202 <<
", whereas the latest allowed bx is " << late_tbin;
1210 if (bx_readout == -1 ||
bx == bx_readout) {
1211 tmpV.push_back(clct);
1212 if (bx_readout == -1)
1216 tmpV.push_back(clct);
1221 for (
const auto& clct : tmpV) {
1230 std::vector<CSCCLCTDigi> tmpV;
1275 std::vector<CSCShowerDigi> showerOut;
1292 bool atLeastOneCompHit =
false;
1293 for (
const auto& compdigi :
digiV[i_layer]) {
1294 std::vector<int> bx_times = compdigi.getTimeBinsOn();
1296 if (
std::find(bx_times.begin(), bx_times.end(),
bx) != bx_times.end()) {
1297 hitsInTime[
bx] += 1;
1298 atLeastOneCompHit =
true;
1302 if (atLeastOneCompHit) {
1303 layersWithHits[
bx].insert(i_layer);
1313 std::vector<unsigned> station_thresholds = {
1320 unsigned int deadtime =
1322 unsigned int dead_count = 0;
1328 unsigned this_hitsInTime = 0;
1331 for (
unsigned mbx = minbx; mbx <= maxbx; mbx++) {
1332 this_hitsInTime += hitsInTime[mbx];
1336 if (hitsInTime[minbx] < hitsInTime[maxbx + 1]
or 1337 (hitsInTime[minbx] == hitsInTime[maxbx + 1] and hitsInTime[
bx] < hitsInTime[
bx + 1]))
1340 bool dead_status = dead_count > 0;
1344 unsigned this_inTimeHMT = 0;
1349 if (!station_thresholds.empty()) {
1350 for (
int i = station_thresholds.size() - 1;
i >= 0;
i--) {
1351 if (this_hitsInTime >= station_thresholds[
i]) {
1352 this_inTimeHMT =
i + 1;
1353 dead_count = deadtime;
1361 this_inTimeHMT,
false,
theTrigChamber,
bx, CSCShowerDigi::ShowerType::kCLCTShower, 0, this_hitsInTime);
std::unique_ptr< ComparatorCodeLUT > cclut_
unsigned int clctNplanesHitPattern() const
static const unsigned int def_drift_delay
std::vector< CSCCLCTDigi > readoutCLCTs() const
CSCCLCTDigi bestCLCT[CSCConstants::MAX_CLCT_TBINS]
T getParameter(std::string const &) const
void setDefaultConfigParameters()
const CSCLayer * layer(CSCDetId id) const
Return the layer corresponding to the given id.
unsigned int nplanes_hit_pretrig
static const unsigned int def_fifo_tbins
bool isOneShotHighAtBX(const unsigned layer, const unsigned channel, const unsigned bx) const
unsigned int clctMinSeparation() const
static constexpr int MAX_NUM_STRIPS_RUN1
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
unsigned int min_separation
static std::string chamberName(int endcap, int station, int ring, int chamber)
void checkConfigParameters(unsigned int &var, const unsigned int var_max, const unsigned int var_def, const std::string &var_str)
unsigned int clctFifoTbins() const
uint16_t getQuality() const
return quality of a pattern (number of layers hit!)
static constexpr int NUM_STRIPS_ME1A_GANGED
ParameterSet const & getParameterSet(std::string const &) const
void pulseExtension(const std::vector< int > time[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER])
uint16_t getKeyStrip(const uint16_t n=2) const
unsigned int clctNplanesHitPretrig() const
static constexpr int NUM_STRIPS_ME1A_UNGANGED
static const unsigned int def_min_separation
CSCPatternBank::LCTPatterns clct_pattern_
bool patternFinding(const unsigned int bx_time, std::map< int, std::map< int, CSCCLCTDigi::ComparatorContainer > > &hits_in_patterns)
virtual std::vector< CSCCLCTDigi > findLCTs(const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER], const CSCL1TPLookupTableCCLUT *lookupTable)
bool getLocalShowerFlag(int bx) const
Log< level::Error, false > LogError
std::unique_ptr< LCTQualityControl > qualityControl_
edm::ParameterSet const & showerParams() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
unsigned short iChamberType() const
static const unsigned int def_nplanes_hit_pretrig
CSCShowerDigi cathode_showers_[CSCConstants::MAX_CLCT_TBINS]
std::vector< CSCShowerDigi > readoutShower() const
void cleanComparatorContainer(CSCCLCTDigi &lct) const
edm::ParameterSet const & clctParams() const
const CSCLayerGeometry * geometry() const
static const unsigned int def_pid_thresh_pretrig
unsigned int fifo_pretrig
std::vector< std::vector< uint16_t > > ComparatorContainer
CSCCathodeLCTProcessor(unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, CSCBaseboard::Parameters &conf)
unsigned int nhits[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]
const unsigned theTrigChamber
CSCCLCTPreTriggerDigi constructPreCLCT(const int bx, const unsigned halfstrip, const unsigned index) const
static const LCTPatterns clct_pattern_run3_
CSCCLCTDigi constructCLCT(const int bx, const unsigned halfstrip_withstagger, const CSCCLCTDigi::ComparatorContainer &hits, const CSCL1TPLookupTableCCLUT *lookupTable)
CSCCLCTDigi getSecondCLCT(int bx) const
std::string chamberName() const
std::vector< CSCCLCTDigi > getCLCTs() const
int numberOfStrips() const
static const unsigned int def_tmb_l1a_window_size
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
unsigned int clctFifoPretrig() const
edm::ParameterSet const & tmbParams() const
bool getDigis(const CSCComparatorDigiCollection *compdc)
static const unsigned int def_nplanes_hit_pattern
static constexpr int NUM_HALF_STRIPS_PER_CFEB
void setHits(const ComparatorContainer &hits)
unsigned int clctPidThreshPretrig() const
const CSCChamber * cscChamber(CSCGeometry const &) const
static constexpr int MAX_NUM_HALF_STRIPS_RUN2_TRIGGER
static const int clct_pattern_offset_[CSCConstants::CLCT_PATTERN_WIDTH]
bool isValid() const
check CLCT validity (1 - valid CLCT)
static int getPatternBend(const LCTPattern &pattern)
unsigned int clctHitPersist() const
std::vector< CSCCLCTPreTriggerDigi > thePreTriggerDigis
unsigned int nplanes_hit_pattern
static constexpr int INVALID_HALF_STRIP
void encodeHighMultiplicityBits()
unsigned numberOfLayersAtBX(const unsigned bx) const
static constexpr int MAX_NUM_STRIPS_RUN2
static const LCTPatterns clct_pattern_legacy_
static constexpr int NUM_STRIPS_ME1B
void markBusyKeys(const int best_hstrip, const int best_patid, int quality[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER])
void checkConfigParameters()
static const unsigned int def_fifo_pretrig
bool localShowerFlag[CSCConstants::MAX_CLCT_TBINS]
std::vector< int > thePreTriggerBXs
std::pair< const_iterator, const_iterator > Range
static const unsigned int def_hit_persist
void dumpDigis(const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]) const
const unsigned theStation
CSCCLCTDigi getBestCLCT(int bx) const
int stagger[CSCConstants::NUM_LAYERS]
std::vector< DigiType >::const_iterator const_iterator
uint16_t getBX() const
return BX
uint16_t getPattern() const
return pattern
std::vector< CSCCLCTDigi > run(const CSCComparatorDigiCollection *compdc, const CSCChamber *chamber, const CSCL1TPLookupTableCCLUT *lookupTable)
edm::ParameterSet const & conf() const
void initialize(unsigned numberOfChannels)
void setBX(const uint16_t bx)
set bx
const ComparatorContainer & getHits() const
virtual bool preTrigger(const int start_bx, int &first_bx)
unsigned minLayersCentralTBin_
uint16_t getRun3Pattern() const
return pattern
CSCCLCTDigi secondCLCT[CSCConstants::MAX_CLCT_TBINS]
void clear()
clear this CLCT
std::vector< CSCComparatorDigi > digiV[CSCConstants::NUM_LAYERS]
unsigned bitsInPulse() const
void dumpConfigParams() const
void clear()
clear this Shower
unsigned int tmb_l1a_window_size
Log< level::Warning, false > LogWarning
void readComparatorDigis(std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER])
std::vector< CSCShowerDigi > getAllShower() const
void extend(const unsigned layer, const unsigned channel, const unsigned bx, const unsigned hit_persist)
unsigned int pid_thresh_pretrig
bool ispretrig_[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]
void setConfigParameters(const CSCDBL1TPParameters *conf)
const unsigned theSubsector
void setTrknmb(const uint16_t number)
Set track number (1,2) after sorting CLCTs.
void checkLocalShower(int zone, const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER])
unsigned int clctDriftDelay() const
static constexpr int NUM_STRIPS_PER_CFEB
unsigned int best_pid[CSCConstants::MAX_NUM_HALF_STRIPS_RUN2_TRIGGER]
std::vector< unsigned > thresholds_