46 <<
"+++ trying to instantiate TMB of illegal CSC id [" 47 <<
" endcap = " << endc <<
" station = " <<
stat <<
" sector = " << sect <<
" subsector = " << subs
48 <<
" chamber = " <<
cham <<
"]; skipping it... +++\n";
60 if (upgradeGE11
or upgradeGE21)
62 std::make_unique<CSCGEMMotherboard>(endc,
stat, sect, subs,
cham, conf);
66 std::make_unique<CSCMotherboard>(endc,
stat, sect, subs,
cham, conf);
70 mpc_[endc - 1][
stat - 1][sect - 1] = std::make_unique<CSCMuonPortCard>(endc,
stat, sect, conf);
90 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setConfigParameters(conf);
106 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setESLookupTables(conf);
121 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME11())
137 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME21())
199 if (upgradeGE11
or upgradeGE21) {
204 tmbGEM->
run(wiredc, compdc, gemClusters);
208 const std::vector<GEMCoPadDigi>& copads = tmbGEM->
clusterProc()->readoutCoPads();
209 put(copads, oc_gemcopad, gemId,
" GEM coincidence pad");
214 tmb->
run(wiredc, compdc);
220 const std::vector<CSCALCTDigi>& alctV = tmb->
alctProc->readoutALCTs();
221 const std::vector<CSCCLCTDigi>& clctV = tmb->
clctProc->readoutCLCTs();
222 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb->
readoutLCTs();
225 const std::vector<int>& preTriggerBXs = tmb->
clctProc->preTriggerBXs();
226 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb->
clctProc->preTriggerDigis();
227 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb->
alctProc->preTriggerDigis();
234 put(alctV, oc_alct, detid, tmb->
getCSCName() +
" ALCT digi");
235 put(clctV, oc_clct, detid, tmb->
getCSCName() +
" CLCT digi");
238 put(preTriggerBXs, oc_pretrig, detid, tmb->
getCSCName() +
" CLCT pre-trigger BX");
239 put(pretriggerV, oc_pretrigger, detid, tmb->
getCSCName() +
" CLCT pre-trigger digi");
240 put(alctpretriggerV, oc_alctpretrigger, detid, tmb->
getCSCName() +
" ALCT pre-trigger digi");
249 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
250 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
263 auto mpc =
mpc_[endc - 1][
stat - 1][sect - 1].get();
266 mpc->loadLCTs(oc_lct);
272 const auto&
result = mpc->getLCTs();
276 for (
const auto& lct :
result) {
277 oc_sorted_lct.insertDigi(
CSCDetId(lct.getDetId().rawId()), *(lct.getDigi()));
279 LogDebug(
"CSCTriggerPrimitivesBuilder")
280 <<
"MPC " << *(lct.getDigi()) <<
" found in ME" << ((lct.endcap() == 1) ?
"+" :
"-") << lct.station()
282 <<
" (sector " << lct.sector() <<
" trig id. " << lct.cscid() <<
")"
static const int min_station
void build(const CSCBadChambers *badChambers, const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiClusterCollection *gemPadClusters, CSCALCTDigiCollection &oc_alct, CSCCLCTDigiCollection &oc_clct, CSCALCTPreTriggerDigiCollection &oc_alctpretrigger, CSCCLCTPreTriggerDigiCollection &oc_clctpretrigger, CSCCLCTPreTriggerCollection &oc_pretrig, CSCCorrelatedLCTDigiCollection &oc_lct, CSCCorrelatedLCTDigiCollection &oc_sorted_lct, CSCShowerDigiCollection &oc_shower_anode, CSCShowerDigiCollection &oc_shower_cathode, CSCShowerDigiCollection &oc_shower, GEMCoPadDigiCollection &oc_gemcopad)
T getParameter(std::string const &) const
virtual std::vector< CSCCorrelatedLCTDigi > readoutLCTs() const
std::unique_ptr< CSCMotherboard > tmb_[MAX_ENDCAPS][MAX_STATIONS][MAX_SECTORS][MAX_SUBSECTORS][MAX_CHAMBERS]
short int zendcap() const
const CSCChamber * chamber(CSCDetId id) const
Return the chamber corresponding to given DetId.
static const int max_subsector
static int maxTriggerCscId()
void setGEMGeometry(const GEMGeometry *g)
static int maxTriggerSectorId()
std::unique_ptr< CSCMuonPortCard > mpc_[MAX_ENDCAPS][MAX_STATIONS][MAX_SECTORS]
anodeShower
settings for anode showers (counting CSCWireDigi)
static const int min_endcap
std::unique_ptr< CSCCathodeLCTProcessor > clctProc
void insertDigi(const IndexType &index, const DigiType &digi)
insert a digi for a given DetUnit
static const int max_station
Log< level::Error, false > LogError
static int maxStationId()
static int minTriggerSectorId()
static const int min_subsector
static int ringFromTriggerLabels(int station, int triggerCSCID)
const GEMGeometry * gem_g
static const int max_chamber
void setConfigParameters(const CSCDBL1TPParameters *conf)
static const int max_sector
~CSCTriggerPrimitivesBuilder()
static const int max_endcap
CSCTriggerPrimitivesBuilder(const edm::ParameterSet &)
std::string getCSCName() const
static int minStationId()
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
void setESLookupTables(const CSCL1TPLookupTableCCLUT *conf)
static const int min_sector
void run(const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc)
const CSCGeometry * csc_g
static int minTriggerSubSectorId()
void put(const T &, S &, const CSCDetId &, std::string comment)
bool isInBadChamber(IndexType ichamber) const
Is the chamber with index 'ichamber' flagged as bad?
void run(const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiClusterCollection *gemPads)
bool checkBadChambers_
a flag whether to skip chambers from the bad chambers map
std::unique_ptr< CSCAnodeLCTProcessor > alctProc
void setCSCGeometry(const CSCGeometry *g)
cathodeShower
settings for cathode showers (counting CSCComparatorDigi)
static int minTriggerCscId()
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)
static int maxTriggerSubSectorId()
std::shared_ptr< GEMClusterProcessor > clusterProc() const
static const int min_chamber
CSCShowerDigi readoutShower() const
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...