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"))
28 if (!strcasecmp(subd.c_str(),
"ZDC")) {
31 produces<ZDCRecHitCollection>();
32 }
else if (!strcasecmp(subd.c_str(),
"CALIB")) {
35 produces<HcalCalibRecHitCollection>();
37 std::cout <<
"ZdcSimpleReconstructor is not associated with a specific subdetector!" << std::endl;
60 std::vector<unsigned int> mySignalTS;
61 std::vector<unsigned int> myNoiseTS;
67 if(digi->size() == 0) {
70 edm::LogInfo(
"ZdcHitReconstructor") <<
"No ZDC info found in either castorDigis or hcalDigis." << std::endl;
75 rec->reserve(digi->size());
77 unsigned int toaddMem = 0;
80 for (i=digi->begin(); i!=digi->end(); i++) {
85 if (i->zsMarkAndPass())
continue;
92 myNoiseTS = myParams->
noiseTS();
95 unsigned int toadd = mySignalTS.size();
96 if(toaddMem != toadd) {
101 const HcalQIECoder* channelCoder = conditions->getHcalCoder (cell);
102 const HcalQIEShape* shape = conditions->getHcalShape (channelCoder);
104 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
edm::EDGetTokenT< ZDCDigiCollection > tok_input_hcal
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.
edm::EDGetTokenT< ZDCDigiCollection > tok_input_castor
static const int SubdetectorId
T const * product() const
std::vector< unsigned int > noiseTS() const