17 : reco_(conf.getParameter<
bool>(
"correctForTimeslew"),
18 conf.getParameter<
bool>(
"correctForPhaseContainment"),
19 conf.getParameter<double>(
"correctionPhaseNS")),
21 inputLabel_(conf.getParameter<
edm::
InputTag>(
"digiLabel")),
22 dropZSmarkedPassed_(conf.getParameter<
bool>(
"dropZSmarkedPassed")),
23 firstSample_(conf.getParameter<
int>(
"firstSample")),
24 samplesToAdd_(conf.getParameter<
int>(
"samplesToAdd")),
25 tsFromDB_(conf.getParameter<
bool>(
"tsFromDB")),
27 theTopology(nullptr) {
34 if (!strcasecmp(subd.c_str(),
"HO")) {
36 produces<HORecHitCollection>();
37 }
else if (!strcasecmp(subd.c_str(),
"HF")) {
39 produces<HFRecHitCollection>();
41 std::cout <<
"HcalSimpleReconstructor is not associated with a specific subdetector!" << std::endl;
72 template <
class DIGICOLL,
class RECHITCOLL>
81 e.getByToken(tok, digi);
84 auto rec = std::make_unique<RECHITCOLL>();
85 rec->reserve(digi->size());
89 typename DIGICOLL::const_iterator
i;
90 for (
i = digi->begin();
i != digi->end();
i++) {
95 if (
i->zsMarkAndPass())
118 process<HFDigiCollection, HFRecHitCollection>(
e, eventSetup,
tok_hf_);
120 process<HODigiCollection, HORecHitCollection>(
e, eventSetup,
tok_ho_);
122 process<HcalCalibDigiCollection, HcalCalibRecHitCollection>(
e, eventSetup,
tok_calib_);
130 descHO.
add<
double>(
"correctionPhaseNS", 13.0);
132 descHO.
add<
bool>(
"tsFromDB",
true);
133 descHO.
add<
int>(
"samplesToAdd", 4);
135 descHO.
add<
bool>(
"correctForTimeslew",
true);
136 descHO.
add<
bool>(
"dropZSmarkedPassed",
true);
137 descHO.
add<
bool>(
"correctForPhaseContainment",
true);
138 descHO.
add<
int>(
"firstSample", 4);
139 descriptions.
add(
"hosimplereco", descHO);
143 descHF.
add<
double>(
"correctionPhaseNS", 0.0);
145 descHF.
add<
bool>(
"tsFromDB",
true);
146 descHF.
add<
int>(
"samplesToAdd", 2);
148 descHF.
add<
bool>(
"correctForTimeslew",
false);
149 descHF.
add<
bool>(
"dropZSmarkedPassed",
true);
150 descHF.
add<
bool>(
"correctForPhaseContainment",
false);
151 descHF.
add<
int>(
"firstSample", 4);
152 descriptions.
add(
"hfsimplereco", descHF);