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 
22 
25 
27 
32 
34 public:
35  explicit ECALpedestalPCLHarvester(const edm::ParameterSet& ps);
36  void endRun(edm::Run const& run, edm::EventSetup const& isetup) override;
37  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
38 
39 private:
40  void dqmEndJob(DQMStore::IBooker& ibooker_, DQMStore::IGetter& igetter_) override;
41 
42  void dqmPlots(const EcalPedestals& newpeds, DQMStore::IBooker& ibooker);
43 
47  bool checkStatusCode(const DetId& id);
48  bool isGood(const DetId& id);
49 
50  bool checkVariation(const EcalPedestalsMap& oldPedestals, const EcalPedestalsMap& newPedestals);
51  std::vector<int> chStatusToExclude_;
53 
56  bool checkAnomalies_; // whether or not to avoid creating sqlite file in case of many changed pedestals
57  double nSigma_; // threshold in sigmas to define a pedestal as changed
58  double thresholdAnomalies_; // threshold (fraction of changed pedestals) to avoid creation of sqlite file
59  std::string dqmDir_; // DQM directory where histograms are stored
60  std::string labelG6G1_; // DB label from which pedestals for G6 and G1 are to be copied
61  float threshDiffEB_; // if the new pedestals differs more than this from old, keep old
62  float threshDiffEE_; // same as above for EE. Stray channel protection
63  float threshChannelsAnalyzed_; // threshold for minimum percentage of channels analized to produce DQM plots
64 };
DQMEDHarvester.h
ECALpedestalPCLHarvester::checkVariation
bool checkVariation(const EcalPedestalsMap &oldPedestals, const EcalPedestalsMap &newPedestals)
Definition: ECALpedestalPCLHarvester.cc:194
EcalPedestals.h
ECALpedestalPCLHarvester::dqmDir_
std::string dqmDir_
Definition: ECALpedestalPCLHarvester.h:59
ECALpedestalPCLHarvester::threshChannelsAnalyzed_
float threshChannelsAnalyzed_
Definition: ECALpedestalPCLHarvester.h:63
edm::Run
Definition: Run.h:45
EBDetId.h
EEDetId.h
ECALpedestalPCLHarvester::nSigma_
double nSigma_
Definition: ECALpedestalPCLHarvester.h:57
ECALpedestalPCLHarvester::checkAnomalies_
bool checkAnomalies_
Definition: ECALpedestalPCLHarvester.h:56
DQMStore.h
ECALpedestalPCLHarvester::thresholdAnomalies_
double thresholdAnomalies_
Definition: ECALpedestalPCLHarvester.h:58
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
ECALpedestalPCLHarvester::chStatusToExclude_
std::vector< int > chStatusToExclude_
Definition: ECALpedestalPCLHarvester.h:51
ECALpedestalPCLHarvester::entriesEE_
int entriesEE_[EEDetId::kSizeForDenseIndexing]
Definition: ECALpedestalPCLHarvester.h:55
ECALpedestalPCLHarvester::minEntries_
int minEntries_
Definition: ECALpedestalPCLHarvester.h:52
DetId
Definition: DetId.h:17
MakerMacros.h
Service.h
ECALpedestalPCLHarvester::dqmPlots
void dqmPlots(const EcalPedestals &newpeds, DQMStore::IBooker &ibooker)
Definition: ECALpedestalPCLHarvester.cc:224
EEDetId::kSizeForDenseIndexing
Definition: EEDetId.h:329
ECALpedestalPCLHarvester::isGood
bool isGood(const DetId &id)
Definition: ECALpedestalPCLHarvester.cc:183
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
ECALpedestalPCLHarvester::dqmEndJob
void dqmEndJob(DQMStore::IBooker &ibooker_, DQMStore::IGetter &igetter_) override
Definition: ECALpedestalPCLHarvester.cc:33
edm::ParameterSet
Definition: ParameterSet.h:47
ECALpedestalPCLHarvester::ECALpedestalPCLHarvester
ECALpedestalPCLHarvester(const edm::ParameterSet &ps)
Definition: ECALpedestalPCLHarvester.cc:18
Event.h
ECALpedestalPCLHarvester::g6g1Pedestals_
const EcalPedestals * g6g1Pedestals_
Definition: ECALpedestalPCLHarvester.h:45
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ECALpedestalPCLHarvester::labelG6G1_
std::string labelG6G1_
Definition: ECALpedestalPCLHarvester.h:60
ECALpedestalPCLHarvester::entriesEB_
int entriesEB_[EBDetId::kSizeForDenseIndexing]
Definition: ECALpedestalPCLHarvester.h:54
ECALpedestalPCLHarvester::endRun
void endRun(edm::Run const &run, edm::EventSetup const &isetup) override
Definition: ECALpedestalPCLHarvester.cc:157
DQMEDHarvester
Definition: DQMEDHarvester.py:1
writedatasetfile.run
run
Definition: writedatasetfile.py:27
ECALpedestalPCLHarvester
Definition: ECALpedestalPCLHarvester.h:33
Frameworkfwd.h
dqm::implementation::IGetter
Definition: DQMStore.h:484
ECALpedestalPCLHarvester::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: ECALpedestalPCLHarvester.cc:151
EBDetId::kSizeForDenseIndexing
Definition: EBDetId.h:155
dqm::implementation::IBooker
Definition: DQMStore.h:43
ParameterSet.h
ECALpedestalPCLHarvester::channelStatus_
const EcalChannelStatus * channelStatus_
Definition: ECALpedestalPCLHarvester.h:46
EcalChannelStatus.h
ECALpedestalPCLHarvester::threshDiffEE_
float threshDiffEE_
Definition: ECALpedestalPCLHarvester.h:62
ECALpedestalPCLHarvester::threshDiffEB_
float threshDiffEB_
Definition: ECALpedestalPCLHarvester.h:61
ECALpedestalPCLHarvester::checkStatusCode
bool checkStatusCode(const DetId &id)
Definition: ECALpedestalPCLHarvester.cc:171
ECALpedestalPCLHarvester::currentPedestals_
const EcalPedestals * currentPedestals_
Definition: ECALpedestalPCLHarvester.h:44