1 #ifndef L1Trigger_CSCTriggerPrimitives_CSCTriggerPrimitivesProducer_h
2 #define L1Trigger_CSCTriggerPrimitives_CSCTriggerPrimitivesProducer_h
71 std::unique_ptr<CSCTriggerPrimitivesBuilder>
builder_;
133 runCCLUT_TMB_ = commonParam.getParameter<
bool>(
"runCCLUT_TMB");
137 runME11ILT_ = commonParam.getParameter<
bool>(
"runME11ILT");
138 runME21ILT_ = commonParam.getParameter<
bool>(
"runME21ILT");
146 cscToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
147 gemToken_ = esConsumes<GEMGeometry, MuonGeometryRecord>();
156 confToken_ = esConsumes<CSCDBL1TPParameters, CSCDBL1TPParametersRcd>();
159 produces<CSCALCTDigiCollection>();
160 produces<CSCCLCTDigiCollection>();
161 produces<CSCCLCTPreTriggerCollection>();
162 if (keepCLCTPreTriggers_) {
163 produces<CSCCLCTPreTriggerDigiCollection>();
165 if (keepALCTPreTriggers_) {
166 produces<CSCALCTPreTriggerDigiCollection>();
168 produces<CSCCorrelatedLCTDigiCollection>();
169 produces<CSCCorrelatedLCTDigiCollection>(
"MPCSORTED");
171 produces<CSCShowerDigiCollection>();
172 produces<CSCShowerDigiCollection>(
"Anode");
173 produces<CSCShowerDigiCollection>(
"Cathode");
176 produces<GEMCoPadDigiCollection>();
195 <<
"GEM geometry is unavailable. Running CSC-only trigger algorithm. +++\n";
204 if (conf.
product() ==
nullptr) {
206 <<
"Failed to find a CSCL1TPLookupTableCCLUTRcd in EventSetup with runCCLUT_ on";
214 if (conf.
product() ==
nullptr) {
216 <<
"Failed to find a CSCL1TPLookupTableME11ILTRcd in EventSetup with runME11ILT_ on";
224 if (conf.
product() ==
nullptr) {
226 <<
"Failed to find a CSCL1TPLookupTableME21ILTRcd in EventSetup with runME21ILT_ on";
237 if (conf.
product() ==
nullptr) {
239 <<
"+++ Failed to find a CSCDBL1TPParametersRcd in EventSetup! +++\n"
240 <<
"+++ Cannot continue emulation without these parameters +++\n";
273 <<
" requested in configuration, but not found in the event..."
274 <<
" Skipping production of CSC TP digis +++\n";
279 <<
" requested in configuration, but not found in the event..."
280 <<
" Skipping production of CSC TP digis +++\n";
288 if (!gemPadDigiClusters.
isValid()) {
291 <<
" requested in configuration, but not found in the event..."
292 <<
" Running CSC-only trigger algorithm +++\n";
295 gemPadClusters = gemPadDigiClusters.
product();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag compDigiProducer_
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::InputTag wireDigiProducer_
edm::ParameterSet config_
CSCTriggerPrimitivesProducer(const edm::ParameterSet &)
Log< level::Error, false > LogError
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
bool keepCLCTPreTriggers_
void produce(edm::Event &, const edm::EventSetup &) override
bool getData(T &iHolder) const
edm::EDGetTokenT< GEMPadDigiClusterCollection > gem_pad_cluster_token_
edm::ESGetToken< CSCL1TPLookupTableME21ILT, CSCL1TPLookupTableME21ILTRcd > pLookupTableME21ILTToken_
edm::ESGetToken< CSCDBL1TPParameters, CSCDBL1TPParametersRcd > confToken_
bool keepALCTPreTriggers_
edm::EDGetTokenT< CSCComparatorDigiCollection > comp_token_
edm::InputTag gemPadDigiClusterProducer_
edm::ESGetToken< CSCL1TPLookupTableME11ILT, CSCL1TPLookupTableME11ILTRcd > pLookupTableME11ILTToken_
T const * product() const
T const * product() const
T getParameter(std::string const &) const
std::unique_ptr< CSCTriggerPrimitivesBuilder > builder_
edm::EDGetTokenT< CSCWireDigiCollection > wire_token_
edm::ESGetToken< CSCL1TPLookupTableCCLUT, CSCL1TPLookupTableCCLUTRcd > pLookupTableCCLUTToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Warning, false > LogWarning
~CSCTriggerPrimitivesProducer() override
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > pBadChambersToken_
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
A container for a generic type of digis indexed by some index, implemented with a map<IndexType...