#include <CSCCathodeLCTProcessor.h>
Public Types | |
enum | { MAX_CLCT_BINS = 16 } |
enum | { NUM_PATTERN_STRIPS = 26 } |
enum | { NUM_PATTERN_HALFSTRIPS = 42 } |
enum | { MAX_CFEBS = 5 } |
enum | CLCT_INDICES { CLCT_PATTERN, CLCT_BEND, CLCT_STRIP, CLCT_BX, CLCT_STRIP_TYPE, CLCT_QUALITY, CLCT_CFEB } |
Public Member Functions | |
void | clear () |
CSCCathodeLCTProcessor (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf, const edm::ParameterSet &comm) | |
CSCCathodeLCTProcessor () | |
std::vector< CSCCLCTDigi > | getCLCTs () |
bool | getDigis (const CSCComparatorDigiCollection *compdc) |
void | getDigis (const CSCComparatorDigiCollection *compdc, const CSCDetId &id) |
std::vector< int > | preTriggerBXs () const |
std::vector< CSCCLCTDigi > | readoutCLCTs () |
std::vector< CSCCLCTDigi > | run (const CSCComparatorDigiCollection *compdc) |
void | run (const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const std::vector< int > distrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
void | setConfigParameters (const CSCDBL1TPParameters *conf) |
Static Public Member Functions | |
static void | distripStagger (int stag_triad[CSCConstants::MAX_NUM_STRIPS], int stag_time[CSCConstants::MAX_NUM_STRIPS], int stag_digi[CSCConstants::MAX_NUM_STRIPS], int i_distrip, bool debug=false) |
Public Attributes | |
CSCCLCTDigi | bestCLCT [MAX_CLCT_BINS] |
CSCCLCTDigi | secondCLCT [MAX_CLCT_BINS] |
Static Public Attributes | |
static const int | pattern [CSCConstants::NUM_CLCT_PATTERNS_PRE_TMB07][NUM_PATTERN_STRIPS+1] |
static const int | pattern2007 [CSCConstants::NUM_CLCT_PATTERNS][NUM_PATTERN_HALFSTRIPS+1] |
static const int | pattern2007_offset [NUM_PATTERN_HALFSTRIPS] |
static const int | pre_hit_pattern [2][NUM_PATTERN_STRIPS] |
Private Member Functions | |
void | checkConfigParameters () |
void | dumpConfigParams () const |
void | dumpDigis (const std::vector< int > strip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int stripType, const int nStrips) const |
std::vector< CSCCLCTDigi > | findLCTs (const std::vector< int > strip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], int stripType) |
std::vector< CSCCLCTDigi > | findLCTs (const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const std::vector< int > distrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
std::vector< CSCCLCTDigi > | findLCTs (const std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
int | findNumLayersHit (std::vector< int > stripsHit[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
void | getKeyStripData (const std::vector< int > strip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], int keystrip_data[CSCConstants::NUM_HALF_STRIPS][7], int nStrips, int first_bx, int &best_strip, int stripType) |
void | getKeyStripData (const unsigned int h_pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const unsigned int d_pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], int keystrip_data[2][7], const int first_bx) |
void | getPattern (int pattern_num, int strip_value[NUM_PATTERN_STRIPS], int bx_time, int &quality, int &bend) |
void | getPattern (unsigned int pattern_num, const int strip_value[NUM_PATTERN_STRIPS], unsigned int &quality, unsigned int &bend) |
bool | hitIsGood (int hitTime, int BX) |
void | latchLCTs (const unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], int keyStrip[MAX_CFEBS], unsigned int nhits[MAX_CFEBS], const int stripType, const int nStrips, const int bx_time) |
void | markBusyKeys (const int best_hstrip, const int best_patid, int quality[CSCConstants::NUM_HALF_STRIPS]) |
bool | preTrigger (const std::vector< int > strip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int stripType, const int nStrips, int &first_bx) |
bool | preTrigger (const std::vector< int > strip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int stripType, const int nStrips, const int start_bx, int &first_bx) |
bool | preTrigger (const unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int start_bx, int &first_bx) |
bool | preTrigLookUp (const unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int stripType, const int nStrips, const unsigned int bx_time) |
void | printPatterns () |
void | priorityEncode (const int h_keyStrip[MAX_CFEBS], const unsigned int h_nhits[MAX_CFEBS], const int d_keyStrip[MAX_CFEBS], const unsigned int d_nhits[MAX_CFEBS], int keystrip_data[2][7]) |
bool | ptnFinding (const unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int nStrips, const unsigned int bx_time) |
void | pulseExtension (const std::vector< int > time[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], const int nStrips, unsigned int pulse[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
void | readComparatorDigis (std::vector< int >halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], std::vector< int > distrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
void | readComparatorDigis (std::vector< int > halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS]) |
void | setDefaultConfigParameters () |
void | testDistripStagger () |
void | testLCTs () |
void | testPatterns () |
Private Attributes | |
unsigned int | best_pid [CSCConstants::NUM_HALF_STRIPS] |
std::vector< CSCComparatorDigi > | digiV [CSCConstants::NUM_LAYERS] |
unsigned int | drift_delay |
unsigned int | fifo_pretrig |
unsigned int | fifo_tbins |
unsigned int | hit_persist |
int | infoV |
bool | isMTCC |
bool | isTMB07 |
unsigned int | min_separation |
unsigned int | nhits [CSCConstants::NUM_HALF_STRIPS] |
unsigned int | nplanes_hit_pattern |
unsigned int | nplanes_hit_pretrig |
int | numStrips |
unsigned int | pid_thresh_pretrig |
int | stagger [CSCConstants::NUM_LAYERS] |
const unsigned | theEndcap |
std::vector< int > | thePreTriggerBXs |
const unsigned | theSector |
const unsigned | theStation |
const unsigned | theSubsector |
const unsigned | theTrigChamber |
Static Private Attributes | |
static const int | cfeb_strips [2] = { 8, 32} |
static const unsigned int | def_drift_delay = 2 |
static const unsigned int | def_fifo_pretrig = 7 |
static const unsigned int | def_fifo_tbins = 12 |
static const unsigned int | def_hit_persist = 6 |
static const unsigned int | def_min_separation = 10 |
static const unsigned int | def_nplanes_hit_pattern = 4 |
static const unsigned int | def_nplanes_hit_pretrig = 2 |
static const unsigned int | def_pid_thresh_pretrig = 2 |
This class simulates the functionality of the cathode LCT card. It is run by the MotherBoard and returns up to two CathodeLCTs. It can be run either in a test mode, where it is passed arrays of halfstrip and distrip times, or in normal mode where it determines the time and comparator information from the comparator digis.
The CathodeLCTs come in distrip and halfstrip flavors; they are sorted (from best to worst) as follows: 6/6H, 5/6H, 6/6D, 4/6H, 5/6D, 4/6D.
Definition at line 38 of file CSCCathodeLCTProcessor.h.
anonymous enum |
Maximum number of time bins.
Enumerator | |
---|---|
MAX_CLCT_BINS |
Definition at line 70 of file CSCCathodeLCTProcessor.h.
anonymous enum |
Pre-defined patterns.
Enumerator | |
---|---|
NUM_PATTERN_STRIPS |
Definition at line 92 of file CSCCathodeLCTProcessor.h.
anonymous enum |
anonymous enum |
Maximum number of cathode front-end boards (move to CSCConstants?).
Enumerator | |
---|---|
MAX_CFEBS |
Definition at line 101 of file CSCCathodeLCTProcessor.h.
Enumerator | |
---|---|
CLCT_PATTERN | |
CLCT_BEND | |
CLCT_STRIP | |
CLCT_BX | |
CLCT_STRIP_TYPE | |
CLCT_QUALITY | |
CLCT_CFEB |
Definition at line 105 of file CSCCathodeLCTProcessor.h.
CSCCathodeLCTProcessor::CSCCathodeLCTProcessor | ( | unsigned | endcap, |
unsigned | station, | ||
unsigned | sector, | ||
unsigned | subsector, | ||
unsigned | chamber, | ||
const edm::ParameterSet & | conf, | ||
const edm::ParameterSet & | comm | ||
) |
Normal constructor.
Definition at line 235 of file CSCCathodeLCTProcessor.cc.
References checkConfigParameters(), drift_delay, dumpConfigParams(), fifo_pretrig, fifo_tbins, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hit_persist, infoV, isMTCC, isTMB07, min_separation, nplanes_hit_pattern, nplanes_hit_pretrig, CSCConstants::NUM_LAYERS, numStrips, pid_thresh_pretrig, and stagger.
CSCCathodeLCTProcessor::CSCCathodeLCTProcessor | ( | ) |
Default constructor. Used for testing.
Definition at line 303 of file CSCCathodeLCTProcessor.cc.
References checkConfigParameters(), dumpConfigParams(), infoV, isMTCC, isTMB07, CSCConstants::MAX_NUM_STRIPS, CSCConstants::NUM_LAYERS, numStrips, setDefaultConfigParameters(), and stagger.
|
private |
Make sure that the parameter values are within the allowed range.
Definition at line 374 of file CSCCathodeLCTProcessor.cc.
References def_drift_delay, def_fifo_pretrig, def_fifo_tbins, def_hit_persist, def_min_separation, def_nplanes_hit_pattern, def_nplanes_hit_pretrig, def_pid_thresh_pretrig, drift_delay, fifo_pretrig, fifo_tbins, hit_persist, infoV, isTMB07, min_separation, nplanes_hit_pattern, nplanes_hit_pretrig, CSCConstants::NUM_HALF_STRIPS, and pid_thresh_pretrig.
Referenced by CSCCathodeLCTProcessor(), and setConfigParameters().
void CSCCathodeLCTProcessor::clear | ( | void | ) |
Clears the LCT containers.
Definition at line 457 of file CSCCathodeLCTProcessor.cc.
References bestCLCT, CSCCLCTDigi::clear(), MAX_CLCT_BINS, secondCLCT, and thePreTriggerBXs.
Referenced by CSCMotherboard::clear().
|
static |
Definition at line 974 of file CSCCathodeLCTProcessor.cc.
References LogDebug.
Referenced by readComparatorDigis(), and testDistripStagger().
|
private |
Dump CLCT configuration parameters.
Definition at line 2339 of file CSCCathodeLCTProcessor.cc.
References drift_delay, fifo_pretrig, fifo_tbins, hit_persist, isTMB07, LogDebug, min_separation, nplanes_hit_pattern, nplanes_hit_pretrig, and pid_thresh_pretrig.
Referenced by CSCCathodeLCTProcessor(), and setConfigParameters().
|
private |
Dump digis on half-strips and di-strips.
Definition at line 2368 of file CSCCathodeLCTProcessor.cc.
References cfeb_strips, CSCTriggerNumbering::chamberFromTriggerLabels(), relativeConstraints::empty, LogDebug, LogTrace, CSCConstants::NUM_LAYERS, CSCTriggerNumbering::ringFromTriggerLabels(), strip(), theEndcap, theSector, theStation, theSubsector, and theTrigChamber.
Referenced by findLCTs().
|
private |
Definition at line 1057 of file CSCCathodeLCTProcessor.cc.
References abs, CLCT_BEND, CLCT_BX, CLCT_CFEB, CLCT_PATTERN, CLCT_QUALITY, CLCT_STRIP, CLCT_STRIP_TYPE, dumpDigis(), getKeyStripData(), infoV, j, LogTrace, nplanes_hit_pattern, CSCConstants::NUM_HALF_STRIPS, numStrips, preTrigger(), and strip().
Referenced by run(), and testPatterns().
|
private |
Definition at line 1352 of file CSCCathodeLCTProcessor.cc.
References CLCT_BEND, CLCT_BX, CLCT_CFEB, CLCT_PATTERN, CLCT_QUALITY, CLCT_STRIP, CLCT_STRIP_TYPE, drift_delay, dumpDigis(), getKeyStripData(), infoV, latchLCTs(), LogTrace, MAX_CFEBS, CSCConstants::NUM_DI_STRIPS, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, numStrips, preTrigger(), and priorityEncode().
|
private |
Definition at line 1961 of file CSCCathodeLCTProcessor.cc.
References best_pid, cfeb_strips, CLCT_BEND, CLCT_BX, CLCT_CFEB, CLCT_PATTERN, CLCT_QUALITY, CLCT_STRIP, CLCT_STRIP_TYPE, drift_delay, dumpDigis(), fifo_tbins, infoV, CSCConstants::KEY_CLCT_LAYER, LogTrace, markBusyKeys(), nhits, nplanes_hit_pattern, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, NUM_PATTERN_HALFSTRIPS, numStrips, pattern2007, preTrigger(), ptnFinding(), pulseExtension(), stagger, and thePreTriggerBXs.
|
private |
Definition at line 2733 of file CSCCathodeLCTProcessor.cc.
References relativeConstraints::empty, and CSCConstants::NUM_LAYERS.
Referenced by testPatterns().
std::vector< CSCCLCTDigi > CSCCathodeLCTProcessor::getCLCTs | ( | ) |
Returns vector of all found CLCTs, if any.
Definition at line 2488 of file CSCCathodeLCTProcessor.cc.
References bestCLCT, MAX_CLCT_BINS, and secondCLCT.
Referenced by readoutCLCTs(), and run().
bool CSCCathodeLCTProcessor::getDigis | ( | const CSCComparatorDigiCollection * | compdc | ) |
Access routines to comparator digis.
Definition at line 674 of file CSCCathodeLCTProcessor.cc.
References CSCTriggerNumbering::chamberFromTriggerLabels(), cond::rpcobgas::detid, digiV, relativeConstraints::empty, infoV, LogTrace, CSCConstants::NUM_LAYERS, CSCTriggerNumbering::ringFromTriggerLabels(), theEndcap, theSector, theStation, theSubsector, and theTrigChamber.
Referenced by run().
void CSCCathodeLCTProcessor::getDigis | ( | const CSCComparatorDigiCollection * | compdc, |
const CSCDetId & | id | ||
) |
Definition at line 710 of file CSCCathodeLCTProcessor.cc.
References digiV, and relativeConstraints::ring.
|
private |
Definition at line 1219 of file CSCCathodeLCTProcessor.cc.
References CLCT_BEND, CLCT_BX, CLCT_PATTERN, CLCT_QUALITY, CLCT_STRIP, drift_delay, getPattern(), i, infoV, LogTrace, CSCConstants::NUM_CLCT_PATTERNS_PRE_TMB07, NUM_PATTERN_STRIPS, pre_hit_pattern, and strip().
Referenced by findLCTs().
|
private |
Definition at line 1807 of file CSCCathodeLCTProcessor.cc.
References CLCT_BEND, CLCT_BX, CLCT_PATTERN, CLCT_QUALITY, CLCT_STRIP, CLCT_STRIP_TYPE, drift_delay, getPattern(), infoV, LogTrace, nplanes_hit_pattern, CSCConstants::NUM_CLCT_PATTERNS_PRE_TMB07, CSCConstants::NUM_DI_STRIPS, NUM_PATTERN_STRIPS, pre_hit_pattern, and TrackValidation_HighPurity_cff::valid.
|
private |
Definition at line 1296 of file CSCCathodeLCTProcessor.cc.
References hitIsGood(), CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, and pattern.
Referenced by getKeyStripData(), and testPatterns().
|
private |
Definition at line 1915 of file CSCCathodeLCTProcessor.cc.
References CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, and pattern.
|
private |
Definition at line 1332 of file CSCCathodeLCTProcessor.cc.
References dt, and hit_persist.
Referenced by getPattern().
|
private |
Definition at line 1571 of file CSCCathodeLCTProcessor.cc.
References cfeb_strips, infoV, LogTrace, MAX_CFEBS, CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, and pre_hit_pattern.
Referenced by findLCTs().
|
private |
Definition at line 2322 of file CSCCathodeLCTProcessor.cc.
References min_separation.
Referenced by findLCTs().
|
private |
Definition at line 1157 of file CSCCathodeLCTProcessor.cc.
References fifo_tbins, nplanes_hit_pretrig, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, pre_hit_pattern, pulseExtension(), and strip().
Referenced by findLCTs().
|
private |
Definition at line 1476 of file CSCCathodeLCTProcessor.cc.
References fifo_tbins, infoV, LogTrace, preTrigLookUp(), pulseExtension(), and strip().
|
private |
Definition at line 2199 of file CSCCathodeLCTProcessor.cc.
References best_pid, fifo_tbins, infoV, CSCConstants::KEY_CLCT_LAYER, LogTrace, nhits, nplanes_hit_pretrig, numStrips, pid_thresh_pretrig, ptnFinding(), and stagger.
|
inline |
Definition at line 84 of file CSCCathodeLCTProcessor.h.
References thePreTriggerBXs.
Referenced by CSCTriggerPrimitivesBuilder::build().
|
private |
Definition at line 1512 of file CSCCathodeLCTProcessor.cc.
References cfeb_strips, infoV, LogTrace, MAX_CFEBS, nplanes_hit_pretrig, CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, and pre_hit_pattern.
Referenced by preTrigger().
|
private |
Definition at line 2595 of file CSCCathodeLCTProcessor.cc.
References gather_cfg::cout, isTMB07, CSCConstants::KEY_CLCT_LAYER, CSCConstants::KEY_CLCT_LAYER_PRE_TMB07, CSCConstants::NUM_CLCT_PATTERNS_PRE_TMB07, CSCConstants::NUM_LAYERS, NUM_PATTERN_STRIPS, pattern, and strip().
|
private |
Definition at line 1636 of file CSCCathodeLCTProcessor.cc.
References cfeb_strips, CLCT_CFEB, CLCT_STRIP, CLCT_STRIP_TYPE, infoV, j, combine::key, LogTrace, MAX_CFEBS, and nplanes_hit_pretrig.
Referenced by findLCTs().
|
private |
Definition at line 2250 of file CSCCathodeLCTProcessor.cc.
References best_pid, fifo_tbins, infoV, CSCConstants::KEY_CLCT_LAYER, LogTrace, nhits, nplanes_hit_pretrig, CSCConstants::NUM_CLCT_PATTERNS, CSCConstants::NUM_LAYERS, NUM_PATTERN_HALFSTRIPS, pattern2007, pattern2007_offset, evf::utils::pid, pid_thresh_pretrig, and stagger.
Referenced by findLCTs(), and preTrigger().
|
private |
Definition at line 2152 of file CSCCathodeLCTProcessor.cc.
References hit_persist, i, infoV, CSCConstants::NUM_LAYERS, findQualityFiles::size, and cond::rpcobgas::time.
Referenced by findLCTs(), and preTrigger().
|
private |
Definition at line 828 of file CSCCathodeLCTProcessor.cc.
References digiV, distripStagger(), fifo_tbins, CSCComparatorDigi::getComparator(), CSCComparatorDigi::getStrip(), CSCComparatorDigi::getTimeBin(), i, infoV, isTMB07, j, LogTrace, CSCConstants::MAX_NUM_STRIPS, CSCConstants::NUM_LAYERS, numStrips, stagger, testDistripStagger(), and cond::rpcobgas::time.
Referenced by run().
|
private |
Definition at line 730 of file CSCCathodeLCTProcessor.cc.
References begin, digiV, fifo_tbins, hit_persist, i, infoV, LogTrace, CSCConstants::NUM_LAYERS, numStrips, and stagger.
std::vector< CSCCLCTDigi > CSCCathodeLCTProcessor::readoutCLCTs | ( | ) |
Returns vector of CLCTs in the read-out time window, if any.
Definition at line 2410 of file CSCCathodeLCTProcessor.cc.
References getCLCTs(), infoV, LogDebug, and MAX_CLCT_BINS.
Referenced by CSCTriggerPrimitivesBuilder::build().
std::vector< CSCCLCTDigi > CSCCathodeLCTProcessor::run | ( | const CSCComparatorDigiCollection * | compdc | ) |
Runs the LCT processor code. Called in normal running – gets info from a collection of comparator digis.
Definition at line 466 of file CSCCathodeLCTProcessor.cc.
References CSCTriggerGeomManager::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), relativeConstraints::empty, CSCLayer::geometry(), CSCTriggerGeometry::get(), getCLCTs(), getDigis(), infoV, isTMB07, CSCChamber::layer(), CSCConstants::MAX_NUM_STRIPS, nplanes_hit_pattern, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, CSCLayerGeometry::numberOfStrips(), numStrips, readComparatorDigis(), CSCTriggerNumbering::ringFromTriggerLabels(), stagger, CSCLayerGeometry::stagger(), theEndcap, theSector, theStation, theSubsector, and theTrigChamber.
Referenced by CSCMotherboard::run().
void CSCCathodeLCTProcessor::run | ( | const std::vector< int > | halfstrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS], |
const std::vector< int > | distrip[CSCConstants::NUM_LAYERS][CSCConstants::NUM_HALF_STRIPS] | ||
) |
Called in test mode and by the run(compdc) function; does the actual LCT finding.
Definition at line 592 of file CSCCathodeLCTProcessor.cc.
References bestCLCT, CSCTriggerNumbering::chamberFromTriggerLabels(), findLCTs(), i, infoV, isMTCC, isTMB07, LogDebug, MAX_CLCT_BINS, CSCTriggerNumbering::ringFromTriggerLabels(), secondCLCT, CSCCLCTDigi::setTrknmb(), python.multivaluedict::sort(), theEndcap, theSector, theStation, theSubsector, and theTrigChamber.
void CSCCathodeLCTProcessor::setConfigParameters | ( | const CSCDBL1TPParameters * | conf | ) |
Sets configuration parameters obtained via EventSetup mechanism.
Definition at line 350 of file CSCCathodeLCTProcessor.cc.
References checkConfigParameters(), CSCDBL1TPParameters::clctDriftDelay(), CSCDBL1TPParameters::clctFifoPretrig(), CSCDBL1TPParameters::clctFifoTbins(), CSCDBL1TPParameters::clctHitPersist(), CSCDBL1TPParameters::clctMinSeparation(), CSCDBL1TPParameters::clctNplanesHitPattern(), CSCDBL1TPParameters::clctNplanesHitPretrig(), CSCDBL1TPParameters::clctPidThreshPretrig(), drift_delay, dumpConfigParams(), fifo_pretrig, fifo_tbins, hit_persist, isTMB07, min_separation, nplanes_hit_pattern, nplanes_hit_pretrig, and pid_thresh_pretrig.
Referenced by CSCMotherboard::setConfigParameters().
|
private |
Set default values for configuration parameters.
Definition at line 330 of file CSCCathodeLCTProcessor.cc.
References def_drift_delay, def_fifo_pretrig, def_fifo_tbins, def_hit_persist, def_min_separation, def_nplanes_hit_pattern, def_nplanes_hit_pretrig, def_pid_thresh_pretrig, drift_delay, fifo_pretrig, fifo_tbins, hit_persist, isMTCC, isTMB07, min_separation, nplanes_hit_pattern, nplanes_hit_pretrig, and pid_thresh_pretrig.
Referenced by CSCCathodeLCTProcessor().
|
private |
Definition at line 2501 of file CSCCathodeLCTProcessor.cc.
References gather_cfg::cout, debug, distripStagger(), i, and CSCConstants::NUM_DI_STRIPS.
Referenced by readComparatorDigis().
|
private |
Definition at line 2550 of file CSCCathodeLCTProcessor.cc.
References CSCCLCTDigi::getBend(), CSCCLCTDigi::getBX(), CSCCLCTDigi::getCFEB(), CSCCLCTDigi::getKeyStrip(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCCLCTDigi::getStripType(), LogTrace, and MAX_CFEBS.
|
private |
Definition at line 2636 of file CSCCathodeLCTProcessor.cc.
References gather_cfg::cout, relativeConstraints::empty, findLCTs(), findNumLayersHit(), getPattern(), isTMB07, CSCConstants::KEY_CLCT_LAYER, CSCConstants::KEY_CLCT_LAYER_PRE_TMB07, CSCConstants::NUM_HALF_STRIPS, CSCConstants::NUM_LAYERS, convertSQLitetoXML_cfg::output, pattern, python.entryComment::results, and strip().
|
private |
Definition at line 219 of file CSCCathodeLCTProcessor.h.
Referenced by findLCTs(), preTrigger(), and ptnFinding().
CSCCLCTDigi CSCCathodeLCTProcessor::bestCLCT[MAX_CLCT_BINS] |
Best LCT in this chamber, as found by the processor.
Definition at line 73 of file CSCCathodeLCTProcessor.h.
Referenced by clear(), getCLCTs(), CSCMotherboard::run(), and run().
|
staticprivate |
Number of di-strips/half-strips per CFEB.
Definition at line 154 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), findLCTs(), latchLCTs(), preTrigLookUp(), and priorityEncode().
|
staticprivate |
Definition at line 142 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 141 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Default values of configuration parameters.
Definition at line 141 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 142 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 145 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 144 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 143 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
staticprivate |
Definition at line 145 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 125 of file CSCCathodeLCTProcessor.h.
Referenced by getDigis(), and readComparatorDigis().
|
private |
Definition at line 136 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), findLCTs(), getKeyStripData(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 135 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Configuration parameters.
Definition at line 135 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), findLCTs(), preTrigger(), ptnFinding(), readComparatorDigis(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 136 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), hitIsGood(), pulseExtension(), readComparatorDigis(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Verbosity level: 0: no print (default). 1: print only CLCTs found. 2: info at every step of the algorithm. 3: add special-purpose prints.
Definition at line 113 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), findLCTs(), getDigis(), getKeyStripData(), latchLCTs(), preTrigger(), preTrigLookUp(), priorityEncode(), ptnFinding(), pulseExtension(), readComparatorDigis(), readoutCLCTs(), and run().
|
private |
Flag for "real" - not idealized - version of the algorithm.
Definition at line 129 of file CSCCathodeLCTProcessor.h.
Referenced by CSCCathodeLCTProcessor(), run(), and setDefaultConfigParameters().
|
private |
Flag for 2007 firmware version.
Definition at line 132 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), printPatterns(), readComparatorDigis(), run(), setConfigParameters(), setDefaultConfigParameters(), and testPatterns().
|
private |
Definition at line 138 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), markBusyKeys(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 220 of file CSCCathodeLCTProcessor.h.
Referenced by findLCTs(), preTrigger(), and ptnFinding().
|
private |
Definition at line 137 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), findLCTs(), getKeyStripData(), run(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 137 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), preTrigger(), preTrigLookUp(), priorityEncode(), ptnFinding(), setConfigParameters(), and setDefaultConfigParameters().
|
private |
Definition at line 122 of file CSCCathodeLCTProcessor.h.
Referenced by CSCCathodeLCTProcessor(), findLCTs(), preTrigger(), readComparatorDigis(), and run().
|
static |
Definition at line 94 of file CSCCathodeLCTProcessor.h.
Referenced by getPattern(), printPatterns(), and testPatterns().
|
static |
Definition at line 98 of file CSCCathodeLCTProcessor.h.
Referenced by findLCTs(), and ptnFinding().
|
static |
Definition at line 97 of file CSCCathodeLCTProcessor.h.
Referenced by ptnFinding().
|
private |
Definition at line 138 of file CSCCathodeLCTProcessor.h.
Referenced by checkConfigParameters(), CSCCathodeLCTProcessor(), dumpConfigParams(), preTrigger(), ptnFinding(), setConfigParameters(), and setDefaultConfigParameters().
|
static |
Definition at line 93 of file CSCCathodeLCTProcessor.h.
Referenced by getKeyStripData(), latchLCTs(), preTrigger(), and preTrigLookUp().
CSCCLCTDigi CSCCathodeLCTProcessor::secondCLCT[MAX_CLCT_BINS] |
Second best LCT in this chamber, as found by the processor.
Definition at line 76 of file CSCCathodeLCTProcessor.h.
Referenced by clear(), getCLCTs(), CSCMotherboard::run(), and run().
|
private |
Definition at line 123 of file CSCCathodeLCTProcessor.h.
Referenced by CSCCathodeLCTProcessor(), findLCTs(), preTrigger(), ptnFinding(), readComparatorDigis(), and run().
|
private |
Chamber id (trigger-type labels).
Definition at line 116 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), getDigis(), and run().
|
private |
Definition at line 126 of file CSCCathodeLCTProcessor.h.
Referenced by clear(), findLCTs(), and preTriggerBXs().
|
private |
Definition at line 118 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), getDigis(), and run().
|
private |
Definition at line 117 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), getDigis(), and run().
|
private |
Definition at line 119 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), getDigis(), and run().
|
private |
Definition at line 120 of file CSCCathodeLCTProcessor.h.
Referenced by dumpDigis(), getDigis(), and run().