CMS 3D CMS Logo

Public Member Functions | Private Attributes

ReadMeFromFile Class Reference

#include <ReadMeFromFile.h>

Inheritance diagram for ReadMeFromFile:
edm::EDAnalyzer

List of all members.

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

DQMStoredbe_
std::string myFile_

Detailed Description

Definition at line 20 of file ReadMeFromFile.h.


Constructor & Destructor Documentation

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]

Destructor.

Definition at line 35 of file ReadMeFromFile.cc.

References dbe_.

                               {
  dbe_ = 0;
}

Member Function Documentation

void ReadMeFromFile::analyze ( const edm::Event iEvent,
const edm::EventSetup c 
) [virtual]

Analyze.

Implements edm::EDAnalyzer.

Definition at line 51 of file ReadMeFromFile.cc.

{}
void ReadMeFromFile::beginJob ( void  ) [virtual]

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 39 of file ReadMeFromFile.cc.

{}
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]

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file ReadMeFromFile.cc.

{}
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]

Reimplemented from edm::EDAnalyzer.

Definition at line 76 of file ReadMeFromFile.cc.

{}

Member Data Documentation

Definition at line 56 of file ReadMeFromFile.h.

std::string ReadMeFromFile::myFile_ [private]

Definition at line 54 of file ReadMeFromFile.h.