CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ReadMeFromFile Class Reference

#include <ReadMeFromFile.h>

Inheritance diagram for ReadMeFromFile:
edm::EDAnalyzer

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 Analyze. More...
 
void beginJob ()
 BeginJob. More...
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 Begin Lumi block. More...
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
void endJob ()
 Endjob. More...
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 End Lumi Block. More...
 
void endRun (const edm::Run &, const edm::EventSetup &)
 
 ReadMeFromFile (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~ReadMeFromFile ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

DQMStoredbe_
 
std::string myFile_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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().

28  {
29 
30  LogVerbatim ("readFile") << "[ReadMeFromFile]: Constructor";
31 
32  myFile_= ps.getUntrackedParameter<string>("InputFile", "uffa.root");
33 }
T getUntrackedParameter(std::string const &, T const &) const
std::string myFile_
ReadMeFromFile::~ReadMeFromFile ( )
virtual

Destructor.

Definition at line 35 of file ReadMeFromFile.cc.

References dbe_.

35  {
36  dbe_ = 0;
37 }
DQMStore * dbe_

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.

51 {}
void ReadMeFromFile::beginJob ( void  )
virtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 39 of file ReadMeFromFile.cc.

39 {}
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.

48 {}
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().

41  {
42  LogVerbatim ("readfile") << "[ReadMeFromFile]: Begin run";
44  dbe_->setVerbose(0);
45  dbe_->load(myFile_);
46 }
DQMStore * dbe_
void setVerbose(unsigned level)
Definition: DQMStore.cc:393
std::string myFile_
bool load(const std::string &filename, OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
Definition: DQMStore.cc:2447
void ReadMeFromFile::endJob ( void  )
virtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file ReadMeFromFile.cc.

78 {}
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.

54  {
55 
56 // // vector<string> prova = dbe_->getMEs();
57 // // for(unsigned int i=0; i<prova.size(); i++ ){
58 // // cout<<prova[i]<<endl;
59 // // }
60 
61 // cout<<"End lumi block "<<endl;
62 
63 // dbe_->setCurrentFolder("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2");
64 // // std::vector<MonitorElement *> mes = dbe_->getAllContents("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2");
65 // MonitorElement * me = dbe_->get("RPC/RecHits/Barrel/Wheel_0/sector_1/station_2/Occupancy_W+0_RB2out_S01_Backward");
66 // if(me) cout<<"FOUD "<<endl;
67 // // if (not mes.empty()) {
68 // // std::cout << "found " << mes.size() << " MonitorElements inside 'RPC/RecHits/Barrel/Wheel_0/sector_1/station_2':" << std::endl;
69 // // for (size_t i = 0; i < mes.size(); ++i) {
70 // // MonitorElement * me = mes[i];
71 // // std::cout << '\t' << me->getName() << std::endl;
72 // // }
73 // // }
74 }
void ReadMeFromFile::endRun ( const edm::Run r,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 76 of file ReadMeFromFile.cc.

76 {}

Member Data Documentation

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.