#include <ReadMeFromFile.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
Analyze. | |
void | beginJob () |
BeginJob. | |
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
Begin Lumi block. | |
void | beginRun (const edm::Run &, const edm::EventSetup &) |
void | endJob () |
Endjob. | |
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) |
End Lumi Block. | |
void | endRun (const edm::Run &, const edm::EventSetup &) |
ReadMeFromFile (const edm::ParameterSet &ps) | |
Constructor. | |
virtual | ~ReadMeFromFile () |
Destructor. | |
Private Attributes | |
DQMStore * | dbe_ |
std::string | myFile_ |
Definition at line 20 of file ReadMeFromFile.h.
ReadMeFromFile::ReadMeFromFile | ( | const edm::ParameterSet & | ps | ) |
Constructor.
Definition at line 28 of file ReadMeFromFile.cc.
References edm::ParameterSet::getUntrackedParameter().
{ LogVerbatim ("readFile") << "[ReadMeFromFile]: Constructor"; myFile_= ps.getUntrackedParameter<string>("InputFile", "uffa.root"); }
ReadMeFromFile::~ReadMeFromFile | ( | ) | [virtual] |
void ReadMeFromFile::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | c | ||
) | [virtual] |
void ReadMeFromFile::beginJob | ( | void | ) | [virtual] |
void ReadMeFromFile::beginLuminosityBlock | ( | edm::LuminosityBlock const & | lumiSeg, |
edm::EventSetup const & | context | ||
) | [virtual] |
Begin Lumi block.
Reimplemented from edm::EDAnalyzer.
Definition at line 48 of file ReadMeFromFile.cc.
{}
void ReadMeFromFile::beginRun | ( | const edm::Run & | r, |
const edm::EventSetup & | iSetup | ||
) | [virtual] |
Reimplemented from edm::EDAnalyzer.
Definition at line 41 of file ReadMeFromFile.cc.
References dbe_, DQMStore::load(), cppFunctionSkipper::operator, and DQMStore::setVerbose().
{ LogVerbatim ("readfile") << "[ReadMeFromFile]: Begin run"; dbe_ = Service<DQMStore>().operator->(); dbe_->setVerbose(0); dbe_->load(myFile_); }
void ReadMeFromFile::endJob | ( | void | ) | [virtual] |
void ReadMeFromFile::endLuminosityBlock | ( | edm::LuminosityBlock const & | lumiSeg, |
edm::EventSetup const & | iSetup | ||
) | [virtual] |
End Lumi Block.
Reimplemented from edm::EDAnalyzer.
Definition at line 54 of file ReadMeFromFile.cc.
{ // // vector<string> prova = dbe_->getMEs(); // // for(unsigned int i=0; i<prova.size(); i++ ){ // // cout<<prova[i]<<endl; // // } // cout<<"End lumi block "<<endl; // dbe_->setCurrentFolder("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2"); // // std::vector<MonitorElement *> mes = dbe_->getAllContents("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2"); // MonitorElement * me = dbe_->get("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2/Occupancy_W+0_RB2out_S01_Backward"); // if(me) cout<<"FOUD "<<endl; // // if (not mes.empty()) { // // std::cout << "found " << mes.size() << " MonitorElements inside 'RPC/RecHits/Barrel/Wheel_0/sector_1/station_2':" << std::endl; // // for (size_t i = 0; i < mes.size(); ++i) { // // MonitorElement * me = mes[i]; // // std::cout << '\t' << me->getName() << std::endl; // // } // // } }
void ReadMeFromFile::endRun | ( | const edm::Run & | r, |
const edm::EventSetup & | c | ||
) | [virtual] |
DQMStore* ReadMeFromFile::dbe_ [private] |
Definition at line 56 of file ReadMeFromFile.h.
std::string ReadMeFromFile::myFile_ [private] |
Definition at line 54 of file ReadMeFromFile.h.