44 DetId detid(itdg->id());
53 aped = &
peds->endcap(hashedIndex);
54 aGain = &
gains->endcap(hashedIndex);
57 aped = &
peds->barrel(hashedIndex);
58 aGain = &
gains->barrel(hashedIndex);
61 pedVec[0] = aped->mean_x12;
71 float clockToNsConstant = 25.;
107 uncalibRecHit.
setJitter(crh.timeMax - 5 - 0.04);
109 uncalibRecHit.
setJitter(crh.timeMax - 5);
121 std::vector<double> dSet1 = {-2.390548, 3.553628, -17.62341, 67.67538, -133.213, 140.7432, -75.41106, 16.20277};
122 std::vector<double> dSet2 = {-2.015452, 3.130702, -12.3473, 41.88921, -82.83944, 91.01147, -50.35761, 11.05621};
144 "EcalUncalibRecHitWorkerRatio");
int hashedIndex() const
get a compact index for arrays
const edm::EventSetup & c
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
EcalUncalibRecHitRatioMethodAlgo< EBDataFrame > uncalibMaker_barrel_
void setJitter(float jitter)
edm::ESHandle< EcalPedestals > peds
edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > sampleMaskToken_
EcalUncalibRecHitWorkerRatio()
CalculatedRecHit getCalculatedRecHit()
std::vector< double > EEamplitudeFitParameters_
void push_back(T const &t)
ParameterDescriptionNode * addNode(ParameterDescriptionNode const &node)
edm::ESHandle< EcalGainRatios > gains
void setJitterError(float jitterErr)
edm::ESHandle< EcalSampleMask > sampleMaskHand_
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > gainsToken_
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > pedsToken_
int hashedIndex(int ieta, int iphi)
EcalGainRatioMap EcalGainRatios
void set(const edm::EventSetup &es) override
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const EcalSampleMask &sampleMask, const double *pedestals, const double *pedestalRMSes, const double *gainRatios, std::vector< double > &timeFitParameters, std::vector< double > &litudeFitParameters, std::pair< double, double > &timeFitLimits)
edm::ParameterSetDescription getAlgoDescription() override
double EEtimeConstantTerm_
EcalPedestalsMap EcalPedestals
std::vector< double > EEtimeFitParameters_
bool fixMGPAslew(const C &dataFrame)
T const * product() const
T getParameter(std::string const &) const
float gain12Over6() const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
double EBtimeConstantTerm_
EcalUncalibRecHitRatioMethodAlgo< EEDataFrame > uncalibMaker_endcap_
std::pair< double, double > EBtimeFitLimits_
#define DEFINE_EDM_PLUGIN(factory, type, name)
void setAmplitude(float amplitude)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::vector< double > EBtimeFitParameters_
std::vector< double > EBamplitudeFitParameters_
Power< A, B >::type pow(const A &a, const B &b)
std::pair< double, double > EEtimeFitLimits_