test
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 edm::EDConsumerBase

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
std::string myFile_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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:631
std::string myFile_
bool load(const std::string &filename, OpenRunDirs stripdirs=StripRunDirs, bool fileMustExist=true)
Definition: DQMStore.cc:2910
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.