|
|
Go to the documentation of this file.
14 : reco_(conf.getParameter<
bool>(
"correctForTimeslew"),
15 conf.getParameter<
bool>(
"correctForPhaseContainment"),
16 conf.getParameter<double>(
"correctionPhaseNS"),
17 conf.getParameter<
int>(
"recoMethod"),
18 conf.getParameter<
int>(
"lowGainOffset"),
19 conf.getParameter<double>(
"lowGainFrac")),
21 dropZSmarkedPassed_(conf.getParameter<
bool>(
"dropZSmarkedPassed")) {
26 if (!strcasecmp(subd.c_str(),
"ZDC")) {
29 produces<ZDCRecHitCollection>();
30 }
else if (!strcasecmp(subd.c_str(),
"CALIB")) {
33 produces<HcalCalibRecHitCollection>();
35 std::cout <<
"ZdcSimpleReconstructor is not associated with a specific subdetector!" << std::endl;
61 std::vector<unsigned int> mySignalTS;
62 std::vector<unsigned int> myNoiseTS;
71 edm::LogInfo(
"ZdcHitReconstructor") <<
"No ZDC info found in either castorDigis or hcalDigis." << std::endl;
75 auto rec = std::make_unique<ZDCRecHitCollection>();
76 rec->reserve(digi->
size());
78 unsigned int toaddMem = 0;
86 if (
i->zsMarkAndPass())
94 myNoiseTS = myParams->
noiseTS();
97 unsigned int toadd = mySignalTS.size();
98 if (toaddMem != toadd) {
void produce(edm::Event &e, const edm::EventSetup &c) override
std::vector< T >::const_iterator const_iterator
std::vector< unsigned int > noiseTS() const
edm::EDGetTokenT< ZDCDigiCollection > tok_input_hcal
ZdcSimpleReconstructor(const edm::ParameterSet &ps)
HcalLongRecoParams * myobject
const Item * getValues(DetId fId, bool throwOnFail=true) const
const HcalQIEShape * getHcalShape(const HcalGenericDetId &fId) const
const HcalCalibrations & getHcalCalibrations(const HcalGenericDetId &fId) const
const HcalQIECoder * getHcalCoder(const HcalGenericDetId &fId) const
~ZdcSimpleReconstructor() override
const_iterator begin() const
const HcalTimeSlew * hcalTimeSlew_delay_
static const int SubdetectorId
void initPulseCorr(int toadd, const HcalTimeSlew *hcalTimeSlew_delay)
const_iterator end() const
std::vector< unsigned int > signalTS() const
void endRun(edm::Run const &r, edm::EventSetup const &es) final
T getParameter(std::string const &) const
void beginRun(edm::Run const &r, edm::EventSetup const &es) final
HcalOtherSubdetector subdetOther_
edm::EDGetTokenT< ZDCDigiCollection > tok_input_castor
ZDCRecHit reconstruct(const ZDCDataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs) const