41 aped = &
peds->endcap(hashedIndex);
42 aGain = &
gains->endcap(hashedIndex);
43 gid = &
grps->endcap(hashedIndex);
46 aped = &
peds->barrel(hashedIndex);
47 aGain = &
gains->barrel(hashedIndex);
48 gid = &
grps->barrel(hashedIndex);
51 pedVec[0] = aped->mean_x12;
63 EcalTBWeights::EcalTBWeightMap::const_iterator wit;
64 wit = wgtsMap.find( std::make_pair(*gid,tdcid) );
65 if( wit == wgtsMap.end() ) {
66 edm::LogError(
"EcalUncalibRecHitError") <<
"No weights found for EcalGroupId: "
67 << gid->
id() <<
" and EcalTDCId: " << tdcid
68 <<
"\n skipping digi with id: " <<
detid.rawId();
std::map< std::pair< EcalXtalGroupId, EcalTDCId >, EcalWeightSet > EcalTBWeightMap
int hashedIndex() const
get a compact index for arrays
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
edm::ESHandle< EcalWeightXtalGroups > grps
const EcalWeightSet::EcalWeightMatrix * weights[2]
edm::ESHandle< EcalPedestals > peds
void push_back(T const &t)
EcalUncalibRecHitWorkerWeightsOld(const edm::ParameterSet &)
const unsigned int id() const
int hashedIndex(int ieta, int iphi)
EcalUncalibRecHitRecWeightsAlgo< EEDataFrame > uncalibMaker_endcap_
const EEShape testbeamEEShape
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *pedestalsRMS, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalShapeBase &testbeamPulseShape)
Compute parameters.
EcalWeightMatrix & getWeightsAfterGainSwitch()
EcalWeightMatrix & getWeightsBeforeGainSwitch()
const EBShape testbeamEBShape
edm::ESHandle< EcalTBWeights > wgts
float gain12Over6() const
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
EcalUncalibRecHitRecWeightsAlgo< EBDataFrame > uncalibMaker_barrel_
math::Matrix< 3, 10 >::type EcalWeightMatrix
#define DEFINE_EDM_PLUGIN(factory, type, name)
void set(const edm::EventSetup &es)
edm::ESHandle< EcalGainRatios > gains