CMS 3D CMS Logo

ECALpedestalPCLHarvester.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Calibration/EcalCalibAlgos
4 // Class: ECALpedestalPCLHarvester
5 //
12 //
13 // Original Author: Stefano Argiro
14 // Created: Wed, 22 Mar 2017 14:46:48 GMT
15 //
16 //
17 
18 
24 
27 
29 
32 
34  public:
35  explicit ECALpedestalPCLHarvester(const edm::ParameterSet& ps);
36  virtual void endRun(edm::Run const& run, edm::EventSetup const & isetup);
37  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
38 
39 
40  private:
41 
42  virtual void dqmEndJob(DQMStore::IBooker& ibooker_, DQMStore::IGetter& igetter_) ;
45  bool checkStatusCode(const DetId& id);
46  bool checkVariation(const EcalPedestalsMap& oldPedestals, const EcalPedestalsMap& newPedestals);
47  std::vector<int> chStatusToExclude_;
49 
50  bool checkAnomalies_ ; // whether or not to avoid creating sqlite file in case of many changed pedestals
51  double nSigma_; // threshold in sigmas to define a pedestal as changed
52  double thresholdAnomalies_; // threshold (fraction of changed pedestals) to avoid creation of sqlite file
53  std::string dqmDir_; // DQM directory where histograms are stored
54 };
bool checkVariation(const EcalPedestalsMap &oldPedestals, const EcalPedestalsMap &newPedestals)
virtual void endRun(edm::Run const &run, edm::EventSetup const &isetup)
ECALpedestalPCLHarvester(const edm::ParameterSet &ps)
std::vector< int > chStatusToExclude_
Definition: DetId.h:18
const EcalChannelStatus * channelStatus_
bool checkStatusCode(const DetId &id)
const EcalPedestals * currentPedestals_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Run.h:42
virtual void dqmEndJob(DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_)