35 meESDcsActiveMap_ = 0;
49 dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo");
51 sprintf(histo,
"DCSSummary");
52 meESDcsFraction_ = dqmStore_->bookFloat(histo);
53 meESDcsFraction_->Fill(-1.0);
55 sprintf(histo,
"DCSSummaryMap");
56 meESDcsActiveMap_ = dqmStore_->book1D(histo,histo, 2, 0., 2.);
57 meESDcsActiveMap_->setAxisTitle(
"(ES+/ES-)", 1);
66 if ( enableCleanup_ ) this->
cleanup();
74 for(
int i = 0;
i < 2;
i++) {
75 meESDcsActiveMap_->setBinContent(
i+1 , -1.0);
86 if ( meESDcsFraction_ ) meESDcsFraction_->Reset();
88 if ( meESDcsActiveMap_ ) meESDcsActiveMap_->Reset();
97 dqmStore_->setCurrentFolder(prefixME_ +
"/EventInfo");
99 if ( meESDcsFraction_ ) dqmStore_->removeElement( meESDcsFraction_->getName() );
101 if ( meESDcsActiveMap_ ) dqmStore_->removeElement( meESDcsActiveMap_->getName() );
111 float ESpDcsStatus = 0;
112 float ESmDcsStatus = 0;
117 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin(); dcsStatusItr != dcsStatus->end(); ++dcsStatusItr) {
122 ESpDcsStatus = (ESpDcsStatus + float(ievt_-1)*meESDcsActiveMap_->getBinContent(1))/
float(ievt_);
123 ESmDcsStatus = (ESmDcsStatus + float(ievt_-1)*meESDcsActiveMap_->getBinContent(2))/
float(ievt_);
126 meESDcsActiveMap_->setBinContent(1, ESpDcsStatus);
127 meESDcsActiveMap_->setBinContent(2, ESmDcsStatus);
129 meESDcsFraction_->Fill( (ESpDcsStatus + ESmDcsStatus)/2. );
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
virtual ~ESDcsInfoTask()
Destructor.
#define DEFINE_FWK_MODULE(type)
static void cleanup(const Factory::MakerMap::value_type &v)
void beginJob(void)
BeginJob.
ESDcsInfoTask(const edm::ParameterSet &ps)
Constructor.
void endLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
EndLuminosityBlock.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void analyze(const edm::Event &e, const edm::EventSetup &c)
Analyze.
void beginLuminosityBlock(const edm::LuminosityBlock &lumiBlock, const edm::EventSetup &iSetup)
BeginLuminosityBlock.
void reset(double vett[256])
void cleanup(void)
Cleanup.