34 presamples_(
pset.getUntrackedParameter<
int>(
"Presamples", 4)),
35 samples_(
pset.getUntrackedParameter<
int>(
"Samples", 10)),
38 produces<HBHEDigiCollection>();
39 produces<HODigiCollection>();
40 produces<HFDigiCollection>();
52 auto hbhe = std::make_unique<HBHEDigiCollection>();
53 auto hf = std::make_unique<HFDigiCollection>();
54 auto ho = std::make_unique<HODigiCollection>();
58 std::vector<HcalQIESample>
samples;
59 for (
int fc = 0; fc < 3; fc++) {
70 switch (did.subdet()) {
78 hbhe->back().setReadoutIds(
eid);
86 hf->back().setReadoutIds(
eid);
94 ho->back().setReadoutIds(
eid);
113 wordexp(patspec.c_str(), &
p, WRDE_NOCMD);
115 for (
unsigned int i = 0;
i <
p.we_wordc;
i++) {
126 std::map<std::string, std::string>
params;
127 std::vector<uint32_t>
data;
139 if (
buffer.find(
"<?xml") != 0) {
143 while (
buffer.find(
"<CFGBrick>",
i) != std::string::npos) {
146 element =
"<?xml version='1.0'?>\n";
148 element.append(
"</CFGBrick>");
void loadPatternFile(const std::string &filename)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void produce(edm::Event &e, const edm::EventSetup &c) override
void loadPatterns(const std::string &patspec)
std::vector< int > bunches_
const edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > theHcalElectronicsMapToken_
#define DEFINE_FWK_MODULE(type)
std::vector< HcalFiberPattern > patterns_
~HcalPatternSource() override
HcalPatternSource(const edm::ParameterSet &pset)
char data[epos_bytes_allocation]
Log< level::Warning, false > LogWarning
Readout chain identification for Hcal.