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
SaveDQMFile Class Reference

#include <SaveDQMFile.h>

Inheritance diagram for SaveDQMFile:
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 &)
 
 SaveDQMFile (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~SaveDQMFile ()
 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 SaveDQMFile.h.

Constructor & Destructor Documentation

SaveDQMFile::SaveDQMFile ( const edm::ParameterSet ps)

Constructor.

Definition at line 28 of file SaveDQMFile.cc.

References edm::ParameterSet::getUntrackedParameter().

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

Destructor.

Definition at line 35 of file SaveDQMFile.cc.

References dbe_.

35  {
36  dbe_ = 0;
37 }
DQMStore * dbe_
Definition: SaveDQMFile.h:56

Member Function Documentation

void SaveDQMFile::analyze ( const edm::Event iEvent,
const edm::EventSetup c 
)
virtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 48 of file SaveDQMFile.cc.

48 {}
void SaveDQMFile::beginJob ( void  )
virtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 39 of file SaveDQMFile.cc.

39 {}
void SaveDQMFile::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
virtual

Begin Lumi block.

Reimplemented from edm::EDAnalyzer.

Definition at line 46 of file SaveDQMFile.cc.

46 {}
void SaveDQMFile::beginRun ( const edm::Run r,
const edm::EventSetup iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 41 of file SaveDQMFile.cc.

References dbe_, cppFunctionSkipper::operator, and DQMStore::setVerbose().

41  {
43  dbe_->setVerbose(0);
44  }
DQMStore * dbe_
Definition: SaveDQMFile.h:56
void setVerbose(unsigned level)
Definition: DQMStore.cc:631
void SaveDQMFile::endJob ( void  )
virtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 60 of file SaveDQMFile.cc.

60 {}
void SaveDQMFile::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  iSetup 
)
virtual

End Lumi Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 50 of file SaveDQMFile.cc.

50 {}
void SaveDQMFile::endRun ( const edm::Run r,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 52 of file SaveDQMFile.cc.

References dbe_, and DQMStore::save().

52  {
53 
54  if(dbe_ && myFile_ != "") {
55  LogVerbatim ("savedqmfile") << "[SaveDQMFile]: Saving File "<<myFile_;
56  dbe_->save(myFile_) ;
57  }
58 }
DQMStore * dbe_
Definition: SaveDQMFile.h:56
std::string myFile_
Definition: SaveDQMFile.h:54
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
Definition: DQMStore.cc:2540

Member Data Documentation

DQMStore* SaveDQMFile::dbe_
private

Definition at line 56 of file SaveDQMFile.h.

std::string SaveDQMFile::myFile_
private

Definition at line 54 of file SaveDQMFile.h.