75 v_chstatus_ = StringToEnumValue<EcalChannelStatusCode::Code>(
76 ps.
getParameter<std::vector<std::string> >(
"ChannelStatusToBeExcluded"));
100 std::vector<std::string> recoflagbitsStrings =
p.getParameterNames();
103 for (
unsigned int i = 0;
i != recoflagbitsStrings.size(); ++
i) {
105 std::vector<std::string> dbstatus_s =
p.getParameter<std::vector<std::string> >(recoflagbitsStrings[
i]);
106 std::vector<uint32_t> dbstatuses;
107 for (
unsigned int j = 0;
j != dbstatus_s.size(); ++
j) {
110 dbstatuses.push_back(dbstatus);
156 float offsetTime = 0;
171 if (icalit != icalMap.
end()) {
172 icalconst = (*icalit);
174 edm::LogError(
"EcalRecHitError") <<
"No intercalib const found for xtal " << detid.
rawId()
175 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
179 float lasercalib = 1.;
191 itimeconst = (*itime);
193 edm::LogError(
"EcalRecHitError") <<
"No time calib const found for xtal " << detid.
rawId()
194 <<
"! something wrong with EcalTimeCalibConstants in your DB? ";
201 icalconst * lasercalib,
202 (itimeconst + offsetTime),
210 result.push_back(myrechit);
218 for (
unsigned int i = 0;
i !=
map.size(); ++
i) {
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > itimeToken_
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > laserToken_
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_
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > offtimeToken_
void setFlag(int flag)
set the flags (from Flags or ESFlags)
edm::ESHandle< EcalChannelStatus > chStatus
Log< level::Error, false > LogError
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > icalToken_
edm::ESHandle< EcalTimeCalibConstants > itime
EcalChannelStatusMap EcalChannelStatus
~EcalRecHitWorkerSimple() override
edm::Timestamp time() const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
EcalRecHitSimpleAlgo * rechitMaker_
float getLaserCorrection(DetId const &xid, edm::Timestamp const &iTime) const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< int > v_chstatus_
const_iterator find(uint32_t rawId) const
void setADCToGeVConstant(const float &value) override
make rechits from dataframes
EcalTimeCalibConstantMap EcalTimeCalibConstants
constexpr uint32_t rawId() const
get the raw id
std::vector< Item >::const_iterator const_iterator
uint32_t setFlagBits(const std::vector< std::vector< uint32_t > > &map, const uint32_t &status)
EcalRecHit makeRecHit(const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant, const float &timeIntercalib=0, const uint32_t &flags=0) const override
Compute parameters.
edm::ESHandle< EcalTimeOffsetConstant > offtime
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > agcToken_
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusToken_
EcalIntercalibConstantMap EcalIntercalibConstants
float EcalTimeCalibConstant
#define DEFINE_EDM_PLUGIN(factory, type, name)
const_iterator end() const
bool run(const edm::Event &evt, const EcalUncalibratedRecHit &uncalibRH, EcalRecHitCollection &result) override
void set(const edm::EventSetup &es) override
edm::ESHandle< EcalIntercalibConstants > ical
float EcalIntercalibConstant
edm::ESHandle< EcalLaserDbService > laser