18 reco_(conf.getParameter<bool>(
"correctForTimeslew"),
19 conf.getParameter<bool>(
"correctForPhaseContainment"),conf.getParameter<double>(
"correctionPhaseNS"),
20 conf.getParameter<int>(
"recoMethod"),
21 conf.getParameter<int>(
"lowGainOffset"),
22 conf.getParameter<double>(
"lowGainFrac")),
24 inputLabel_(conf.getParameter<edm::InputTag>(
"digiLabel")),
25 dropZSmarkedPassed_(conf.getParameter<bool>(
"dropZSmarkedPassed"))
27 std::string subd=conf.
getParameter<std::string>(
"Subdetector");
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;
61 std::vector<unsigned int> mySignalTS;
62 std::vector<unsigned int> myNoiseTS;
70 rec->reserve(digi->size());
72 unsigned int toaddMem = 0;
75 for (i=digi->begin(); i!=digi->end(); i++) {
80 if (i->zsMarkAndPass())
continue;
87 myNoiseTS = myParams->
noiseTS();
90 unsigned int toadd = mySignalTS.size();
91 if(toaddMem != toadd) {
96 const HcalQIECoder* channelCoder = conditions->getHcalCoder (cell);
98 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
std::vector< T >::const_iterator const_iterator
virtual void endRun(edm::Run &r, edm::EventSetup const &es)
ZdcSimpleReconstructor(const edm::ParameterSet &ps)
edm::InputTag inputLabel_
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)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
virtual void beginRun(edm::Run &r, edm::EventSetup const &es)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const int SubdetectorId
T const * product() const
std::vector< unsigned int > noiseTS() const
const Item * getValues(DetId fId) const