CMS 3D CMS Logo

HcalSimpleRecAlgo.h
Go to the documentation of this file.
1 #ifndef HCALSIMPLERECALGO_H
2 #define HCALSIMPLERECALGO_H 1
3 
4 #include <memory>
5 
19 
21 
35 public:
37  HcalSimpleRecAlgo(bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs, edm::ConsumesCollector iC);
38 
39  void beginRun(edm::EventSetup const& es);
40  void endRun();
41 
42  void initPulseCorr(int toadd);
43 
44  // set RecoParams channel-by-channel.
45  void setRecoParams(
46  bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS);
47 
48  // usage of leak correction
49  void setLeakCorrection();
50 
51  // set OOT pileup corrections
52  void setHFPileupCorrection(std::shared_ptr<AbsOOTPileupCorrection> corr);
53  void setHOPileupCorrection(std::shared_ptr<AbsOOTPileupCorrection> corr);
54 
55  // Set bunch crossing information.
56  // This object will not manage the pointer.
57  void setBXInfo(const BunchXParameter* info, unsigned lenInfo);
58 
60  const HFDataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
62  const QIE10DataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
63 
65  const HODataFrame& digi, int first, int toadd, const HcalCoder& coder, const HcalCalibrations& calibs) const;
67  int first,
68  int toadd,
69  const HcalCoder& coder,
70  const HcalCalibrations& calibs) const;
71 
72 private:
75  float phaseNS_;
77  std::unique_ptr<HcalPulseContainmentManager> pulseCorr_;
78  int runnum_; // data run numer
81  const BunchXParameter* bunchCrossingInfo_;
83  std::shared_ptr<AbsOOTPileupCorrection> hbhePileupCorr_;
84  std::shared_ptr<AbsOOTPileupCorrection> hfPileupCorr_;
85  std::shared_ptr<AbsOOTPileupCorrection> hoPileupCorr_;
86 
88 
90 
92 };
93 
94 #endif
HcalSimpleRecAlgo::delayToken_
const edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord > delayToken_
Definition: HcalSimpleRecAlgo.h:76
HcalSimpleRecAlgo::runnum_
int runnum_
Definition: HcalSimpleRecAlgo.h:78
HFDataFrame.h
HcalCalibrations.h
HcalCalibDataFrame.h
HcalPulseContainmentManager.h
HORecHit
Definition: HORecHit.h:11
ZDCRecHit.h
HcalPulseShapes
Definition: HcalPulseShapes.h:22
HcalCoder.h
HcalSimpleRecAlgo::setBXInfo
void setBXInfo(const BunchXParameter *info, unsigned lenInfo)
Definition: HcalSimpleRecAlgo.cc:60
HODataFrame.h
HcalSimpleRecAlgo::setHFPileupCorrection
void setHFPileupCorrection(std::shared_ptr< AbsOOTPileupCorrection > corr)
Definition: HcalSimpleRecAlgo.cc:56
HcalTimeSlew.h
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
HcalSimpleRecAlgo::beginRun
void beginRun(edm::EventSetup const &es)
Definition: HcalSimpleRecAlgo.cc:35
dqmdumpme.first
first
Definition: dqmdumpme.py:55
HcalTimeSlew
Definition: HcalTimeSlew.h:19
HcalSimpleRecAlgo::phaseNS_
float phaseNS_
Definition: HcalSimpleRecAlgo.h:75
HFRecHit
Definition: HFRecHit.h:11
HcalSimpleRecAlgo::pulseCorr_
std::unique_ptr< HcalPulseContainmentManager > pulseCorr_
Definition: HcalSimpleRecAlgo.h:77
HcalSimpleRecAlgo::puCorrMethod_
int puCorrMethod_
Definition: HcalSimpleRecAlgo.h:89
HcalSimpleRecAlgo::setLeakCorrection_
bool setLeakCorrection_
Definition: HcalSimpleRecAlgo.h:79
HFRecHit.h
alignCSCRings.corr
dictionary corr
Definition: alignCSCRings.py:124
HcalSimpleRecAlgo::lenBunchCrossingInfo_
unsigned lenBunchCrossingInfo_
Definition: HcalSimpleRecAlgo.h:82
HcalSimpleRecAlgo::theHcalPulseShapes_
HcalPulseShapes theHcalPulseShapes_
Definition: HcalSimpleRecAlgo.h:87
HcalSimpleRecAlgo::bunchCrossingInfo_
const BunchXParameter * bunchCrossingInfo_
Definition: HcalSimpleRecAlgo.h:81
HcalCalibrations
Definition: HcalCalibrations.h:9
HcalSimpleRecAlgo::correctForTimeslew_
bool correctForTimeslew_
Definition: HcalSimpleRecAlgo.h:73
AbsOOTPileupCorrection.h
HcalCalibDataFrame
Definition: HcalCalibDataFrame.h:15
HcalSimpleRecAlgo::hbhePileupCorr_
std::shared_ptr< AbsOOTPileupCorrection > hbhePileupCorr_
Definition: HcalSimpleRecAlgo.h:83
HcalCalibRecHit
Definition: HcalCalibRecHit.h:10
HcalSimpleRecAlgo::initPulseCorr
void initPulseCorr(int toadd)
Definition: HcalSimpleRecAlgo.cc:43
QIE10DataFrame.h
HcalSimpleRecAlgo::reconstructQIE10
HFRecHit reconstructQIE10(const QIE10DataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
Definition: HcalSimpleRecAlgo.cc:421
HFDataFrame
Definition: HFDataFrame.h:14
ZDCDataFrame.h
HcalSimpleRecAlgo::setRecoParams
void setRecoParams(bool correctForTimeslew, bool correctForPulse, bool setLeakCorrection, int pileupCleaningID, float phaseNS)
Definition: HcalSimpleRecAlgo.cc:45
edm::EventSetup
Definition: EventSetup.h:57
HcalCalibRecHit.h
HcalSimpleRecAlgo::setLeakCorrection
void setLeakCorrection()
Definition: HcalSimpleRecAlgo.cc:54
edm::ESGetToken< HcalTimeSlew, HcalTimeSlewRecord >
castor_dqm_sourceclient-live_cfg.correctForTimeslew
correctForTimeslew
Definition: castor_dqm_sourceclient-live_cfg.py:66
QIE10DataFrame
Definition: QIE10DataFrame.h:11
HODataFrame
Definition: HODataFrame.h:14
HcalSimpleRecAlgo::setHOPileupCorrection
void setHOPileupCorrection(std::shared_ptr< AbsOOTPileupCorrection > corr)
Definition: HcalSimpleRecAlgo.cc:58
HcalCoder
Definition: HcalCoder.h:19
HcalSimpleRecAlgo
Definition: HcalSimpleRecAlgo.h:34
HORecHit.h
HcalSimpleRecAlgo::hoPileupCorr_
std::shared_ptr< AbsOOTPileupCorrection > hoPileupCorr_
Definition: HcalSimpleRecAlgo.h:85
HcalSimpleRecAlgo::pileupCleaningID_
int pileupCleaningID_
Definition: HcalSimpleRecAlgo.h:80
HcalSimpleRecAlgo::endRun
void endRun()
Definition: HcalSimpleRecAlgo.cc:41
HcalSimpleRecAlgo::hcalTimeSlew_delay_
const HcalTimeSlew * hcalTimeSlew_delay_
Definition: HcalSimpleRecAlgo.h:91
HcalSimpleRecAlgo::HcalSimpleRecAlgo
HcalSimpleRecAlgo(bool correctForTimeslew, bool correctForContainment, float fixedPhaseNs, edm::ConsumesCollector iC)
Definition: HcalSimpleRecAlgo.cc:20
HcalSimpleRecAlgo::correctForPulse_
bool correctForPulse_
Definition: HcalSimpleRecAlgo.h:74
HcalSimpleRecAlgo::hfPileupCorr_
std::shared_ptr< AbsOOTPileupCorrection > hfPileupCorr_
Definition: HcalSimpleRecAlgo.h:84
HcalSimpleRecAlgo::reconstruct
HFRecHit reconstruct(const HFDataFrame &digi, int first, int toadd, const HcalCoder &coder, const HcalCalibrations &calibs) const
Definition: HcalSimpleRecAlgo.cc:380
edm::ConsumesCollector
Definition: ConsumesCollector.h:45