13 #include <unordered_set> 21 e.getByToken(tok, h_coll);
22 auto o_coll = std::make_unique<T>();
25 o_coll = std::make_unique<T>(*(h_coll.
product()));
27 if (!productName.empty())
69 unpackCalib_(conf.getParameter<
bool>(
"UnpackCalib")),
70 unpackZDC_(conf.getParameter<
bool>(
"UnpackZDC")),
71 unpackTTP_(conf.getParameter<
bool>(
"UnpackTTP")) {
73 produces<QIE10DigiCollection>();
74 produces<QIE11DigiCollection>();
75 produces<HBHEDigiCollection>();
76 produces<HFDigiCollection>();
77 produces<HODigiCollection>();
78 produces<HcalTrigPrimDigiCollection>();
79 produces<HOTrigPrimDigiCollection>();
81 produces<HcalCalibDigiCollection>();
83 produces<ZDCDigiCollection>();
85 produces<HcalTTPDigiCollection>();
86 produces<QIE10DigiCollection>(
"ZDC");
94 desc.add<
bool>(
"UnpackZDC",
true);
95 desc.add<
bool>(
"UnpackCalib",
true);
96 desc.add<
bool>(
"UnpackTTP",
true);
111 desc.add<
int>(
"firstSample", 0);
112 desc.add<
int>(
"lastSample", 0);
113 descriptions.
add(
"HcalRawToDigiFake",
desc);
edm::EDGetTokenT< HcalTTPDigiCollection > tok_TTPDigiCollection_
void get(edm::EDGetTokenT< T > tok, edm::Event &e, const std::string &productName="")
edm::EDGetTokenT< HcalTrigPrimDigiCollection > tok_TPDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_QIE10DigiCollection_
T const * product() const
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_ZDCQIE10DigiCollection_
edm::EDGetTokenT< QIE11DigiCollection > tok_QIE11DigiCollection_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::StreamID id, edm::Event &e, const edm::EventSetup &c) const override
edm::EDGetTokenT< HOTrigPrimDigiCollection > tok_HOTPDigiCollection_
~HcalRawToDigiFake() override
#define DEFINE_FWK_MODULE(type)
HcalRawToDigiFake(const edm::ParameterSet &ps)
edm::EDGetTokenT< HcalCalibDigiCollection > tok_CalibDigiCollection_
edm::EDGetTokenT< HODigiCollection > tok_HODigiCollection_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
edm::EDGetTokenT< ZDCDigiCollection > tok_ZDCDigiCollection_