13 #include <unordered_set> 22 e.getByToken(tok, h_coll);
23 auto o_coll = std::make_unique<T>();
26 o_coll = std::make_unique<T>(*(h_coll.
product()));
28 if(!productName.empty()) e.put(
std::move(o_coll),productName);
61 tok_HFDigiCollection_ (consumes<
HFDigiCollection >(conf.getParameter<
edm::InputTag>(
"HF"))),
62 tok_HODigiCollection_ (consumes<
HODigiCollection >(conf.getParameter<
edm::InputTag>(
"HO"))),
69 unpackCalib_(conf.getParameter<
bool>(
"UnpackCalib")),
70 unpackZDC_(conf.getParameter<
bool>(
"UnpackZDC")),
71 unpackTTP_(conf.getParameter<
bool>(
"UnpackTTP"))
74 produces<QIE10DigiCollection>();
75 produces<QIE11DigiCollection>();
76 produces<HBHEDigiCollection>();
77 produces<HFDigiCollection>();
78 produces<HODigiCollection>();
79 produces<HcalTrigPrimDigiCollection>();
80 produces<HOTrigPrimDigiCollection>();
82 produces<HcalCalibDigiCollection>();
84 produces<ZDCDigiCollection>();
86 produces<HcalTTPDigiCollection>();
87 produces<QIE10DigiCollection>(
"ZDC");
95 desc.
add<
bool>(
"UnpackZDC",
true);
96 desc.
add<
bool>(
"UnpackCalib",
true);
97 desc.
add<
bool>(
"UnpackTTP",
true);
112 desc.
add<
int>(
"firstSample",0);
113 desc.
add<
int>(
"lastSample",0);
114 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_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HFDigiCollection > tok_HFDigiCollection_
edm::EDGetTokenT< QIE10DigiCollection > tok_ZDCQIE10DigiCollection_
edm::EDGetTokenT< QIE11DigiCollection > tok_QIE11DigiCollection_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< HOTrigPrimDigiCollection > tok_HOTPDigiCollection_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~HcalRawToDigiFake() override
HcalRawToDigiFake(const edm::ParameterSet &ps)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< HcalCalibDigiCollection > tok_CalibDigiCollection_
edm::EDGetTokenT< HODigiCollection > tok_HODigiCollection_
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< HBHEDigiCollection > tok_HBHEDigiCollection_
void produce(edm::StreamID id, edm::Event &e, const edm::EventSetup &c) const override
edm::EDGetTokenT< ZDCDigiCollection > tok_ZDCDigiCollection_