15 reco_(conf.getParameter<bool>(
"correctForTimeslew"),
16 conf.getParameter<bool>(
"correctForPhaseContainment"),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;
58 std::vector<unsigned int> mySignalTS;
59 std::vector<unsigned int> myNoiseTS;
67 rec->reserve(digi->size());
69 unsigned int toaddMem = 0;
72 for (i=digi->begin(); i!=digi->end(); i++) {
77 if (i->zsMarkAndPass())
continue;
84 myNoiseTS = myParams->
noiseTS();
87 unsigned int toadd = mySignalTS.size();
88 if(toaddMem != toadd) {
93 const HcalQIECoder* channelCoder = conditions->getHcalCoder (cell);
94 const HcalQIEShape* shape = conditions->getHcalShape (channelCoder);
96 rec->push_back(
reco_.
reconstruct(*i,myNoiseTS,mySignalTS,coder,calibrations));
virtual void produce(edm::Event &e, const edm::EventSetup &c)
T getParameter(std::string const &) const
HcalOtherSubdetector subdetOther_
virtual ~ZdcSimpleReconstructor()
std::vector< unsigned int > signalTS() const
HcalLongRecoParams * myobject
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< ZDCDataFrame >::const_iterator const_iterator
const Item * getValues(DetId fId, bool throwOnFail=true) const
virtual void endRun(edm::Run const &r, edm::EventSetup const &es) overridefinal
ZdcSimpleReconstructor(const edm::ParameterSet &ps)
ZDCRecHit reconstruct(const ZDCDataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs) const
void initPulseCorr(int toadd)
virtual void beginRun(edm::Run const &r, edm::EventSetup const &es) overridefinal
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
static const int SubdetectorId
T const * product() const
std::vector< unsigned int > noiseTS() const
edm::EDGetTokenT< ZDCDigiCollection > tok_input_