|
|
#include <EcalRecHitWorkerSimple.h>
|
uint32_t | setFlagBits (const std::vector< std::vector< uint32_t > > &map, const uint32_t &status) |
|
Definition at line 30 of file EcalRecHitWorkerSimple.h.
◆ EcalRecHitWorkerSimple()
Definition at line 8 of file EcalRecHitWorkerSimple.cc.
11 v_chstatus_ = StringToEnumValue<EcalChannelStatusCode::Code>(
12 ps.
getParameter<std::vector<std::string> >(
"ChannelStatusToBeExcluded"));
34 std::vector<std::string> recoflagbitsStrings =
p.getParameterNames();
37 for (
unsigned int i = 0;
i != recoflagbitsStrings.size(); ++
i) {
39 std::vector<std::string> dbstatus_s =
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) {
44 dbstatuses.push_back(dbstatus);
References agcToken_, c, chStatusToken_, EBLaserMAX_, EBLaserMIN_, ecal_dqm_sourceclient-live_cfg::EcalLaserDbService, EELaserMAX_, EELaserMIN_, flagmask_, edm::ParameterSet::getParameter(), mps_fire::i, icalToken_, itimeToken_, dqmiolumiharvest::j, EcalRecHit::kDead, killDeadChannels_, EcalRecHit::kKilled, EcalRecHit::kL1SpikeFlag, EcalRecHit::kNeighboursRecovered, EcalRecHit::kTowerRecovered, EcalRecHit::kTPSaturated, laserCorrection_, laserToken_, offtimeToken_, AlCaHLTBitMon_ParallelJobs::p, rechitMaker_, skipTimeCalib_, v_chstatus_, and v_DB_reco_flags_.
◆ ~EcalRecHitWorkerSimple()
EcalRecHitWorkerSimple::~EcalRecHitWorkerSimple |
( |
| ) |
|
|
override |
◆ run()
Implements EcalRecHitWorkerBaseClass.
Definition at line 73 of file EcalRecHitWorkerSimple.cc.
105 if (icalit != icalMap.
end()) {
106 icalconst = (*icalit);
108 edm::LogError(
"EcalRecHitError") <<
"No intercalib const found for xtal " << detid.
rawId()
109 <<
"! something wrong with EcalIntercalibConstants in your DB? ";
113 float lasercalib = 1.;
125 itimeconst = (*itime);
127 edm::LogError(
"EcalRecHitError") <<
"No time calib const found for xtal " << detid.
rawId()
128 <<
"! something wrong with EcalTimeCalibConstants in your DB? ";
135 icalconst * lasercalib,
136 (itimeconst + offsetTime),
144 result.push_back(myrechit);
References agc, chStatus, EBLaserMAX_, EcalBarrel, EcalEndcap, EELaserMAX_, EcalCondObjectContainer< T >::end(), spr::find(), EcalCondObjectContainer< T >::find(), flagmask_, EcalADCToGeVConstant::getEBValue(), EcalTimeOffsetConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), EcalTimeOffsetConstant::getEEValue(), EcalLaserDbService::getLaserCorrection(), ical, EcalUncalibratedRecHit::id(), itime, killDeadChannels_, EcalRecHit::kPoorCalib, laser, laserCorrection_, EcalRecHitSimpleAlgo::makeRecHit(), offtime, DetId::rawId(), rechitMaker_, mps_fire::result, EcalRecHitSimpleAlgo::setADCToGeVConstant(), EcalRecHit::setFlag(), setFlagBits(), skipTimeCalib_, DetId::subdetId(), edm::EventBase::time(), v_chstatus_, and v_DB_reco_flags_.
◆ set()
Implements EcalRecHitWorkerBaseClass.
Definition at line 59 of file EcalRecHitWorkerSimple.cc.
References agc, agcToken_, chStatus, chStatusToken_, edm::EventSetup::getHandle(), ical, icalToken_, itime, itimeToken_, laser, laserCorrection_, laserToken_, offtime, offtimeToken_, and skipTimeCalib_.
◆ setFlagBits()
uint32_t EcalRecHitWorkerSimple::setFlagBits |
( |
const std::vector< std::vector< uint32_t > > & |
map, |
|
|
const uint32_t & |
status |
|
) |
| |
|
protected |
◆ agc
◆ agcToken_
◆ chStatus
◆ chStatusToken_
◆ EBLaserMAX_
double EcalRecHitWorkerSimple::EBLaserMAX_ |
|
protected |
◆ EBLaserMIN_
double EcalRecHitWorkerSimple::EBLaserMIN_ |
|
protected |
◆ EELaserMAX_
double EcalRecHitWorkerSimple::EELaserMAX_ |
|
protected |
◆ EELaserMIN_
double EcalRecHitWorkerSimple::EELaserMIN_ |
|
protected |
◆ flagmask_
uint32_t EcalRecHitWorkerSimple::flagmask_ |
|
protected |
◆ ical
◆ icalToken_
◆ itime
◆ itimeToken_
◆ killDeadChannels_
bool EcalRecHitWorkerSimple::killDeadChannels_ |
|
protected |
◆ laser
◆ laserCorrection_
bool EcalRecHitWorkerSimple::laserCorrection_ |
|
protected |
◆ laserToken_
◆ offtime
◆ offtimeToken_
◆ rechitMaker_
◆ skipTimeCalib_
bool EcalRecHitWorkerSimple::skipTimeCalib_ |
|
protected |
◆ v_chstatus_
std::vector<int> EcalRecHitWorkerSimple::v_chstatus_ |
|
protected |
◆ v_DB_reco_flags_
std::vector<std::vector<uint32_t> > EcalRecHitWorkerSimple::v_DB_reco_flags_ |
|
protected |
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > icalToken_
const_iterator end() const
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > chStatusToken_
void setADCToGeVConstant(const float &value) override
make rechits from dataframes
edm::ESHandle< EcalTimeOffsetConstant > offtime
edm::ESHandle< EcalLaserDbService > laser
edm::Timestamp time() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
float EcalIntercalibConstant
EcalRecHit makeRecHit(const EcalUncalibratedRecHit &uncalibRH, const float &intercalibConstant, const float &timeIntercalib=0, const uint32_t &flags=0) const override
Compute parameters.
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > itimeToken_
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > agcToken_
const_iterator find(uint32_t rawId) const
EcalIntercalibConstantMap EcalIntercalibConstants
edm::ESHandle< EcalADCToGeVConstant > agc
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > offtimeToken_
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::ESHandle< EcalChannelStatus > chStatus
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > laserToken_
Log< level::Error, false > LogError
EcalChannelStatusMap EcalChannelStatus
edm::ESHandle< EcalIntercalibConstants > ical
float getLaserCorrection(DetId const &xid, edm::Timestamp const &iTime) const
constexpr uint32_t rawId() const
get the raw id
edm::ESHandle< EcalTimeCalibConstants > itime
EcalRecHitWorkerBaseClass(const edm::ParameterSet &, edm::ConsumesCollector &c)
T getParameter(std::string const &) const
std::vector< int > v_chstatus_
std::vector< Item >::const_iterator const_iterator
std::vector< std::vector< uint32_t > > v_DB_reco_flags_
EcalTimeCalibConstantMap EcalTimeCalibConstants
void setFlag(int flag)
set the flags (from Flags or ESFlags)
EcalRecHitSimpleAlgo * rechitMaker_
float EcalTimeCalibConstant
uint32_t setFlagBits(const std::vector< std::vector< uint32_t > > &map, const uint32_t &status)