|
virtual void | beginRun (edm::Run const &r, edm::EventSetup const &es) overridefinal |
|
virtual void | endRun (edm::Run const &r, edm::EventSetup const &es) overridefinal |
|
virtual void | produce (edm::Event &e, const edm::EventSetup &c) overridefinal |
|
| ZdcHitReconstructor (const edm::ParameterSet &ps) |
|
virtual | ~ZdcHitReconstructor () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
| ProducerBase () |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription
const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
virtual | ~ProducerBase () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
- Author
- E. Garcia - CSU Based on HcalSimpleReconstructor.h by J. Mans
Definition at line 36 of file ZdcHitReconstructor.h.
Implements edm::EDProducer.
Definition at line 80 of file ZdcHitReconstructor.cc.
References AuxTSvec_, DetId::Calo, det_, HcalSeverityLevelComputer::dropChannel(), dropZSmarkedPassed_, edm::EventSetup::get(), edm::Event::getByToken(), HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), i, myobject, HcalLongRecoParam::noiseTS(), AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< class >::product(), edm::Event::put(), DetId::rawId(), reco_, ZdcSimpleRecAlgo::reconstruct(), saturationFlagSetter_, HcalADCSaturationFlag::setSaturationFlag(), setSaturationFlags_, HcalLongRecoParam::signalTS(), subdet_, HcalZDCDetId::SubdetectorId, and tok_input_.
95 std::vector<unsigned int> mySignalTS;
96 std::vector<unsigned int> myNoiseTS;
104 rec->reserve(digi->size());
107 for (i=digi->begin(); i!=digi->end(); i++) {
114 if (i->zsMarkAndPass())
continue;
116 const HcalQIECoder* channelCoder = conditions->getHcalCoder (cell);
117 const HcalQIEShape* shape = conditions->getHcalShape (channelCoder);
125 myNoiseTS = myParams->
noiseTS();
127 rec->push_back(
reco_.
reconstruct(*i,myNoiseTS,mySignalTS,coder,calibrations));
128 (rec->back()).setFlags(0);
135 for (
unsigned int xx=0; xx<
AuxTSvec_.size() && xx<4;++xx)
138 auxflag+=(i->sample(
AuxTSvec_[xx]).adc())<<(7*xx);
142 auxflag+=((i->sample(
AuxTSvec_[0]).capid())<<28);
143 (rec->back()).setAux(auxflag);
std::vector< unsigned int > signalTS() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< ZDCDataFrame >::const_iterator const_iterator
const Item * getValues(DetId fId, bool throwOnFail=true) const
uint32_t rawId() const
get the raw id
ZDCRecHit reconstruct(const ZDCDataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs) const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
HcalLongRecoParams * myobject
bool dropChannel(const uint32_t &mystatus) const
void setSaturationFlag(HBHERecHit &rechit, const HBHEDataFrame &digi)
HcalADCSaturationFlag * saturationFlagSetter_
static const int SubdetectorId
T const * product() const
std::vector< int > AuxTSvec_
edm::EDGetTokenT< ZDCDigiCollection > tok_input_
std::vector< unsigned int > noiseTS() const
uint32_t getValue() const