47 <<
"+++ trying to instantiate TMB of illegal CSC id [" 48 <<
" endcap = " << endc <<
" station = " <<
stat <<
" sector = " << sect <<
" subsector = " << subs
49 <<
" chamber = " <<
cham <<
"]; skipping it... +++\n";
61 if (upgradeGE11
or upgradeGE21)
63 std::make_unique<CSCGEMMotherboard>(endc,
stat, sect, subs,
cham, conf);
67 std::make_unique<CSCMotherboard>(endc,
stat, sect, subs,
cham, conf);
71 mpc_[endc - 1][
stat - 1][sect - 1] = std::make_unique<CSCMuonPortCard>(endc,
stat, sect, conf);
91 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setConfigParameters(conf);
107 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setESLookupTables(conf);
122 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME11())
138 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME21())
207 if (upgradeGE11
or upgradeGE21) {
212 tmbGEM->
run(wiredc, compdc, gemClusters);
216 const std::vector<GEMCoPadDigi>& copads = tmbGEM->
clusterProc()->readoutCoPads();
217 put(copads, oc_gemcopad, gemId,
" GEM coincidence pad");
222 tmb->
run(wiredc, compdc);
228 const std::vector<CSCALCTDigi>& alctV = tmb->
alctProc->readoutALCTs();
229 const std::vector<CSCCLCTDigi>& clctV = tmb->
clctProc->readoutCLCTs();
230 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb->
readoutLCTs();
233 const std::vector<int>& preTriggerBXs = tmb->
clctProc->preTriggerBXs();
234 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb->
clctProc->preTriggerDigis();
235 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb->
alctProc->preTriggerDigis();
238 const std::vector<CSCShowerDigi>& shower = tmb->
readoutShower();
242 put(alctV, oc_alct, detid, tmb->
getCSCName() +
" ALCT digi");
243 put(clctV, oc_clct, detid, tmb->
getCSCName() +
" CLCT digi");
246 put(preTriggerBXs, oc_pretrig, detid, tmb->
getCSCName() +
" CLCT pre-trigger BX");
247 put(pretriggerV, oc_pretrigger, detid, tmb->
getCSCName() +
" CLCT pre-trigger digi");
248 put(alctpretriggerV, oc_alctpretrigger, detid, tmb->
getCSCName() +
" ALCT pre-trigger digi");
250 put(shower, oc_shower, detid, tmb->
getCSCName() +
"TMB shower");
260 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
261 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
274 auto mpc =
mpc_[endc - 1][
stat - 1][sect - 1].get();
277 mpc->loadLCTs(oc_lct);
283 const auto&
result = mpc->getLCTs();
287 for (
const auto& lct :
result) {
288 oc_sorted_lct.insertDigi(
CSCDetId(lct.getDetId().rawId()), *(lct.getDigi()));
290 LogDebug(
"CSCTriggerPrimitivesBuilder")
291 <<
"MPC " << *(lct.getDigi()) <<
" found in ME" << ((lct.endcap() == 1) ?
"+" :
"-") << lct.station()
293 <<
" (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 std::string chamberName(int endcap, int station, int ring, int chamber)
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
std::vector< std::string > selectedChambers_
static const int max_station
Log< level::Error, false > LogError
static int maxStationId()
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
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)
std::vector< CSCShowerDigi > readoutShower() const
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
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...