CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalUncalibRecHitWorkerGlobal.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitRecWorkerGlobal_hh
2 #define RecoLocalCalo_EcalRecProducers_EcalUncalibRecHitRecWorkerGlobal_hh
3 
27 
28 
29 namespace edm {
30  class Event;
31  class EventSetup;
32  class ParameterSet;
33 }
34 
36 
37  public:
40 
41  void set(const edm::EventSetup& es);
43 
44  protected:
45 
46  double pedVec[3];
47  double pedRMSVec[3];
48  double gainRatios[3];
49 
52 
53  template < class C > int isSaturated(const C & digi);
54 
55  double timeCorrectionEB(float ampliEB);
56  double timeCorrectionEE(float ampliEE);
57 
58  // weights method
65  const EEShape testbeamEEShape; // used in the chi2
66  const EBShape testbeamEBShape; // can be replaced by simple shape arrays of float in the future
67 
68  // ratio method
69  std::vector<double> EBtimeFitParameters_;
70  std::vector<double> EEtimeFitParameters_;
71  std::vector<double> EBamplitudeFitParameters_;
72  std::vector<double> EEamplitudeFitParameters_;
73  std::pair<double,double> EBtimeFitLimits_;
74  std::pair<double,double> EEtimeFitLimits_;
77  std::vector<double> EBtimeCorrAmplitudeBins_;
78  std::vector<double> EBtimeCorrShiftBins_;
79  std::vector<double> EEtimeCorrAmplitudeBins_;
80  std::vector<double> EEtimeCorrShiftBins_;
83 
85  double EBtimeNconst_;
87  double EEtimeNconst_;
99 
100  // leading edge method
102  std::vector<double> ebPulseShape_;
103  std::vector<double> eePulseShape_;
106 
107  // chi2 method
112  std::vector<double> EBchi2Parameters_;
113  std::vector<double> EEchi2Parameters_;
114 };
115 
116 #endif
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
EcalUncalibRecHitWorkerGlobal(const edm::ParameterSet &)
std::pair< double, double > EBtimeFitLimits_
EcalUncalibRecHitRecWeightsAlgo< EBDataFrame > weightsMethod_barrel_
std::pair< double, double > EEtimeFitLimits_
EcalUncalibRecHitRatioMethodAlgo< EEDataFrame > ratioMethod_endcap_
EcalUncalibRecHitLeadingEdgeAlgo< EBDataFrame > leadingEdgeMethod_barrel_
EcalUncalibRecHitRatioMethodAlgo< EBDataFrame > ratioMethod_barrel_
edm::ESHandle< EcalGainRatios > gains
EcalUncalibRecHitLeadingEdgeAlgo< EEDataFrame > leadingEdgeMethod_endcap_
edm::ESHandle< EcalPedestals > peds
tuple result
Definition: query.py:137
edm::ESHandle< EcalTBWeights > wgts
edm::ESHandle< EcalWeightXtalGroups > grps
Definition: EBShape.h:6
math::Matrix< 10, 10 >::type EcalChi2WeightMatrix
Definition: EcalWeightSet.h:21
const EcalWeightSet::EcalChi2WeightMatrix * chi2mat[2]
const EcalWeightSet::EcalWeightMatrix * weights[2]
void set(const edm::EventSetup &es)
edm::ESHandle< EcalTimeCalibConstants > itime
EcalUncalibRecHitRecWeightsAlgo< EEDataFrame > weightsMethod_endcap_
math::Matrix< 3, 10 >::type EcalWeightMatrix
Definition: EcalWeightSet.h:20
Definition: EEShape.h:6