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