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

#include <JetFileSaver.h>

Inheritance diagram for JetFileSaver:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
 JetFileSaver (const edm::ParameterSet &)
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
std::map< std::string,
MonitorElement * > 
me
 
std::string outputFile_
 

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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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 13 of file JetFileSaver.h.

Constructor & Destructor Documentation

JetFileSaver::JetFileSaver ( const edm::ParameterSet iConfig)
explicit

Definition at line 23 of file JetFileSaver.cc.

References edm::ParameterSet::getUntrackedParameter(), outputFile_, and AlCaHLTBitMon_QueryRunRegistry::string.

24 {
25  outputFile_ = iConfig.getUntrackedParameter<std::string>("OutputFile");
26  if (outputFile_.size() > 0)
27  edm::LogInfo("OutputInfo") << " Jet Task histograms will be saved to '" << outputFile_.c_str() << "'";
28  else edm::LogInfo("OutputInfo") << " Jet Task histograms will NOT be saved";
29 
30 }
T getUntrackedParameter(std::string const &, T const &) const
std::string outputFile_
Definition: JetFileSaver.h:29

Member Function Documentation

void JetFileSaver::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 39 of file JetFileSaver.cc.

40 {
41 }
void JetFileSaver::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 32 of file JetFileSaver.cc.

References dbe_, and cppFunctionSkipper::operator.

33 {
34  // get ahold of back-end interface
36 
37 }
DQMStore * dbe_
Definition: JetFileSaver.h:25
void JetFileSaver::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 43 of file JetFileSaver.cc.

References dbe_, outputFile_, and DQMStore::save().

44 {
45  // Store the DAQ Histograms
46  if (outputFile_.size() > 0 && dbe_)
48 }
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
Definition: DQMStore.cc:2118
std::string outputFile_
Definition: JetFileSaver.h:29
DQMStore * dbe_
Definition: JetFileSaver.h:25

Member Data Documentation

DQMStore* JetFileSaver::dbe_
private

Definition at line 25 of file JetFileSaver.h.

Referenced by beginJob(), and endJob().

std::map<std::string, MonitorElement*> JetFileSaver::me
private

Definition at line 26 of file JetFileSaver.h.

std::string JetFileSaver::outputFile_
private

Definition at line 29 of file JetFileSaver.h.

Referenced by endJob(), and JetFileSaver().