CMS 3D CMS Logo

HcalHitReconstructor.h
Go to the documentation of this file.
1 #ifndef HCALHITRECONSTRUCTOR_H
2 #define HCALHITRECONSTRUCTOR_H 1
3 
4 #include <memory>
5 
10 
13 
18 
24 
33 
40 class HcalTopology;
42 class HcalRecoParamsRcd;
45 class HcalDbRecord;
49 
51 public:
52  explicit HcalHitReconstructor(const edm::ParameterSet& ps);
53  ~HcalHitReconstructor() override;
54 
55  void beginRun(edm::Run const& r, edm::EventSetup const& es) final;
56  void endRun(edm::Run const& r, edm::EventSetup const& es) final;
57  void produce(edm::Event& e, const edm::EventSetup& c) override;
58 
59 private:
60  typedef void (HcalSimpleRecAlgo::*SetCorrectionFcn)(std::shared_ptr<AbsOOTPileupCorrection>);
61 
69 
71  int subdet_;
77  //std::vector<std::string> channelStatusToDrop_;
78  bool correctTiming_; // turn on/off Ken Rossato's algorithm to fix timing
79  bool setNoiseFlags_; // turn on/off basic noise flags
80  bool setHSCPFlags_; // turn on/off HSCP noise flags
81  bool setSaturationFlags_; // turn on/off flag indicating ADC saturation
82  bool setTimingTrustFlags_; // turn on/off HF timing uncertainty flag
83  bool setPulseShapeFlags_; // turn on/off HBHE fit-based noise flags
84  bool setNegativeFlags_; // turn on/off HBHE negative noise flags
85  bool dropZSmarkedPassed_; // turn on/off dropping of zero suppression marked and passed digis
86 
88 
89  // legacy parameters for config-set values compatibility
92  bool tsFromDB_;
95 
96  // switch on/off leakage (to pre-sample) correction
98 
99  // Labels related to OOT pileup corrections
105 
106  std::unique_ptr<HcalRecoParams> paramTS_; // firstSample & sampleToAdd from DB
107  std::unique_ptr<HcalFlagHFDigiTimeParams> hFDigiTimeParams_; // HF DigiTime parameters
108 
110 
111  // ES tokens
118 };
119 
120 #endif
Handle.h
HcalHitReconstructor::endRun
void endRun(edm::Run const &r, edm::EventSetup const &es) final
Definition: HcalHitReconstructor.cc:207
HcalCalibrations.h
HcalRecoParams.h
HcalHitReconstructor::paramTS_
std::unique_ptr< HcalRecoParams > paramTS_
Definition: HcalHitReconstructor.h:106
HcalHitReconstructor::digiTimeToken_
edm::ESGetToken< HcalFlagHFDigiTimeParams, HcalFlagHFDigiTimeParamsRcd > digiTimeToken_
Definition: HcalHitReconstructor.h:114
HcalHitReconstructor::paramsToken_
edm::ESGetToken< HcalRecoParams, HcalRecoParamsRcd > paramsToken_
Definition: HcalHitReconstructor.h:113
HcalChannelQualityRcd
Definition: HcalChannelQualityRcd.h:8
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
HcalHitReconstructor::HFTimingTrustFlagSetter_
HFTimingTrustFlag * HFTimingTrustFlagSetter_
Definition: HcalHitReconstructor.h:64
HcalHF_S9S1algorithm
Definition: HcalHF_S9S1algorithm.h:21
HcalHitReconstructor::~HcalHitReconstructor
~HcalHitReconstructor() override
Definition: HcalHitReconstructor.cc:175
HcalTopology
Definition: HcalTopology.h:26
HcalHitReconstructor::SetCorrectionFcn
void(HcalSimpleRecAlgo::* SetCorrectionFcn)(std::shared_ptr< AbsOOTPileupCorrection >)
Definition: HcalHitReconstructor.h:60
EDProducer.h
HcalHitReconstructor::saturationFlagSetter_
HcalADCSaturationFlag * saturationFlagSetter_
Definition: HcalHitReconstructor.h:63
HcalHitReconstructor::setPulseShapeFlags_
bool setPulseShapeFlags_
Definition: HcalHitReconstructor.h:83
HcalHitReconstructor::subdet_
int subdet_
Definition: HcalHitReconstructor.h:71
HcalHitReconstructor::useLeakCorrection_
bool useLeakCorrection_
Definition: HcalHitReconstructor.h:97
HcalHitReconstructor::tsFromDB_
bool tsFromDB_
Definition: HcalHitReconstructor.h:92
ESGetToken.h
HcalHFStatusBitFromRecHits.h
HcalHitReconstructor::setHSCPFlags_
bool setHSCPFlags_
Definition: HcalHitReconstructor.h:80
HcalHitReconstructor::hFDigiTimeParams_
std::unique_ptr< HcalFlagHFDigiTimeParams > hFDigiTimeParams_
Definition: HcalHitReconstructor.h:107
HcalADCSaturationFlag.h
HcalHitReconstructor::setNoiseFlags_
bool setNoiseFlags_
Definition: HcalHitReconstructor.h:79
HcalHitReconstructor::conditionsToken_
edm::ESGetToken< HcalDbService, HcalDbRecord > conditionsToken_
Definition: HcalHitReconstructor.h:115
HcalHitReconstructor::recoParamsFromDB_
bool recoParamsFromDB_
Definition: HcalHitReconstructor.h:93
HcalTimingCorrector.h
HcalHitReconstructor::firstAuxTS_
int firstAuxTS_
Definition: HcalHitReconstructor.h:87
HcalDigiCollections.h
HcalHitReconstructor::mcOOTCorrectionName_
std::string mcOOTCorrectionName_
Definition: HcalHitReconstructor.h:102
HcalHitReconstructor::samplesToAdd_
int samplesToAdd_
Definition: HcalHitReconstructor.h:91
HcalSeverityLevelComputer
Definition: HcalSeverityLevelComputer.h:24
HcalHitReconstructor::dropZSmarkedPassed_
bool dropZSmarkedPassed_
Definition: HcalHitReconstructor.h:85
HcalHitReconstructor::firstSample_
int firstSample_
Definition: HcalHitReconstructor.h:90
HcalHitReconstructor::sevToken_
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
Definition: HcalHitReconstructor.h:117
HcalHitReconstructor::setSaturationFlags_
bool setSaturationFlags_
Definition: HcalHitReconstructor.h:81
HcalHitReconstructor::qualToken_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
Definition: HcalHitReconstructor.h:116
HcalHitReconstructor::digiTimeFromDB_
bool digiTimeFromDB_
Definition: HcalHitReconstructor.h:94
HcalHitReconstructor::HcalHitReconstructor
HcalHitReconstructor(const edm::ParameterSet &ps)
Definition: HcalHitReconstructor.cc:26
HcalFlagHFDigiTimeParams.h
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalHitReconstructor::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Definition: HcalHitReconstructor.cc:209
HcalHF_S9S1algorithm.h
edm::ParameterSet
Definition: ParameterSet.h:47
HcalHitReconstructor::hfS9S1_
HcalHF_S9S1algorithm * hfS9S1_
Definition: HcalHitReconstructor.h:66
HcalOtherSubdetector
HcalOtherSubdetector
Definition: HcalAssistant.h:40
HcalCaloFlagLabels.h
Event.h
HcalHitReconstructor::setNegativeFlags_
bool setNegativeFlags_
Definition: HcalHitReconstructor.h:84
HcalHitReconstructor::tok_ho_
edm::EDGetTokenT< HODigiCollection > tok_ho_
Definition: HcalHitReconstructor.h:74
HcalADCSaturationFlag
Definition: HcalADCSaturationFlag.h:23
HcalHitReconstructor::hfdigibit_
HcalHFStatusBitFromDigis * hfdigibit_
Definition: HcalHitReconstructor.h:65
HcalHitReconstructor::tok_calib_
edm::EDGetTokenT< HcalCalibDigiCollection > tok_calib_
Definition: HcalHitReconstructor.h:76
HcalHitReconstructor::dataOOTCorrectionCategory_
std::string dataOOTCorrectionCategory_
Definition: HcalHitReconstructor.h:101
HcalSimpleRecAlgo.h
HcalHFStatusBitFromDigis
Definition: HcalHFStatusBitFromDigis.h:18
HcalHitReconstructor::det_
DetId::Detector det_
Definition: HcalHitReconstructor.h:70
edm::stream::EDProducer
Definition: EDProducer.h:38
HFTimingTrustFlag
Definition: HFTimingTrustFlag.h:14
DetId::Detector
Detector
Definition: DetId.h:24
edm::EventSetup
Definition: EventSetup.h:58
HcalHF_PETalgorithm.h
HcalChannelStatus.h
HcalHitReconstructor::inputLabel_
edm::InputTag inputLabel_
Definition: HcalHitReconstructor.h:73
HcalRecoParam.h
HcalHitReconstructor::setPileupCorrection_
SetCorrectionFcn setPileupCorrection_
Definition: HcalHitReconstructor.h:104
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord >
HcalHitReconstructor::hfPET_
HcalHF_PETalgorithm * hfPET_
Definition: HcalHitReconstructor.h:68
HcalChannelQuality.h
alignCSCRings.r
r
Definition: alignCSCRings.py:93
HcalHitReconstructor::reco_
HcalSimpleRecAlgo reco_
Definition: HcalHitReconstructor.h:62
HcalHitReconstructor::setTimingTrustFlags_
bool setTimingTrustFlags_
Definition: HcalHitReconstructor.h:82
HcalFlagHFDigiTimeParams
Definition: HcalFlagHFDigiTimeParams.h:9
HcalHitReconstructor::hfS8S1_
HcalHF_S9S1algorithm * hfS8S1_
Definition: HcalHitReconstructor.h:67
HcalHFStatusBitFromDigis.h
HcalHitReconstructor::htopoToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_
Definition: HcalHitReconstructor.h:112
HcalHitReconstructor::subdetOther_
HcalOtherSubdetector subdetOther_
Definition: HcalHitReconstructor.h:72
HcalHitReconstructor::beginRun
void beginRun(edm::Run const &r, edm::EventSetup const &es) final
Definition: HcalHitReconstructor.cc:185
HcalRecoParamsRcd
Definition: HcalRecoParamsRcd.h:6
HFTimingTrustFlag.h
EventSetup.h
HcalSimpleRecAlgo
Definition: HcalSimpleRecAlgo.h:34
HcalHitReconstructor::corrName_
std::string corrName_
Definition: HcalHitReconstructor.h:109
HcalFlagHFDigiTimeParamsRcd
Definition: HcalFlagHFDigiTimeParamsRcd.h:6
funct::void
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
HcalHitReconstructor::correctTiming_
bool correctTiming_
Definition: HcalHitReconstructor.h:78
HcalDbService.h
HcalHitReconstructor::dataOOTCorrectionName_
std::string dataOOTCorrectionName_
Definition: HcalHitReconstructor.h:100
HcalHF_PETalgorithm
Definition: HcalHF_PETalgorithm.h:21
HcalHitReconstructor::cat_
std::string cat_
Definition: HcalHitReconstructor.h:109
HcalDbRecord
Definition: HcalDbRecord.h:30
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
edm::Event
Definition: Event.h:73
HcalHitReconstructor
Definition: HcalHitReconstructor.h:50
edm::InputTag
Definition: InputTag.h:15
HcalSeverityLevelComputerRcd
Definition: HcalSeverityLevelComputerRcd.h:23
HcalHitReconstructor::tok_hf_
edm::EDGetTokenT< HFDigiCollection > tok_hf_
Definition: HcalHitReconstructor.h:75
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HcalHitReconstructor::mcOOTCorrectionCategory_
std::string mcOOTCorrectionCategory_
Definition: HcalHitReconstructor.h:103