17 reco_(conf.getParameter<bool>(
"correctForTimeslew"),
18 conf.getParameter<bool>(
"correctForPhaseContainment"),conf.getParameter<double>(
"correctionPhaseNS")),
20 inputLabel_(conf.getParameter<edm::InputTag>(
"digiLabel")),
21 dropZSmarkedPassed_(conf.getParameter<bool>(
"dropZSmarkedPassed")),
22 firstSample_(conf.getParameter<int>(
"firstSample")),
23 samplesToAdd_(conf.getParameter<int>(
"samplesToAdd")),
24 tsFromDB_(conf.getParameter<bool>(
"tsFromDB"))
27 std::string subd=conf.
getParameter<std::string>(
"Subdetector");
28 if (!strcasecmp(subd.c_str(),
"HBHE")) {
30 produces<HBHERecHitCollection>();
31 }
else if (!strcasecmp(subd.c_str(),
"HO")) {
33 produces<HORecHitCollection>();
34 }
else if (!strcasecmp(subd.c_str(),
"HF")) {
36 produces<HFRecHitCollection>();
38 std::cout <<
"HcalSimpleReconstructor is not associated with a specific subdetector!" << std::endl;
63 template<
class DIGICOLL,
class RECHITCOLL>
79 std::auto_ptr<RECHITCOLL> rec(
new RECHITCOLL);
80 rec->reserve(digi->size());
84 typename DIGICOLL::const_iterator
i;
85 for (i=digi->begin(); i!=digi->end(); i++) {
90 if (i->zsMarkAndPass())
continue;
93 const HcalQIECoder* channelCoder = conditions->getHcalCoder (cell);
118 process<HBHEDigiCollection, HBHERecHitCollection>(
e, eventSetup);
120 process<HFDigiCollection, HFRecHitCollection>(
e, eventSetup);
122 process<HODigiCollection, HORecHitCollection>(
e, eventSetup);
124 process<HcalCalibDigiCollection, HcalCalibRecHitCollection>(
e, eventSetup);
edm::InputTag inputLabel_
unsigned int firstSample() const
T getParameter(std::string const &) const
HBHERecHit reconstruct(const HBHEDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
HcalSimpleReconstructor(const edm::ParameterSet &ps)
virtual void endRun(edm::Run &r, edm::EventSetup const &es)
void beginRun(edm::EventSetup const &es)
virtual ~HcalSimpleReconstructor()
uint32_t rawId() const
get the raw id
HcalOtherSubdetector subdetOther_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
unsigned int samplesToAdd() const
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void process(edm::Event &e, const edm::EventSetup &c)
virtual void beginRun(edm::Run &r, edm::EventSetup const &es)
T const * product() const
const Item * getValues(DetId fId) const
virtual void produce(edm::Event &e, const edm::EventSetup &c)