CMS 3D CMS Logo

ZdcSimpleRecAlgo_Run3.h
Go to the documentation of this file.
1 #ifndef ZDCSIMPLERECALGO_RUN3_H
2 #define ZDCSIMPLERECALGO_RUN3_H 1
3 
19 #include <memory>
20 
22 
40 public:
43  void initCorrectionMethod(const int method, const int ZdcSection);
44  void initTemplateFit(const std::vector<unsigned int>& bxTs,
45  const std::vector<double>& chargeRatios,
46  const int nTs,
47  const int ZdcSection);
48  void initRatioSubtraction(const float ratio, const float frac, const int ZdcSection);
49 
50  ZDCRecHit reco0(const QIE10DataFrame& digi,
51  const HcalCoder& coder,
52  const HcalCalibrations& calibs,
53  const HcalPedestal& effPeds,
54  const std::vector<unsigned int>& myNoiseTS,
55  const std::vector<unsigned int>& mySignalTS) const;
56  // reco method currently used to match L1 Trigger LUT energy formula
58  const std::vector<unsigned int>& myNoiseTS,
59  const std::vector<unsigned int>& mySignalTS,
60  const HcalCoder& coder,
61  const HcalCalibrations& calibs,
62  const HcalPedestal& effPeds) const;
63 
64 private:
66  int nTs_;
67  std::map<int, std::vector<double>> templateFitValues_; // Values[ZdcSection][Ts]
68  std::map<int, bool> templateFitValid_; // Values[ZdcSection]
69  std::map<int, float> ootpuRatio_; // Values[ZdcSection]
70  std::map<int, float> ootpuFrac_; // Values[ZdcSection]
71  std::map<int, int> correctionMethod_; // Values[ZdcSection]
72 };
73 
74 #endif
ZDCRecHit reconstruct(const QIE10DataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs, const HcalPedestal &effPeds) const
std::map< int, std::vector< double > > templateFitValues_
void initRatioSubtraction(const float ratio, const float frac, const int ZdcSection)
std::map< int, bool > templateFitValid_
std::map< int, int > correctionMethod_
ZdcSimpleRecAlgo_Run3(int recoMethod)
void initTemplateFit(const std::vector< unsigned int > &bxTs, const std::vector< double > &chargeRatios, const int nTs, const int ZdcSection)
std::map< int, float > ootpuRatio_
std::map< int, float > ootpuFrac_
void initCorrectionMethod(const int method, const int ZdcSection)
ZDCRecHit reco0(const QIE10DataFrame &digi, const HcalCoder &coder, const HcalCalibrations &calibs, const HcalPedestal &effPeds, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS) const