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 beginJob() override;
41  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
42  void analyze(const edm::Event &, const edm::EventSetup &) override;
43  void endJob() override;
44 
48 
49  std::vector<MonitorElement *> meEB_;
50  std::vector<MonitorElement *> meEE_;
51 
52  uint32_t pedestalSamples_; // number of presamples to be used for pedestal determination
53  bool checkSignal_; // avoid frames containing a signal
54  uint32_t sThresholdEB_; // if checkSignal = true threshold (in adc count) above which we'll assume
55  // there's signal and not just pedestal
56 
57  uint32_t sThresholdEE_;
58 
59  bool dynamicBooking_; // use old pedestal to book histograms
60  int fixedBookingCenterBin_; // if dynamicBooking_ = false, use this as bin center
61  int nBins_; // number of bins per histogram
62  std::string dqmDir_; // DQM directory where histograms are stored
63 
65 
66  // compare ADC values
67  static bool adc_compare(uint16_t a, uint16_t b) { return (a & 0xFFF) < (b & 0xFFF); }
68 };
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EEDigiCollection > digiTokenEE_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > meEE_
void analyze(const edm::Event &, const edm::EventSetup &) override
static bool adc_compare(uint16_t a, uint16_t b)
ECALpedestalPCLworker(const edm::ParameterSet &)
double b
Definition: hdecay.h:118
edm::EDGetTokenT< EBDigiCollection > digiTokenEB_
std::vector< MonitorElement * > meEB_
double a
Definition: hdecay.h:119
edm::EDGetTokenT< TCDSRecord > tcdsToken_
Definition: Run.h:45