#include <CSCMotherboard.h>
Public Member Functions | |
void | clear () |
CSCMotherboard (unsigned endcap, unsigned station, unsigned sector, unsigned subsector, unsigned chamber, const edm::ParameterSet &conf) | |
CSCMotherboard () | |
std::vector< CSCCorrelatedLCTDigi > | getLCTs () const |
std::vector< CSCCorrelatedLCTDigi > | readoutLCTs () const |
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]) |
void | run (const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc) |
void | setConfigParameters (const CSCDBL1TPParameters *conf) |
void | setCSCGeometry (const CSCGeometry *g) |
virtual | ~CSCMotherboard ()=default |
Public Attributes | |
std::unique_ptr< CSCAnodeLCTProcessor > | alct |
std::unique_ptr< CSCCathodeLCTProcessor > | clct |
Protected Types | |
enum | LCT_Quality { INVALID = 0, NO_CLCT = 1, NO_ALCT = 2, CLCT_LAYER_TRIGGER = 3, LOW_QUALITY = 4, MARGINAL_ANODE_CATHODE = 5, HQ_ANODE_MARGINAL_CATHODE = 6, HQ_CATHODE_MARGINAL_ANODE = 7, HQ_ACCEL_ALCT = 8, HQ_RESERVED_1 = 9, HQ_RESERVED_2 = 10, HQ_PATTERN_2_3 = 11, HQ_PATTERN_4_5 = 12, HQ_PATTERN_6_7 = 13, HQ_PATTERN_8_9 = 14, HQ_PATTERN_10 = 15 } |
Protected Member Functions | |
void | checkConfigParameters () |
CSCCorrelatedLCTDigi | constructLCTs (const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT, int type, int trknmb) const |
void | correlateLCTs (const CSCALCTDigi &bestALCT, const CSCALCTDigi &secondALCT, const CSCCLCTDigi &bestCLCT, const CSCCLCTDigi &secondCLCT, int type) |
void | dumpConfigParams () const |
unsigned int | encodePattern (const int ptn, const int highPt) const |
unsigned int | findQuality (const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT) const |
CSCALCTDigi | getBXShiftedALCT (const CSCALCTDigi &) const |
void | testLCT () |
Protected Attributes | |
unsigned int | alct_trig_enable |
bool | clct_to_alct |
unsigned int | clct_trig_enable |
const CSCGeometry * | csc_g |
bool | drop_used_alcts |
bool | drop_used_clcts |
int | early_tbins |
CSCCorrelatedLCTDigi | firstLCT [CSCConstants::MAX_LCT_TBINS] |
int | infoV |
bool | isMTCC |
bool | isSLHC |
bool | isTMB07 |
unsigned int | match_trig_enable |
unsigned int | match_trig_window_size |
unsigned int | mpc_block_me1a |
bool | readout_earliest_2 |
CSCCorrelatedLCTDigi | secondLCT [CSCConstants::MAX_LCT_TBINS] |
const unsigned | theEndcap |
unsigned | theRing |
const unsigned | theSector |
const unsigned | theStation |
const unsigned | theSubsector |
const unsigned | theTrigChamber |
unsigned int | tmb_l1a_window_size |
Static Protected Attributes | |
static const unsigned int | def_alct_trig_enable = 0 |
static const unsigned int | def_clct_trig_enable = 0 |
static const unsigned int | def_match_trig_enable = 1 |
static const unsigned int | def_match_trig_window_size = 7 |
static const unsigned int | def_mpc_block_me1a = 1 |
static const unsigned int | def_tmb_l1a_window_size = 7 |
Correlates anode and cathode LCTs from the same chamber.
When the Trigger MotherBoard (TMB) is instantiated it instantiates an ALCT and CLCT board. The MotherBoard takes up to two LCTs from each anode and cathode LCT card and combines them into a single Correlated LCT. The output is up to two Correlated LCTs.
It can be run in either a test mode, where the arguments are a collection of wire times and arrays of halfstrip and distrip times, or for general use, with wire digi and comparator digi collections as arguments. In the latter mode, the wire & strip info is passed on the LCTProcessors, where it is decoded and converted into a convenient form. After running the anode and cathode LCTProcessors, TMB correlates the anode and cathode LCTs. At present, it simply matches the best CLCT with the best ALCT; perhaps a better algorithm will be determined in the future. The MotherBoard then determines a few more numbers (such as quality and pattern) from the ALCT and CLCT information, and constructs two correlated LCT "digis".
Based on code by Nick Wisniewski (nw@it) and a framework by Darin Acosta ( s.ca ltech .eduacost). a@ph ys.uf l.ed u
Numerous later improvements by Jason Mumford and Slava Valuev (see cvs in ORCA). Porting from ORCA by S. Valuev (Slava), May 2006. .Val uev@c ern. ch
Definition at line 43 of file CSCMotherboard.h.
|
protected |
Definition at line 169 of file CSCMotherboard.h.
CSCMotherboard::CSCMotherboard | ( | unsigned | endcap, |
unsigned | station, | ||
unsigned | sector, | ||
unsigned | subsector, | ||
unsigned | chamber, | ||
const edm::ParameterSet & | conf | ||
) |
Normal constructor.
Definition at line 50 of file CSCMotherboard.cc.
References alct, alct_trig_enable, checkConfigParameters(), clct, clct_to_alct, clct_trig_enable, drop_used_alcts, drop_used_clcts, dumpConfigParams(), early_tbins, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), infoV, isMTCC, isSLHC, isTMB07, match_trig_enable, match_trig_window_size, mpc_block_me1a, or, readout_earliest_2, CSCTriggerNumbering::ringFromTriggerLabels(), theRing, theStation, theTrigChamber, and tmb_l1a_window_size.
CSCMotherboard::CSCMotherboard | ( | ) |
Constructor for use during testing.
Definition at line 168 of file CSCMotherboard.cc.
References alct, alct_trig_enable, checkConfigParameters(), clct, clct_trig_enable, def_alct_trig_enable, def_clct_trig_enable, def_match_trig_enable, def_match_trig_window_size, def_mpc_block_me1a, def_tmb_l1a_window_size, dumpConfigParams(), early_tbins, infoV, isMTCC, isTMB07, match_trig_enable, match_trig_window_size, mpc_block_me1a, and tmb_l1a_window_size.
|
virtualdefault |
Default destructor.
|
protected |
Make sure that the parameter values are within the allowed range.
Definition at line 231 of file CSCMotherboard.cc.
References alct_trig_enable, clct_trig_enable, def_alct_trig_enable, def_clct_trig_enable, def_match_trig_enable, def_match_trig_window_size, def_mpc_block_me1a, def_tmb_l1a_window_size, infoV, match_trig_enable, match_trig_window_size, mpc_block_me1a, and tmb_l1a_window_size.
Referenced by CSCMotherboard(), and setConfigParameters().
void CSCMotherboard::clear | ( | void | ) |
Clears correlated LCT and passes clear signal on to cathode and anode LCT processors.
Definition at line 198 of file CSCMotherboard.cc.
References alct, clct, CSCCorrelatedLCTDigi::clear(), firstLCT, CSCConstants::MAX_LCT_TBINS, and secondLCT.
Referenced by CSCMotherboardME3141::clear(), CSCGEMMotherboardME21::clear(), CSCGEMMotherboardME11::clear(), CSCMotherboardME11::clear(), and run().
|
protected |
Definition at line 698 of file CSCMotherboard.cc.
References encodePattern(), findQuality(), CSCCLCTDigi::getBend(), CSCALCTDigi::getBX(), CSCCLCTDigi::getBX(), getBXShiftedALCT(), CSCCLCTDigi::getKeyStrip(), CSCALCTDigi::getKeyWG(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getStripType(), CSCALCTDigi::isValid(), listBenchmarks::pattern, jets_cff::quality, CSCCorrelatedLCTDigi::setType(), and theTrigChamber.
Referenced by CSCMotherboardME3141::correlateLCTs(), CSCMotherboardME11::correlateLCTs(), correlateLCTs(), and CSCGEMMotherboardME21::correlateLCTsGEM().
|
protected |
Definition at line 639 of file CSCMotherboard.cc.
References alct_trig_enable, clct_trig_enable, constructLCTs(), firstLCT, CSCCorrelatedLCTDigi::getBX(), infoV, CSCCLCTDigi::isValid(), CSCALCTDigi::isValid(), match_trig_enable, CSCConstants::MAX_LCT_TBINS, and secondLCT.
Referenced by run().
|
protected |
Dump TMB/MPC configuration parameters.
Definition at line 923 of file CSCMotherboard.cc.
References alct_trig_enable, clct_trig_enable, LogDebug, match_trig_enable, match_trig_window_size, mpc_block_me1a, and tmb_l1a_window_size.
Referenced by CSCMotherboard(), and setConfigParameters().
|
protected |
Definition at line 724 of file CSCMotherboard.cc.
References funct::abs(), isTMB07, and listBenchmarks::pattern.
Referenced by constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), and testLCT().
|
protected |
Definition at line 750 of file CSCMotherboard.cc.
References CSCALCTDigi::getAccelerator(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCALCTDigi::getQuality(), CSCCLCTDigi::getStripType(), infoV, isTMB07, CSCALCTDigi::isValid(), CSCCLCTDigi::isValid(), PFRecoTauDiscriminationByIsolation_cfi::offset, listBenchmarks::pattern, and jets_cff::quality.
Referenced by constructLCTs(), and testLCT().
|
protected |
Definition at line 946 of file CSCMotherboard.cc.
References CSCALCTDigi::getBX(), CSCConstants::LCT_CENTRAL_BX, CSCALCTDigi::setBX(), and tmb_l1a_window_size.
Referenced by constructLCTs(), and CSCGEMMotherboard::constructLCTsGEM().
std::vector< CSCCorrelatedLCTDigi > CSCMotherboard::getLCTs | ( | ) | const |
Returns vector of all found correlated LCTs, if any.
Definition at line 620 of file CSCMotherboard.cc.
References firstLCT, CSCConstants::MAX_LCT_TBINS, mpc_block_me1a, CSCTriggerNumbering::ringFromTriggerLabels(), secondLCT, theStation, and theTrigChamber.
Referenced by readoutLCTs().
std::vector< CSCCorrelatedLCTDigi > CSCMotherboard::readoutLCTs | ( | ) | const |
Returns vector of correlated LCTs in the read-out time window, if any.
Definition at line 545 of file CSCMotherboard.cc.
References early_tbins, getLCTs(), infoV, LogDebug, CSCConstants::MAX_LCT_TBINS, readout_earliest_2, and tmb_l1a_window_size.
Referenced by CSCTriggerPrimitivesBuilder::build(), CSCGEMMotherboardME11::getCLCTs1b(), CSCGEMMotherboardME11::readoutLCTs1a(), CSCMotherboardME11::readoutLCTs1a(), CSCGEMMotherboardME11::readoutLCTs1b(), and CSCMotherboardME11::readoutLCTs1b().
void CSCMotherboard::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] | ||
) |
Test version of run function.
Definition at line 293 of file CSCMotherboard.cc.
References alct, CSCCorrelatedLCTDigi::ALCTONLY, clct, CSCCorrelatedLCTDigi::CLCTALCT, CSCCorrelatedLCTDigi::CLCTONLY, clear(), correlateLCTs(), csc_g, isSLHC, match_trig_window_size, CSCConstants::MAX_ALCT_TBINS, and CSCConstants::MAX_CLCT_TBINS.
Referenced by CSCTriggerPrimitivesBuilder::build().
void CSCMotherboard::run | ( | const CSCWireDigiCollection * | wiredc, |
const CSCComparatorDigiCollection * | compdc | ||
) |
Run function for normal usage. Runs cathode and anode LCT processors, takes results and correlates into CorrelatedLCT.
Definition at line 352 of file CSCMotherboard.cc.
References a, alct, CSCCorrelatedLCTDigi::ALCTCLCT, CSCCorrelatedLCTDigi::ALCTONLY, clct, clct_to_alct, CSCCorrelatedLCTDigi::CLCTALCT, CSCCorrelatedLCTDigi::CLCTONLY, clear(), correlateLCTs(), csc_g, drop_used_alcts, drop_used_clcts, firstLCT, infoV, isSLHC, LogDebug, LogTrace, match_trig_window_size, CSCConstants::MAX_ALCT_TBINS, CSCConstants::MAX_CLCT_TBINS, CSCConstants::MAX_LCT_TBINS, and secondLCT.
void CSCMotherboard::setConfigParameters | ( | const CSCDBL1TPParameters * | conf | ) |
Set configuration parameters obtained via EventSetup mechanism.
Definition at line 208 of file CSCMotherboard.cc.
References alct, alct_trig_enable, checkConfigParameters(), clct, clct_trig_enable, dumpConfigParams(), match_trig_enable, match_trig_window_size, mpc_block_me1a, tmb_l1a_window_size, CSCDBL1TPParameters::tmbAlctTrigEnable(), CSCDBL1TPParameters::tmbClctTrigEnable(), CSCDBL1TPParameters::tmbMatchTrigEnable(), CSCDBL1TPParameters::tmbMatchTrigWindowSize(), CSCDBL1TPParameters::tmbMpcBlockMe1a(), and CSCDBL1TPParameters::tmbTmbL1aWindowSize().
|
inline |
Definition at line 79 of file CSCMotherboard.h.
Referenced by CSCTriggerPrimitivesBuilder::build().
|
protected |
Definition at line 865 of file CSCMotherboard.cc.
References encodePattern(), findQuality(), CSCCLCTDigi::getBend(), CSCALCTDigi::getBX(), CSCCLCTDigi::getKeyStrip(), CSCALCTDigi::getKeyWG(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getStripType(), LogTrace, listBenchmarks::pattern, jets_cff::quality, and digitizers_cfi::strip.
std::unique_ptr<CSCAnodeLCTProcessor> CSCMotherboard::alct |
Anode LCT processor.
Definition at line 82 of file CSCMotherboard.h.
Referenced by CSCTriggerPrimitivesBuilder::build(), clear(), CSCMotherboard(), CSCMotherboardME3141::run(), CSCMotherboardME11::run(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), run(), CSCMotherboardME11::setConfigParameters(), setConfigParameters(), and CSCGEMMotherboard::setGEMGeometry().
|
protected |
Definition at line 118 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCMotherboard(), dumpConfigParams(), CSCGEMMotherboard::getLctTrigEnable(), and setConfigParameters().
std::unique_ptr<CSCCathodeLCTProcessor> CSCMotherboard::clct |
Cathode LCT processor.
Definition at line 85 of file CSCMotherboard.h.
Referenced by CSCTriggerPrimitivesBuilder::build(), clear(), CSCMotherboard(), CSCMotherboardME3141::run(), CSCMotherboardME11::run(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), run(), CSCMotherboardME11::setConfigParameters(), setConfigParameters(), and CSCGEMMotherboard::setGEMGeometry().
|
protected |
if true: use regular CLCT-to-ALCT matching in TMB if false: do ALCT-to-CLCT matching
Definition at line 135 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), and run().
|
protected |
Definition at line 118 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCMotherboard(), dumpConfigParams(), CSCGEMMotherboard::getLctTrigEnable(), and setConfigParameters().
|
protected |
Definition at line 105 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::run(), run(), and setCSCGeometry().
|
staticprotected |
Definition at line 139 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 139 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 140 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 140 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Default values of configuration parameters.
Definition at line 138 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 141 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
protected |
SLHC: whether to not reuse ALCTs that were used by previous matching CLCTs
Definition at line 122 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::run(), and run().
|
protected |
SLHC: whether to not reuse CLCTs that were used by previous matching ALCTs
Definition at line 125 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), and run().
|
protected |
SLHC: separate handle for early time bins
Definition at line 128 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::readoutLCTs(), CSCGEMMotherboardME11::readoutLCTs(), and readoutLCTs().
|
protected |
Container for first correlated LCT.
Definition at line 144 of file CSCMotherboard.h.
Referenced by clear(), correlateLCTs(), getLCTs(), and run().
|
protected |
Verbosity level: 0: no print (default). 1: print LCTs found.
Definition at line 95 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), correlateLCTs(), CSCMotherboard(), findQuality(), CSCGEMMotherboard::findQualityGEM(), readoutLCTs(), CSCMotherboardME3141::run(), CSCMotherboardME11::run(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), and run().
|
protected |
Flag for MTCC data.
Definition at line 108 of file CSCMotherboard.h.
Referenced by CSCMotherboard().
|
protected |
Flag for SLHC studies.
Definition at line 114 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::CSCMotherboardME11(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), and run().
|
protected |
Flag for new (2007) version of TMB firmware.
Definition at line 111 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), encodePattern(), and findQuality().
|
protected |
Definition at line 118 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCGEMMotherboard::correlateLCTsGEM(), CSCMotherboard(), dumpConfigParams(), and setConfigParameters().
|
protected |
Definition at line 119 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::clear(), CSCGEMMotherboardME11::clear(), CSCGEMMotherboardME21::clear(), CSCMotherboardME11::clear(), CSCMotherboard(), CSCMotherboardME11::CSCMotherboardME11(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), dumpConfigParams(), CSCMotherboardME11::getLCTs1a(), CSCMotherboardME11::getLCTs1b(), CSCMotherboardME3141::run(), CSCMotherboardME11::run(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), run(), and setConfigParameters().
|
protected |
Configuration parameters.
Definition at line 117 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboard(), dumpConfigParams(), getLCTs(), CSCMotherboardME11::getLCTs1a(), CSCGEMMotherboardME11::readoutLCTs(), and setConfigParameters().
|
protected |
SLHC: whether to readout only the earliest two LCTs in readout window
Definition at line 131 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::readoutLCTs(), CSCGEMMotherboardME11::readoutLCTs(), and readoutLCTs().
|
protected |
Container for second correlated LCT.
Definition at line 147 of file CSCMotherboard.h.
Referenced by clear(), correlateLCTs(), CSCGEMMotherboard::correlateLCTsGEM(), getLCTs(), and run().
|
protected |
Chamber id (trigger-type labels).
Definition at line 98 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), CSCGEMMotherboardME11::doesALCTCrossCLCT(), CSCMotherboardME11::doesALCTCrossCLCT(), CSCGEMMotherboardME11::run(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 103 of file CSCMotherboard.h.
Referenced by CSCMotherboard().
|
protected |
Definition at line 100 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 99 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCGEMMotherboard::CSCGEMMotherboard(), CSCMotherboard(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), CSCGEMMotherboard::findQualityGEM(), getLCTs(), CSCGEMMotherboard::retrieveGEMCoPads(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 101 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 102 of file CSCMotherboard.h.
Referenced by constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCMotherboard(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), getLCTs(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 119 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboard(), dumpConfigParams(), getBXShiftedALCT(), CSCMotherboardME11::readoutLCTs(), CSCGEMMotherboardME11::readoutLCTs(), readoutLCTs(), and setConfigParameters().