48 <<
"+++ trying to instantiate TMB of illegal CSC id [" 49 <<
" endcap = " << endc <<
" station = " <<
stat <<
" sector = " << sect <<
" subsector = " << subs
50 <<
" chamber = " <<
cham <<
"]; skipping it... +++\n";
62 if (upgradeGE11
or upgradeGE21)
64 std::make_unique<CSCGEMMotherboard>(endc,
stat, sect, subs,
cham, baseparams);
68 std::make_unique<CSCMotherboard>(endc,
stat, sect, subs,
cham, baseparams);
72 mpc_[endc - 1][
stat - 1][sect - 1] = std::make_unique<CSCMuonPortCard>(endc,
stat, sect, conf);
92 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setConfigParameters(conf);
108 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setESLookupTables(conf);
123 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME11())
139 if (
tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->
id().isME21())
208 if (upgradeGE11
or upgradeGE21) {
213 tmbGEM->
run(wiredc, compdc, gemClusters);
217 const std::vector<GEMCoPadDigi>& copads = tmbGEM->
clusterProc()->readoutCoPads();
218 put(copads, oc_gemcopad, gemId,
" GEM coincidence pad");
223 tmb->
run(wiredc, compdc);
229 const std::vector<CSCALCTDigi>& alctV = tmb->
alctProc->readoutALCTs();
230 const std::vector<CSCCLCTDigi>& clctV = tmb->
clctProc->readoutCLCTs();
231 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb->
readoutLCTs();
234 const std::vector<int>& preTriggerBXs = tmb->
clctProc->preTriggerBXs();
235 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb->
clctProc->preTriggerDigis();
236 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb->
alctProc->preTriggerDigis();
239 const std::vector<CSCShowerDigi>& shower = tmb->
readoutShower();
243 put(alctV, oc_alct, detid, tmb->
getCSCName() +
" ALCT digi");
244 put(clctV, oc_clct, detid, tmb->
getCSCName() +
" CLCT digi");
247 put(preTriggerBXs, oc_pretrig, detid, tmb->
getCSCName() +
" CLCT pre-trigger BX");
248 put(pretriggerV, oc_pretrigger, detid, tmb->
getCSCName() +
" CLCT pre-trigger digi");
249 put(alctpretriggerV, oc_alctpretrigger, detid, tmb->
getCSCName() +
" ALCT pre-trigger digi");
251 put(shower, oc_shower, detid, tmb->
getCSCName() +
"TMB shower");
261 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
262 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
275 auto mpc =
mpc_[endc - 1][
stat - 1][sect - 1].get();
278 mpc->loadLCTs(oc_lct);
284 const auto&
result = mpc->getLCTs();
288 for (
const auto& lct :
result) {
289 oc_sorted_lct.insertDigi(
CSCDetId(lct.getDetId().rawId()), *(lct.getDigi()));
291 LogDebug(
"CSCTriggerPrimitivesBuilder")
292 <<
"MPC " << *(lct.getDigi()) <<
" found in ME" << ((lct.endcap() == 1) ?
"+" :
"-") << lct.station()
294 <<
" (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...