#include <CSCTriggerPrimitivesBuilder.h>
Public Types | |
enum | trig_cscs { MAX_ENDCAPS = 2, MAX_STATIONS = 4, MAX_SECTORS = 6, MAX_SUBSECTORS = 2, MAX_CHAMBERS = 9 } |
Public Member Functions | |
void | build (const CSCBadChambers *badChambers, const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiCollection *gemPads, const GEMPadDigiClusterCollection *gemPadClusters, CSCALCTDigiCollection &oc_alct, CSCALCTDigiCollection &oc_alct_all, CSCCLCTDigiCollection &oc_clct, CSCCLCTDigiCollection &oc_clct_all, CSCALCTPreTriggerDigiCollection &oc_alctpretrigger, CSCCLCTPreTriggerDigiCollection &oc_clctpretrigger, CSCCLCTPreTriggerCollection &oc_pretrig, CSCCorrelatedLCTDigiCollection &oc_lct, CSCCorrelatedLCTDigiCollection &oc_sorted_lct, GEMCoPadDigiCollection &oc_gemcopad) |
CSCTriggerPrimitivesBuilder (const edm::ParameterSet &) | |
void | setConfigParameters (const CSCDBL1TPParameters *conf) |
void | setCSCGeometry (const CSCGeometry *g) |
set CSC and GEM geometries for the matching needs More... | |
void | setGEMGeometry (const GEMGeometry *g) |
~CSCTriggerPrimitivesBuilder () | |
Private Member Functions | |
template<class T , class S > | |
void | put (const T &, S &, const CSCDetId &, std::string comment) |
Private Attributes | |
bool | checkBadChambers_ |
a flag whether to skip chambers from the bad chambers map More... | |
const CSCGeometry * | csc_g |
bool | disableME1a_ |
bool | disableME42_ |
const GEMGeometry * | gem_g |
int | infoV |
bool | isSLHC_ |
int | m_maxBX_ |
int | m_minBX_ |
std::unique_ptr< CSCMuonPortCard > | m_muonportcard |
bool | runME11ILT_ |
bool | runME11Up_ |
bool | runME21ILT_ |
bool | runME21Up_ |
bool | runME31Up_ |
bool | runME41Up_ |
std::unique_ptr< CSCMotherboard > | tmb_ [MAX_ENDCAPS][MAX_STATIONS][MAX_SECTORS][MAX_SUBSECTORS][MAX_CHAMBERS] |
bool | useClusters_ |
Static Private Attributes | |
static const int | max_chamber = CSCTriggerNumbering::maxTriggerCscId() |
static const int | max_endcap = CSCDetId::maxEndcapId() |
static const int | max_sector = CSCTriggerNumbering::maxTriggerSectorId() |
static const int | max_station = CSCDetId::maxStationId() |
static const int | max_subsector = CSCTriggerNumbering::maxTriggerSubSectorId() |
static const int | min_chamber = CSCTriggerNumbering::minTriggerCscId() |
static const int | min_endcap = CSCDetId::minEndcapId() |
static const int | min_sector = CSCTriggerNumbering::minTriggerSectorId() |
static const int | min_station = CSCDetId::minStationId() |
static const int | min_subsector = CSCTriggerNumbering::minTriggerSubSectorId() |
Definition at line 41 of file CSCTriggerPrimitivesBuilder.h.
Max values of trigger labels for all CSCs; used to construct TMB processors.
Enumerator | |
---|---|
MAX_ENDCAPS | |
MAX_STATIONS | |
MAX_SECTORS | |
MAX_SUBSECTORS | |
MAX_CHAMBERS |
Definition at line 85 of file CSCTriggerPrimitivesBuilder.h.
|
explicit |
Configure the algorithm via constructor. Receives ParameterSet percolated down from EDProducer which owns this Builder.
Definition at line 20 of file CSCTriggerPrimitivesBuilder.cc.
References relativeConstraints::cham, checkBadChambers_, disableME1a_, disableME42_, edm::ParameterSet::getParameter(), infoV, isSLHC_, m_maxBX_, m_minBX_, m_muonportcard, max_chamber, MAX_CHAMBERS, max_endcap, MAX_ENDCAPS, max_sector, MAX_SECTORS, max_station, MAX_STATIONS, max_subsector, MAX_SUBSECTORS, min_chamber, min_endcap, min_sector, min_station, min_subsector, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), runME11ILT_, runME11Up_, runME21ILT_, runME21Up_, runME31Up_, runME41Up_, hgcalPlots::stat, tmb_, and useClusters_.
CSCTriggerPrimitivesBuilder::~CSCTriggerPrimitivesBuilder | ( | ) |
Definition at line 96 of file CSCTriggerPrimitivesBuilder.cc.
void CSCTriggerPrimitivesBuilder::build | ( | const CSCBadChambers * | badChambers, |
const CSCWireDigiCollection * | wiredc, | ||
const CSCComparatorDigiCollection * | compdc, | ||
const GEMPadDigiCollection * | gemPads, | ||
const GEMPadDigiClusterCollection * | gemPadClusters, | ||
CSCALCTDigiCollection & | oc_alct, | ||
CSCALCTDigiCollection & | oc_alct_all, | ||
CSCCLCTDigiCollection & | oc_clct, | ||
CSCCLCTDigiCollection & | oc_clct_all, | ||
CSCALCTPreTriggerDigiCollection & | oc_alctpretrigger, | ||
CSCCLCTPreTriggerDigiCollection & | oc_clctpretrigger, | ||
CSCCLCTPreTriggerCollection & | oc_pretrig, | ||
CSCCorrelatedLCTDigiCollection & | oc_lct, | ||
CSCCorrelatedLCTDigiCollection & | oc_sorted_lct, | ||
GEMCoPadDigiCollection & | oc_gemcopad | ||
) |
Definition at line 115 of file CSCTriggerPrimitivesBuilder.cc.
References CSCMotherboard::alctProc, l1GtPatternGenerator_cfi::bx, relativeConstraints::cham, relativeConstraints::chamber, CSCGeometry::chamber(), CSCTriggerNumbering::chamberFromTriggerLabels(), checkBadChambers_, CSCMotherboard::clctProc, CSCGEMMotherboard::coPadProcessor, csc_g, disableME1a_, disableME42_, MillePedeFileConverter_cfg::e, gem_g, CSCBaseboard::getCSCName(), infoV, CSCBadChambers::isInBadChamber(), isSLHC_, LogDebug, LogTrace, m_maxBX_, m_minBX_, m_muonportcard, CSCConstants::MAX_ALCTS_PER_PROCESSOR, max_chamber, CSCConstants::MAX_CLCTS_PER_PROCESSOR, max_endcap, max_sector, max_station, max_subsector, min_chamber, min_endcap, min_sector, min_station, min_subsector, or, put(), CSCGEMMotherboardME21::readoutLCTs(), CSCMotherboard::readoutLCTs(), CSCUpgradeMotherboard::readoutLCTs(), CSCGEMMotherboardME11::readoutLCTs1a(), CSCMotherboardME11::readoutLCTs1a(), CSCGEMMotherboardME11::readoutLCTs1b(), CSCMotherboardME11::readoutLCTs1b(), mps_fire::result, relativeConstraints::ring, CSCTriggerNumbering::ringFromTriggerLabels(), CSCGEMMotherboardME11::run(), CSCGEMMotherboardME21::run(), CSCMotherboardME11::run(), CSCMotherboard::run(), CSCUpgradeMotherboard::run(), runME11ILT_, runME21ILT_, CSCBaseboard::setCSCGeometry(), CSCGEMMotherboard::setGEMGeometry(), hgcalPlots::stat, tmb_, useClusters_, and CSCDetId::zendcap().
|
private |
template function to put data in the output helps to reduce the large amount of code duplication!
Definition at line 150 of file CSCTriggerPrimitivesBuilder.h.
References comment, LogTrace, alignCSCRings::s, and OrderedSet::t.
Referenced by build().
void CSCTriggerPrimitivesBuilder::setConfigParameters | ( | const CSCDBL1TPParameters * | conf | ) |
Sets configuration parameters obtained via EventSetup mechanism.
Definition at line 98 of file CSCTriggerPrimitivesBuilder.cc.
References relativeConstraints::cham, max_chamber, max_endcap, max_sector, max_station, max_subsector, min_chamber, min_endcap, min_sector, min_station, min_subsector, hgcalPlots::stat, and tmb_.
|
inline |
|
inline |
|
private |
a flag whether to skip chambers from the bad chambers map
Definition at line 110 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 142 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and setCSCGeometry().
|
private |
SLHC: special switch for disabling ME42
Definition at line 116 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
SLHC: special switch for disabling ME42
Definition at line 119 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 143 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and setGEMGeometry().
|
private |
Definition at line 108 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
SLHC: special configuration parameters for ME11 treatment.
Definition at line 113 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 136 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 136 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Pointer to MPC processor.
Definition at line 146 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
staticprivate |
Definition at line 105 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 97 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 101 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 99 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 103 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 104 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Min and max allowed values for various CSC elements, defined in CSCDetId and CSCTriggerNumbering classes.
Definition at line 96 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 100 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 98 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
staticprivate |
Definition at line 102 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
private |
SLHC: special switch for the upgrade ME1/1 TMB
Definition at line 128 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
SLHC: individual switches
Definition at line 122 of file CSCTriggerPrimitivesBuilder.h.
Referenced by CSCTriggerPrimitivesBuilder().
|
private |
SLHC: special switch for the upgrade ME2/1 TMB
Definition at line 131 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 123 of file CSCTriggerPrimitivesBuilder.h.
Referenced by CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 124 of file CSCTriggerPrimitivesBuilder.h.
Referenced by CSCTriggerPrimitivesBuilder().
|
private |
Definition at line 125 of file CSCTriggerPrimitivesBuilder.h.
Referenced by CSCTriggerPrimitivesBuilder().
|
private |
Pointers to TMB processors for all possible chambers.
Definition at line 139 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), CSCTriggerPrimitivesBuilder(), and setConfigParameters().
|
private |
SLHC: special switch to use gem clusters
Definition at line 134 of file CSCTriggerPrimitivesBuilder.h.
Referenced by build(), and CSCTriggerPrimitivesBuilder().