87 DetId detid(itdg->id());
106 pedVec[0] = aped->mean_x12;
107 pedVec[1] = aped->mean_x6;
108 pedVec[2] = aped->mean_x1;
118 EcalTBWeights::EcalTBWeightMap::const_iterator wit;
119 wit = wgtsMap.find(std::make_pair(*gid, tdcid));
120 if (wit == wgtsMap.end()) {
122 <<
"No weights found for EcalGroupId: " << gid->
id() <<
" and EcalTDCId: " << tdcid
123 <<
"\n skipping digi with id: " << detid.rawId();
153 result.emplace_back(rhit);
161 result.emplace_back(rhit);
177 "EcalUncalibRecHitWorkerWeights");
edm::ESHandle< EcalWeightXtalGroups > grps_
const EcalTBWeightMap & getMap() const
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
std::map< std::pair< EcalXtalGroupId, EcalTDCId >, EcalWeightSet > EcalTBWeightMap
EcalUncalibRecHitRecWeightsAlgo< EEDataFrame > uncalibMaker_endcap_
void set(const edm::EventSetup &es) override
edm::ESHandle< EcalTBWeights > wgts_
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
math::Matrix< 3, 10 >::type EcalWeightMatrix
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > tokenPeds_
Log< level::Error, false > LogError
const EcalWeightSet::EcalWeightMatrix * weights[2]
int hashedIndex(int ieta, int iphi)
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > tokenGains_
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *pedestalsRMS, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalShapeBase &testbeamPulseShape)
Compute parameters.
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
EcalWeightMatrix & getWeightsAfterGainSwitch()
void setEventSetup(const edm::EventSetup &evtSetup, bool normalize=true)
edm::ESHandle< EcalPedestals > peds_
float gain12Over6() const
EcalWeightMatrix & getWeightsBeforeGainSwitch()
EcalUncalibRecHitWorkerWeights()=default
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > tokenWgts_
int hashedIndex() const
get a compact index for arrays
void setFlagBit(Flags flag)
#define DEFINE_EDM_PLUGIN(factory, type, name)
const EcalWeightSet::EcalChi2WeightMatrix * chi2mat[2]
edm::ESGetToken< EcalWeightXtalGroups, EcalWeightXtalGroupsRcd > tokenGrps_
edm::ESHandle< EcalGainRatios > gains_
edm::ParameterSetDescription getAlgoDescription() override
EcalUncalibRecHitRecWeightsAlgo< EBDataFrame > uncalibMaker_barrel_