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_) ;
43 
44  void dqmPlots(const EcalPedestals& newpeds, DQMStore::IBooker& ibooker);
45 
48  bool checkStatusCode(const DetId& id);
49  bool checkVariation(const EcalPedestalsMap& oldPedestals, const EcalPedestalsMap& newPedestals);
50  std::vector<int> chStatusToExclude_;
52 
53  bool checkAnomalies_ ; // whether or not to avoid creating sqlite file in case of many changed pedestals
54  double nSigma_; // threshold in sigmas to define a pedestal as changed
55  double thresholdAnomalies_; // threshold (fraction of changed pedestals) to avoid creation of sqlite file
56  std::string dqmDir_; // DQM directory where histograms are stored
57 
58 
59 };
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_
void dqmPlots(const EcalPedestals &newpeds, DQMStore::IBooker &ibooker)
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_)