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
edm::ESHandle< EcalPedestals > peds
int hashedIndex() const
get a compact index for arrays
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
edm::ESHandle< EcalGainRatios > gains
EcalUncalibRecHitRecWeightsAlgo< EEDataFrame > uncalibMaker_endcap_
void push_back(T const &t)
EcalUncalibRecHitWorkerWeights(const edm::ParameterSet &, edm::ConsumesCollector &c)
const EcalWeightSet::EcalWeightMatrix * weights[2]
const unsigned int id() const
int hashedIndex(int ieta, int iphi)
void set(const edm::EventSetup &es)
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *pedestalsRMS, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalShapeBase &testbeamPulseShape)
Compute parameters.
const EBShape testbeamEBShape
const EEShape testbeamEEShape
EcalWeightMatrix & getWeightsAfterGainSwitch()
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
edm::ESHandle< EcalWeightXtalGroups > grps
EcalWeightMatrix & getWeightsBeforeGainSwitch()
float gain12Over6() const
math::Matrix< 3, 10 >::type EcalWeightMatrix
#define DEFINE_EDM_PLUGIN(factory, type, name)
edm::ESHandle< EcalTBWeights > wgts
EcalUncalibRecHitRecWeightsAlgo< EBDataFrame > uncalibMaker_barrel_