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");
145 cscToken_ = esConsumes<CSCGeometry, MuonGeometryRecord>();
146 gemToken_ = esConsumes<GEMGeometry, MuonGeometryRecord>();
155 confToken_ = esConsumes<CSCDBL1TPParameters, CSCDBL1TPParametersRcd>();
158 produces<CSCALCTDigiCollection>();
159 produces<CSCCLCTDigiCollection>();
160 produces<CSCCLCTPreTriggerCollection>();
161 if (keepCLCTPreTriggers_) {
162 produces<CSCCLCTPreTriggerDigiCollection>();
164 if (keepALCTPreTriggers_) {
165 produces<CSCALCTPreTriggerDigiCollection>();
167 produces<CSCCorrelatedLCTDigiCollection>();
168 produces<CSCCorrelatedLCTDigiCollection>(
"MPCSORTED");
170 produces<CSCShowerDigiCollection>();
171 produces<CSCShowerDigiCollection>(
"Anode");
172 produces<CSCShowerDigiCollection>(
"Cathode");
175 produces<GEMCoPadDigiCollection>();
194 <<
"GEM geometry is unavailable. Running CSC-only trigger algorithm. +++\n";
203 if (conf.
product() ==
nullptr) {
205 <<
"Failed to find a CSCL1TPLookupTableCCLUTRcd in EventSetup with runCCLUT_ on";
213 if (conf.
product() ==
nullptr) {
215 <<
"Failed to find a CSCL1TPLookupTableME11ILTRcd in EventSetup with runME11ILT_ on";
223 if (conf.
product() ==
nullptr) {
225 <<
"Failed to find a CSCL1TPLookupTableME21ILTRcd in EventSetup with runME21ILT_ on";
236 if (conf.
product() ==
nullptr) {
238 <<
"+++ Failed to find a CSCDBL1TPParametersRcd in EventSetup! +++\n"
239 <<
"+++ Cannot continue emulation without these parameters +++\n";
257 gemPadClusters = gemPadDigiClusters.
product();
278 <<
" requested in configuration, but not found in the event..."
279 <<
" Skipping production of CSC TP digis +++\n";
284 <<
" requested in configuration, but not found in the event..."
285 <<
" Skipping production of CSC TP digis +++\n";
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...