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 
18 
23 
26 
30 //
31 // class declaration
32 //
33 
35 public:
37 
38 
39  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
40 
41 
42 private:
43  virtual void beginJob() ;
44  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
45  void analyze(const edm::Event&, const edm::EventSetup&) override ;
46  virtual void endJob() ;
47 
48 
52 
53  std::vector<MonitorElement *> meEB_;
54  std::vector<MonitorElement *> meEE_;
55 
56  uint32_t pedestalSamples_ ; // number of presamples to be used for pedestal determination
57  bool checkSignal_; // avoid frames containing a signal
58  uint32_t sThresholdEB_ ; // if checkSignal = true threshold (in adc count) above which we'll assume
59  // there's signal and not just pedestal
60 
61  uint32_t sThresholdEE_ ;
62 
63  bool dynamicBooking_; // use old pedestal to book histograms
64  int fixedBookingCenterBin_; // if dynamicBooking_ = false, use this as bin center
65  int nBins_ ; // number of bins per histogram
66  std::string dqmDir_; // DQM directory where histograms are stored
67 
69 
70  // compare ADC values
71  static bool adc_compare(uint16_t a, uint16_t b) { return ( a&0xFFF ) < (b&0xFFF);}
72 };
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
edm::EDGetTokenT< BSTRecord > bstToken_
static bool adc_compare(uint16_t a, uint16_t b)
ECALpedestalPCLworker(const edm::ParameterSet &)
double b
Definition: hdecay.h:120
edm::EDGetTokenT< EBDigiCollection > digiTokenEB_
std::vector< MonitorElement * > meEB_
double a
Definition: hdecay.h:121
Definition: Run.h:42