20 usesResource(
"DQMStore");
29 meESDcsFraction_ =
nullptr;
30 meESDcsActiveMap_ =
nullptr;
39 dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo");
41 sprintf(
histo,
"DCSSummary");
42 meESDcsFraction_ = dqmStore_->bookFloat(
histo);
43 meESDcsFraction_->Fill(-1.0);
45 sprintf(
histo,
"DCSSummaryMap");
46 meESDcsActiveMap_ = dqmStore_->book1D(
histo,
histo, 2, 0., 2.);
47 meESDcsActiveMap_->setAxisTitle(
"(ES+/ES-)", 1);
56 for (
int i = 0;
i < 2;
i++) {
57 meESDcsActiveMap_->setBinContent(
i + 1, -1.0);
65 meESDcsFraction_->Reset();
67 if (meESDcsActiveMap_)
68 meESDcsActiveMap_->Reset();
74 float ESpDcsStatus = 0;
75 float ESmDcsStatus = 0;
78 e.getByToken(dcsStatustoken_, dcsStatus);
80 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin(); dcsStatusItr != dcsStatus->end();
86 ESpDcsStatus = (ESpDcsStatus +
float(ievt_ - 1) * meESDcsActiveMap_->getBinContent(1)) /
float(ievt_);
87 ESmDcsStatus = (ESmDcsStatus +
float(ievt_ - 1) * meESDcsActiveMap_->getBinContent(2)) /
float(ievt_);
90 meESDcsActiveMap_->setBinContent(1, ESpDcsStatus);
91 meESDcsActiveMap_->setBinContent(2, ESmDcsStatus);
93 meESDcsFraction_->Fill((ESpDcsStatus + ESmDcsStatus) / 2.);
T getParameter(std::string const &) const
void beginJob(void) override
BeginJob.
T getUntrackedParameter(std::string const &, T const &) const
ESDcsInfoTask(const edm::ParameterSet &ps)
Constructor.
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Analyze.
Namespace of DDCMS conversion namespace.
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
EndLuminosityBlock.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup) override
BeginLuminosityBlock.
void endJob(void) override
EndJob.
~ESDcsInfoTask() override
Destructor.
void reset(double vett[256])