56 edm::LogError(
"EcalRecHitError") <<
"No channel status found for xtal "
58 <<
"! something wrong with EcalChannelStatus in your DB? ";
71 uint32_t recoFlag = 0;
85 offsetTime =
offtime->getEEValue();
88 offsetTime =
offtime->getEBValue();
94 if( icalit!=icalMap.
end() ) {
95 icalconst = (*icalit);
97 edm::LogError(
"EcalRecHitError") <<
"No intercalib const found for xtal "
99 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
103 float lasercalib = 1.;
111 if( itime!=itimeMap.
end() ) {
112 itimeconst = (*itime);
114 edm::LogError(
"EcalRecHitError") <<
"No time calib const found for xtal "
116 <<
"! something wrong with EcalTimeCalibConstants in your DB? ";
T getParameter(std::string const &) const
edm::ESHandle< EcalTimeCalibConstants > itime
virtual EcalRecHit makeRecHit(const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant, const float &timeIntercalib=0, const uint32_t &flags=0) const
Compute parameters.
void push_back(T const &t)
void setFlag(int flag)
set the flags (from Flags or ESFlags)
virtual ~EcalRecHitWorkerSimpleOld()
virtual void setADCToGeVConstant(const float &value)
make rechits from dataframes
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
EcalRecHitSimpleAlgo * rechitMaker_
edm::ESHandle< EcalLaserDbService > laser
uint32_t rawId() const
get the raw id
std::vector< int > v_DB_reco_flags_
uint16_t getStatusCode() const
edm::ESHandle< EcalADCToGeVConstant > agc
edm::ESHandle< EcalChannelStatus > chStatus
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< Item >::const_iterator const_iterator
void set(const edm::EventSetup &es)
edm::ESHandle< EcalTimeOffsetConstant > offtime
EcalRecHitWorkerSimpleOld(const edm::ParameterSet &, edm::ConsumesCollector &c)
float EcalTimeCalibConstant
std::vector< int > v_chstatus_
const_iterator find(uint32_t rawId) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator end() const
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result)
edm::ESHandle< EcalIntercalibConstants > ical
edm::Timestamp time() const
float EcalIntercalibConstant