55 edm::LogError(
"EcalRecHitError") <<
"No channel status found for xtal "
57 <<
"! something wrong with EcalChannelStatus in your DB? ";
70 uint32_t recoFlag = 0;
84 offsetTime =
offtime->getEEValue();
87 offsetTime =
offtime->getEBValue();
93 if( icalit!=icalMap.
end() ) {
94 icalconst = (*icalit);
96 edm::LogError(
"EcalRecHitError") <<
"No intercalib const found for xtal "
98 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
102 float lasercalib = 1.;
110 if( itime!=itimeMap.
end() ) {
111 itimeconst = (*itime);
113 edm::LogError(
"EcalRecHitError") <<
"No time calib const found for xtal "
115 <<
"! something wrong with EcalTimeCalibConstants in your DB? ";
T getParameter(std::string const &) const
edm::ESHandle< EcalADCToGeVConstant > agc
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)
std::vector< int > v_DB_reco_flags_
edm::ESHandle< EcalChannelStatus > chStatus
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)
uint32_t rawId() const
get the raw id
void set(const edm::EventSetup &es)
edm::ESHandle< EcalTimeCalibConstants > itime
uint16_t getStatusCode() const
virtual ~EcalRecHitWorkerSimple()
EcalRecHitSimpleAlgo * rechitMaker_
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< int > v_chstatus_
std::vector< Item >::const_iterator const_iterator
EcalRecHitWorkerSimple(const edm::ParameterSet &)
edm::ESHandle< EcalTimeOffsetConstant > offtime
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result)
float EcalTimeCalibConstant
const_iterator find(uint32_t rawId) const
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator end() const
edm::Timestamp time() const
edm::ESHandle< EcalIntercalibConstants > ical
float EcalIntercalibConstant
edm::ESHandle< EcalLaserDbService > laser