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