CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalSimpleRecAlgo.h
Go to the documentation of this file.
1 #ifndef HCALSIMPLERECALGO_H
2 #define HCALSIMPLERECALGO_H 1
3 
4 #include <memory>
5 #include "boost/shared_ptr.hpp"
6 
22 
25 
27 
41 public:
44  bool correctForContainment, float fixedPhaseNs);
45 
46  void beginRun(edm::EventSetup const & es);
47  void endRun();
48 
49  void initPulseCorr(int toadd);
50 
51  // set RecoParams channel-by-channel.
52  void setRecoParams(bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS);
53 
54  // ugly hack related to HB- e-dependent corrections
55  void setForData (int runnum);
56 
57  // usage of leak correction
58  void setLeakCorrection();
59 
60  // set OOT pileup corrections
61  void setHBHEPileupCorrection(boost::shared_ptr<AbsOOTPileupCorrection> corr);
62  void setHFPileupCorrection(boost::shared_ptr<AbsOOTPileupCorrection> corr);
63  void setHOPileupCorrection(boost::shared_ptr<AbsOOTPileupCorrection> corr);
64 
65  // Set bunch crossing information.
66  // This object will not manage the pointer.
67  void setBXInfo(const BunchXParameter* info, unsigned lenInfo);
68 
69 
70  HBHERecHit reconstruct(const HBHEDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
71  HBHERecHit reconstructHBHEUpgrade(const HcalUpgradeDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
72 
73  HFRecHit reconstruct(const HFDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
74  HFRecHit reconstructHFUpgrade(const HcalUpgradeDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
75 
76  HORecHit reconstruct(const HODataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
77  HcalCalibRecHit reconstruct(const HcalCalibDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
78 
79  void setpuCorrMethod(int method){
81  if( puCorrMethod_ == 2 )
82  psFitOOTpuCorr_ = std::auto_ptr<PulseShapeFitOOTPileupCorrection>(new PulseShapeFitOOTPileupCorrection());
83  }
84 
85  void setpuCorrParams(bool iPedestalConstraint, bool iTimeConstraint,bool iAddPulseJitter,bool iUnConstrainedFit,bool iApplyTimeSlew,
86  double iTS4Min, double iTS4Max, double iPulseJitter,double iTimeMean,double iTimeSig,double iPedMean,double iPedSig,
87  double iNoise,double iTMin,double iTMax,
88  double its3Chi2,double its4Chi2,double its345Chi2,double iChargeThreshold, int iFitTimes);
89  void setMeth3Params(int iPedSubMethod, float iPedSubThreshold, int iTimeSlewParsType, std::vector<double> iTimeSlewPars, double irespCorrM3);
90 
91 private:
94  float phaseNS_;
95  std::auto_ptr<HcalPulseContainmentManager> pulseCorr_;
96  int runnum_; // data run numer
99  const BunchXParameter* bunchCrossingInfo_;
101  boost::shared_ptr<AbsOOTPileupCorrection> hbhePileupCorr_;
102  boost::shared_ptr<AbsOOTPileupCorrection> hfPileupCorr_;
103  boost::shared_ptr<AbsOOTPileupCorrection> hoPileupCorr_;
104 
106 
108 
109  std::auto_ptr<PulseShapeFitOOTPileupCorrection> psFitOOTpuCorr_;
110 
111  std::auto_ptr<PedestalSub> pedSubFxn_;
112 
113  // S.Brandt Feb19 : Add a pointer to the HLT algo
114  std::auto_ptr<HcalDeterministicFit> hltOOTpuCorr_;
115 };
116 
117 #endif
void setMeth3Params(int iPedSubMethod, float iPedSubThreshold, int iTimeSlewParsType, std::vector< double > iTimeSlewPars, double irespCorrM3)
static const TGPicture * info(bool iBackgroundIsBlack)
HBHERecHit reconstruct(const HBHEDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
void beginRun(edm::EventSetup const &es)
void setHOPileupCorrection(boost::shared_ptr< AbsOOTPileupCorrection > corr)
HcalPulseShapes theHcalPulseShapes_
const BunchXParameter * bunchCrossingInfo_
boost::shared_ptr< AbsOOTPileupCorrection > hoPileupCorr_
void setBXInfo(const BunchXParameter *info, unsigned lenInfo)
boost::shared_ptr< AbsOOTPileupCorrection > hbhePileupCorr_
unsigned lenBunchCrossingInfo_
HFRecHit reconstructHFUpgrade(const HcalUpgradeDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
void initPulseCorr(int toadd)
HcalSimpleRecAlgo(bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs)
std::auto_ptr< HcalPulseContainmentManager > pulseCorr_
std::auto_ptr< PulseShapeFitOOTPileupCorrection > psFitOOTpuCorr_
JetCorrectorParameters corr
Definition: classes.h:5
void setRecoParams(bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS)
std::auto_ptr< PedestalSub > pedSubFxn_
void setHBHEPileupCorrection(boost::shared_ptr< AbsOOTPileupCorrection > corr)
void setForData(int runnum)
HBHERecHit reconstructHBHEUpgrade(const HcalUpgradeDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
boost::shared_ptr< AbsOOTPileupCorrection > hfPileupCorr_
void setpuCorrMethod(int method)
tuple runnum
Definition: summaryLumi.py:210
std::auto_ptr< HcalDeterministicFit > hltOOTpuCorr_
void setHFPileupCorrection(boost::shared_ptr< AbsOOTPileupCorrection > corr)
void setpuCorrParams(bool iPedestalConstraint, bool iTimeConstraint, bool iAddPulseJitter, bool iUnConstrainedFit, bool iApplyTimeSlew, double iTS4Min, double iTS4Max, double iPulseJitter, double iTimeMean, double iTimeSig, double iPedMean, double iPedSig, double iNoise, double iTMin, double iTMax, double its3Chi2, double its4Chi2, double its345Chi2, double iChargeThreshold, int iFitTimes)