#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 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 |
unsigned int | alctClctOffset |
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 | isSLHC |
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 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 160 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, alctClctOffset, checkConfigParameters(), clct, clct_to_alct, clct_trig_enable, drop_used_alcts, drop_used_clcts, dumpConfigParams(), early_tbins, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), infoV, isSLHC, 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 149 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, 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 209 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 176 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 612 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 553 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 752 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 638 of file CSCMotherboard.cc.
References funct::abs(), and listBenchmarks::pattern.
Referenced by constructLCTs(), CSCGEMMotherboard::constructLCTsGEM(), and testLCT().
|
protected |
Definition at line 649 of file CSCMotherboard.cc.
References CSCALCTDigi::getAccelerator(), CSCCLCTDigi::getPattern(), CSCALCTDigi::getQuality(), CSCCLCTDigi::getQuality(), infoV, CSCALCTDigi::isValid(), CSCCLCTDigi::isValid(), listBenchmarks::pattern, and jets_cff::quality.
Referenced by constructLCTs(), and testLCT().
|
protected |
Definition at line 775 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 534 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 459 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 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 272 of file CSCMotherboard.cc.
References a, alct, alct_trig_enable, CSCCorrelatedLCTDigi::ALCTCLCT, alctClctOffset, CSCCorrelatedLCTDigi::ALCTONLY, clct, clct_to_alct, clct_trig_enable, CSCCorrelatedLCTDigi::CLCTALCT, CSCCorrelatedLCTDigi::CLCTONLY, clear(), correlateLCTs(), csc_g, drop_used_alcts, drop_used_clcts, firstLCT, infoV, LogDebug, LogTrace, match_trig_window_size, CSCConstants::MAX_ALCT_TBINS, CSCConstants::MAX_CLCT_TBINS, CSCConstants::MAX_LCT_TBINS, and secondLCT.
Referenced by CSCTriggerPrimitivesBuilder::build().
void CSCMotherboard::setConfigParameters | ( | const CSCDBL1TPParameters * | conf | ) |
Set configuration parameters obtained via EventSetup mechanism.
Definition at line 186 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 74 of file CSCMotherboard.h.
Referenced by CSCTriggerPrimitivesBuilder::build().
|
protected |
Definition at line 694 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 77 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 107 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCMotherboard(), dumpConfigParams(), CSCGEMMotherboard::getLctTrigEnable(), run(), and setConfigParameters().
|
protected |
Definition at line 126 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME3141::run(), CSCMotherboardME11::run(), CSCGEMMotherboardME21::run(), CSCGEMMotherboardME11::run(), and run().
std::unique_ptr<CSCCathodeLCTProcessor> CSCMotherboard::clct |
Cathode LCT processor.
Definition at line 80 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 124 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), and run().
|
protected |
Definition at line 107 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCMotherboard(), dumpConfigParams(), CSCGEMMotherboard::getLctTrigEnable(), run(), and setConfigParameters().
|
protected |
Definition at line 100 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::run(), run(), and setCSCGeometry().
|
staticprotected |
Definition at line 130 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 130 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 131 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 131 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Default values of configuration parameters.
Definition at line 129 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), and CSCMotherboard().
|
staticprotected |
Definition at line 132 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 111 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 114 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), and run().
|
protected |
SLHC: separate handle for early time bins
Definition at line 117 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::readoutLCTs(), readoutLCTs(), and CSCGEMMotherboardME11::readoutLCTs().
|
protected |
Container for first correlated LCT.
Definition at line 135 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 90 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 SLHC studies.
Definition at line 103 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::CSCMotherboardME11(), and CSCUpgradeMotherboard::CSCUpgradeMotherboard().
|
protected |
Definition at line 107 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboardME3141::correlateLCTs(), correlateLCTs(), CSCGEMMotherboard::correlateLCTsGEM(), CSCMotherboard(), dumpConfigParams(), and setConfigParameters().
|
protected |
Definition at line 108 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 106 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 120 of file CSCMotherboard.h.
Referenced by CSCMotherboard(), CSCMotherboardME11::readoutLCTs(), readoutLCTs(), and CSCGEMMotherboardME11::readoutLCTs().
|
protected |
Container for second correlated LCT.
Definition at line 138 of file CSCMotherboard.h.
Referenced by clear(), correlateLCTs(), CSCGEMMotherboard::correlateLCTsGEM(), getLCTs(), and run().
|
protected |
Chamber id (trigger-type labels).
Definition at line 93 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 98 of file CSCMotherboard.h.
Referenced by CSCMotherboard().
|
protected |
Definition at line 95 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 94 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 96 of file CSCMotherboard.h.
Referenced by CSCMotherboardME11::correlateLCTs(), CSCGEMMotherboardME11::correlateLCTsGEM(), CSCUpgradeMotherboard::CSCUpgradeMotherboard(), CSCUpgradeMotherboard::debugLUTs(), and CSCUpgradeMotherboard::setupGeometry().
|
protected |
Definition at line 97 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 108 of file CSCMotherboard.h.
Referenced by checkConfigParameters(), CSCMotherboard(), dumpConfigParams(), getBXShiftedALCT(), CSCMotherboardME11::readoutLCTs(), CSCGEMMotherboardME11::readoutLCTs(), readoutLCTs(), and setConfigParameters().