CMS 3D CMS Logo

ECALpedestalPCLworker.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calibration/EcalCalibAlgos
4 // Class: ECALpedestalPCLworker
5 //
12 //
13 // Original Author: Stefano Argiro
14 // Created: Wed, 22 Mar 2017 14:46:48 GMT
15 //
16 //
17 
21 
24 
29 //
30 // class declaration
31 //
32 
34 public:
35  explicit ECALpedestalPCLworker(const edm::ParameterSet &);
36 
37  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
38 
39 private:
40  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
41  void analyze(const edm::Event &, const edm::EventSetup &) override;
42 
46 
47  std::vector<MonitorElement *> meEB_;
48  std::vector<MonitorElement *> meEE_;
49 
50  uint32_t pedestalSamples_; // number of presamples to be used for pedestal determination
51  bool checkSignal_; // avoid frames containing a signal
52  uint32_t sThresholdEB_; // if checkSignal = true threshold (in adc count) above which we'll assume
53  // there's signal and not just pedestal
54 
55  uint32_t sThresholdEE_;
56 
57  bool dynamicBooking_; // use old pedestal to book histograms
58  int fixedBookingCenterBin_; // if dynamicBooking_ = false, use this as bin center
59  int nBins_; // number of bins per histogram
60  std::string dqmDir_; // DQM directory where histograms are stored
61 
63 
64  // compare ADC values
65  static bool adc_compare(uint16_t a, uint16_t b) { return (a & 0xFFF) < (b & 0xFFF); }
66 };
ECALpedestalPCLworker::nBins_
int nBins_
Definition: ECALpedestalPCLworker.h:59
BSTRecord.h
edm::Run
Definition: Run.h:45
edm::EDGetTokenT< EBDigiCollection >
DQMStore.h
ECALpedestalPCLworker::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: ECALpedestalPCLworker.cc:99
ECALpedestalPCLworker::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: ECALpedestalPCLworker.cc:105
MakerMacros.h
ECALpedestalPCLworker
Definition: ECALpedestalPCLworker.h:33
ECALpedestalPCLworker::digiTokenEB_
edm::EDGetTokenT< EBDigiCollection > digiTokenEB_
Definition: ECALpedestalPCLworker.h:43
TCDSRecord.h
EcalDigiCollections.h
ECALpedestalPCLworker::tcdsToken_
edm::EDGetTokenT< TCDSRecord > tcdsToken_
Definition: ECALpedestalPCLworker.h:45
b
double b
Definition: hdecay.h:118
ECALpedestalPCLworker::meEE_
std::vector< MonitorElement * > meEE_
Definition: ECALpedestalPCLworker.h:48
DQMEDAnalyzer.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
ECALpedestalPCLworker::meEB_
std::vector< MonitorElement * > meEB_
Definition: ECALpedestalPCLworker.h:47
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
ECALpedestalPCLworker::adc_compare
static bool adc_compare(uint16_t a, uint16_t b)
Definition: ECALpedestalPCLworker.h:65
Event.h
ECALpedestalPCLworker::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: ECALpedestalPCLworker.cc:37
ECALpedestalPCLworker::sThresholdEB_
uint32_t sThresholdEB_
Definition: ECALpedestalPCLworker.h:52
ECALpedestalPCLworker::requireStableBeam_
bool requireStableBeam_
Definition: ECALpedestalPCLworker.h:62
edm::EventSetup
Definition: EventSetup.h:58
ECALpedestalPCLworker::sThresholdEE_
uint32_t sThresholdEE_
Definition: ECALpedestalPCLworker.h:55
ECALpedestalPCLworker::dqmDir_
std::string dqmDir_
Definition: ECALpedestalPCLworker.h:60
Frameworkfwd.h
ECALpedestalPCLworker::fixedBookingCenterBin_
int fixedBookingCenterBin_
Definition: ECALpedestalPCLworker.h:58
dqm::implementation::IBooker
Definition: DQMStore.h:43
ECALpedestalPCLworker::dynamicBooking_
bool dynamicBooking_
Definition: ECALpedestalPCLworker.h:57
ParameterSet.h
edm::Event
Definition: Event.h:73
ECALpedestalPCLworker::pedestalSamples_
uint32_t pedestalSamples_
Definition: ECALpedestalPCLworker.h:50
ECALpedestalPCLworker::checkSignal_
bool checkSignal_
Definition: ECALpedestalPCLworker.h:51
ECALpedestalPCLworker::digiTokenEE_
edm::EDGetTokenT< EEDigiCollection > digiTokenEE_
Definition: ECALpedestalPCLworker.h:44
ECALpedestalPCLworker::ECALpedestalPCLworker
ECALpedestalPCLworker(const edm::ParameterSet &)
Definition: ECALpedestalPCLworker.cc:12