20 StringToEnumValue<EcalChannelStatusCode::Code>(ps.
getParameter<std::vector<std::string> >(
"ChannelStatusToBeExcluded"));
35 for (
unsigned int i=0;
i!=recoflagbitsStrings.size();++
i){
37 StringToEnumValue<EcalRecHit::Flags>(recoflagbitsStrings[
i]);
38 std::vector<std::string> dbstatus_s =
39 p.getParameter<std::vector<std::string> >(recoflagbitsStrings[
i]);
40 std::vector<uint32_t> dbstatuses;
41 for (
unsigned int j=0; j!= dbstatus_s.size(); ++j){
43 StringToEnumValue<EcalChannelStatusCode::Code>(dbstatus_s[j]);
44 dbstatuses.push_back(dbstatus);
88 std::vector<int>::const_iterator
res =
109 if( icalit!=icalMap.
end() ) {
110 icalconst = (*icalit);
112 edm::LogError(
"EcalRecHitError") <<
"No intercalib const found for xtal " 114 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
118 float lasercalib = 1.;
129 if( itime!=itimeMap.
end() ) {
130 itimeconst = (*itime);
132 edm::LogError(
"EcalRecHitError") <<
"No time calib const found for xtal " 134 <<
"! something wrong with EcalTimeCalibConstants in your DB? ";
142 icalconst * lasercalib,
143 (itimeconst + offsetTime),
161 for (
unsigned int i = 0;
i!=
map.size(); ++
i){
T getParameter(std::string const &) const
EcalRecHitWorkerSimple(const edm::ParameterSet &, edm::ConsumesCollector &c)
edm::ESHandle< EcalADCToGeVConstant > agc
std::vector< std::vector< uint32_t > > v_DB_reco_flags_
float getLaserCorrection(DetId const &xid, edm::Timestamp const &iTime) const
void push_back(T const &t)
void setFlag(int flag)
set the flags (from Flags or ESFlags)
edm::ESHandle< EcalChannelStatus > chStatus
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
edm::ESHandle< EcalTimeCalibConstants > itime
EcalRecHit makeRecHit(const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant, const float &timeIntercalib=0, const uint32_t &flags=0) const override
Compute parameters.
~EcalRecHitWorkerSimple() override
EcalRecHitSimpleAlgo * rechitMaker_
std::vector< std::string > getParameterNames() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
std::vector< int > v_chstatus_
void setADCToGeVConstant(const float &value) override
make rechits from dataframes
std::vector< Item >::const_iterator const_iterator
uint32_t setFlagBits(const std::vector< std::vector< uint32_t > > &map, const uint32_t &status)
edm::ESHandle< EcalTimeOffsetConstant > offtime
float EcalTimeCalibConstant
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) override
edm::Timestamp time() const
void set(const edm::EventSetup &es) override
edm::ESHandle< EcalIntercalibConstants > ical
float EcalIntercalibConstant
edm::ESHandle< EcalLaserDbService > laser