3 using namespace hcaldqm;
4 using namespace hcaldqm::constants;
7 :
DQHarvester(ps), _nBad(0), _nTotal(0), _reportSummaryMap(nullptr) {
32 DQHarvester::beginRun(r, es);
33 for (std::vector<DQClient*>::const_iterator it =
_vsumgen.begin(); it !=
_vsumgen.end(); ++it)
34 (*it)->beginRun(r, es);
59 for (uint32_t
i = 0;
i <
_vFEDs.size();
i++) {
76 for (uint32_t i = 0; i <
_vmarks.size(); i++) {
100 for (std::vector<uint32_t>::const_iterator it =
_vhashFEDs.begin(); it !=
_vhashFEDs.end(); ++it) {
103 for (uint32_t im = 0; im <
_vmarks.size(); im++)
129 MonitorElement* meOccupancy_HF_depth = ig.
get(
"Hcal/TPTask/OccupancyDataHF_depth/OccupancyDataHF_depth");
131 ig.
get(
"Hcal/TPTask/OccupancyEmulHFNoTDC_depth/OccupancyEmulHFNoTDC_depth");
132 MonitorElement* meOccupancy_HF_ieta = ig.
get(
"Hcal/TPTask/OccupancyDataHF_ieta/OccupancyDataHF_ieta");
134 ig.
get(
"Hcal/TPTask/OccupancyEmulHFNoTDC_ieta/OccupancyEmulHFNoTDC_ieta");
136 if (meOccupancy_HF_depth && meOccupancyNoTDC_HF_depth && meOccupancy_HF_ieta && meOccupancyNoTDC_HF_ieta) {
137 TH2F* hOccupancy_HF_depth = meOccupancy_HF_depth->
getTH2F();
138 TH2F* hOccupancyNoTDC_HF_depth = meOccupancyNoTDC_HF_depth->
getTH2F();
139 TH1D* hOccupancy_HF_ieta = meOccupancy_HF_ieta->
getTH1D();
140 TH1D* hOccupancyNoTDC_HF_ieta = meOccupancyNoTDC_HF_ieta->
getTH1D();
142 TH2F* hEfficiency_HF_depth = (TH2F*)hOccupancy_HF_depth->Clone();
143 hEfficiency_HF_depth->Divide(hOccupancyNoTDC_HF_depth);
144 TH1D* hEfficiency_HF_ieta = (TH1D*)hOccupancy_HF_ieta->Clone();
145 hEfficiency_HF_ieta->Divide(hOccupancyNoTDC_HF_ieta);
149 MonitorElement* meEfficiency_HF_depth = ib.
book2D(
"TDCCutEfficiency_depth", hEfficiency_HF_depth);
154 delete hEfficiency_HF_depth;
155 delete hEfficiency_HF_ieta;
ContainerXXX< uint32_t > _xQuality
T getUntrackedParameter(std::string const &, T const &) const
std::vector< uint32_t > _vhashFEDs
virtual TH2F * getTH2F() const
std::vector< bool > _vmarks
virtual void setCurrentFolder(std::string const &fullpath)
HcalOnlineHarvesting(edm::ParameterSet const &)
#define DEFINE_FWK_MODULE(type)
virtual CompactMap::const_iterator begin()
hcaldqm::Container2D _cKnownBadChannels_depth
virtual CompactMap::const_iterator end()
std::vector< std::string > _vnames
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
void _dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
MonitorElement * _reportSummaryMap
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
virtual MonitorElement * get(std::string const &fullpath) const
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
HcalElectronicsMap const * _emap
void beginRun(edm::Run const &, edm::EventSetup const &) override
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void initialize(std::string const &folder, hashfunctions::HashType, quantity::Quantity *, quantity::Quantity *, quantity::Quantity *qz=new quantity::ValueQuantity(quantity::fN), int debug=0)
virtual TH1D * getTH1D() const
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
void _dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
std::vector< hcaldqm::DQClient * > _vsumgen
MonitorElement * _runSummary
void fill(HcalDetId const &) override
std::vector< int > _vFEDs
std::vector< hcaldqm::ContainerSingle2D > _vcSummaryvsLS
void book(DQMStore::IBooker &, HcalElectronicsMap const *, std::string subsystem="Hcal", std::string aux="") override
Readout chain identification for Hcal.
virtual TH1 * getTH1() const