19 : reco_(conf.getParameter<
bool>(
"correctForTimeslew"),
20 conf.getParameter<
bool>(
"correctForPhaseContainment"),
21 conf.getParameter<double>(
"correctionPhaseNS"),
22 conf.getParameter<
int>(
"recoMethod"),
23 conf.getParameter<
int>(
"lowGainOffset"),
24 conf.getParameter<double>(
"lowGainFrac")),
25 saturationFlagSetter_(nullptr),
26 HFTimingTrustFlagSetter_(nullptr),
27 hbheHSCPFlagSetter_(nullptr),
28 hbheTimingShapedFlagSetter_(nullptr),
29 hfrechitbit_(nullptr),
32 correctTiming_(conf.getParameter<
bool>(
"correctTiming")),
33 setNoiseFlags_(conf.getParameter<
bool>(
"setNoiseFlags")),
34 setHSCPFlags_(conf.getParameter<
bool>(
"setHSCPFlags")),
35 setSaturationFlags_(conf.getParameter<
bool>(
"setSaturationFlags")),
36 setTimingTrustFlags_(conf.getParameter<
bool>(
"setTimingTrustFlags")),
37 dropZSmarkedPassed_(conf.getParameter<
bool>(
"dropZSmarkedPassed")),
38 AuxTSvec_(conf.getParameter<
std::vector<
int> >(
"AuxTSvec")),
53 if (!strcasecmp(subd.c_str(),
"ZDC")) {
56 produces<ZDCRecHitCollection>();
57 }
else if (!strcasecmp(subd.c_str(),
"CALIB")) {
60 produces<HcalCalibRecHitCollection>();
62 std::cout <<
"ZdcHitReconstructor is not associated with a specific subdetector!" << std::endl;
99 std::vector<unsigned int> mySignalTS;
100 std::vector<unsigned int> myNoiseTS;
110 edm::LogInfo(
"ZdcHitReconstructor") <<
"No ZDC info found in either castorDigis or hcalDigis." << std::endl;
116 auto rec = std::make_unique<ZDCRecHitCollection>();
117 rec->reserve(digi->
size());
128 if (
i->zsMarkAndPass())
140 myNoiseTS = myParams->
noiseTS();
143 (rec->back()).setFlags(0);
158 auxflag += ((
i->sample(
AuxTSvec_[0]).capid()) << 28);
159 (rec->back()).setAux(auxflag);