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 
31 //
32 // class declaration
33 //
34 
36 public:
37  explicit ECALpedestalPCLworker(const edm::ParameterSet &);
38 
39  static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
40 
41 private:
42  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
43  void analyze(const edm::Event &, const edm::EventSetup &) override;
44 
49 
50  std::vector<MonitorElement *> meEB_;
51  std::vector<MonitorElement *> meEE_;
52 
53  uint32_t pedestalSamples_; // number of presamples to be used for pedestal determination
54  bool checkSignal_; // avoid frames containing a signal
55  uint32_t sThresholdEB_; // if checkSignal = true threshold (in adc count) above which we'll assume
56  // there's signal and not just pedestal
57 
58  uint32_t sThresholdEE_;
59 
60  bool dynamicBooking_; // use old pedestal to book histograms
61  int fixedBookingCenterBin_; // if dynamicBooking_ = false, use this as bin center
62  int nBins_; // number of bins per histogram
63  std::string dqmDir_; // DQM directory where histograms are stored
64 
66 
67  // compare ADC values
68  static bool adc_compare(uint16_t a, uint16_t b) { return (a & 0xFFF) < (b & 0xFFF); }
69 };
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< EEDigiCollection > digiTokenEE_
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > pedestalToken_
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