#include <EventContainer.h>
Public Types | |
typedef void(* | FuncPtr) (std::string &) |
typedef std::map< std::string, std::string > | SSMap |
Public Member Functions | |
void | add (TH1 *histPtr, const std::string &directory="") |
bool | atEnd () const |
edm::EventAuxiliary const & | eventAuxiliary () const |
EventContainer (optutl::CommandLineParser &parser, FuncPtr funcPtr=0) | |
int | eventsSeen () const |
Long64_t | fileIndex () const |
const std::string | getBranchNameFor (const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel) const |
bool | getByLabel (const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel, void *oData) const |
template<class T > | |
bool | getByLabel (const edm::InputTag &tag, edm::Handle< T > &handle) const |
TH1 * | hist (const std::string &name) |
TH1 * | hist (const char *name) |
TH1 * | hist (const TString &name) |
const EventContainer & | operator++ () |
optutl::CommandLineParser & | parser () |
Long64_t | secondaryFileIndex () const |
const EventContainer & | toBegin () |
edm::TriggerNames const & | triggerNames (edm::TriggerResults const &triggerResults) const |
edm::TriggerResultsByName | triggerResultsByName (edm::TriggerResults const &triggerResults) const |
~EventContainer () | |
Public Member Functions inherited from fwlite::EventBase | |
EventBase () | |
virtual std::string const | getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const =0 |
virtual bool | getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const =0 |
virtual edm::WrapperBase const * | getByProductID (edm::ProductID const &) const =0 |
virtual | ~EventBase () |
Public Member Functions inherited from edm::EventBase | |
int | bunchCrossing () const |
EventBase () | |
edm::EventAuxiliary::ExperimentType | experimentType () const |
template<typename T > | |
bool | get (ProductID const &, Handle< T > &) const |
template<typename T > | |
bool | getByLabel (InputTag const &, Handle< T > &) const |
template<> | |
bool | getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const |
Specialize the getByLabel method to work with a Handle<FWGenericObject> More... | |
edm::EventID | id () const |
bool | isRealData () const |
edm::LuminosityBlockNumber_t | luminosityBlock () const |
int | orbitNumber () const |
virtual edm::ParameterSet const * | parameterSet (edm::ParameterSetID const &psID) const =0 |
virtual ProcessHistory const & | processHistory () const =0 |
edm::Timestamp | time () const |
Private Member Functions | |
EventContainer (const EventContainer &rhs) | |
Private Attributes | |
fwlite::EventBase * | m_eventBasePtr |
int | m_eventsSeen |
TH1Store | m_histStore |
int | m_maxWanted |
int | m_outputEvery |
std::string | m_outputName |
optutl::CommandLineParser * | m_parserPtr |
Static Private Attributes | |
static bool | sm_autoloaderCalled = false |
Friends | |
std::ostream & | operator<< (std::ostream &o_stream, const EventContainer &rhs) |
Additional Inherited Members | |
Static Protected Member Functions inherited from edm::EventBase | |
static edm::ParameterSet const * | parameterSetForID_ (edm::ParameterSetID const &psID) |
static TriggerNames const * | triggerNames_ (edm::TriggerResults const &triggerResults) |
Definition at line 22 of file EventContainer.h.
typedef void( * fwlite::EventContainer::FuncPtr) (std::string &) |
Definition at line 31 of file EventContainer.h.
typedef std::map< std::string, std::string > fwlite::EventContainer::SSMap |
Definition at line 30 of file EventContainer.h.
EventContainer::EventContainer | ( | optutl::CommandLineParser & | parser, |
FuncPtr | funcPtr = 0 |
||
) |
Definition at line 24 of file EventContainer.cc.
References optutl::CommandLineParser::_finishDefaultOptions(), optutl::VariableMapCont::boolValue(), FWLiteEnabler::enable(), optutl::VariableMapCont::integerValue(), m_eventBasePtr, m_maxWanted, m_outputEvery, m_outputName, m_parserPtr, parser(), sm_autoloaderCalled, optutl::VariableMapCont::stringValue(), optutl::VariableMapCont::stringVector(), and GlobalPosition_Frontier_DevDB_cff::tag.
EventContainer::~EventContainer | ( | ) |
Definition at line 69 of file EventContainer.cc.
References optutl::CommandLineParser::argVec(), gather_cfg::cout, optutl::VariableMapCont::hasOption(), optutl::VariableMapCont::kStringVector, m_eventBasePtr, m_eventsSeen, m_histStore, m_outputName, parser(), optutl::VariableMapCont::stringVector(), and TH1Store::write().
|
inlineprivate |
Definition at line 130 of file EventContainer.h.
void EventContainer::add | ( | TH1 * | histPtr, |
const std::string & | directory = "" |
||
) |
Definition at line 95 of file EventContainer.cc.
References TH1Store::add(), and m_histStore.
Referenced by bookHistograms(), eventsSeen(), main(), and counter.Counter::register().
|
virtual |
Implements fwlite::EventBase.
Definition at line 169 of file EventContainer.cc.
References fwlite::EventBase::atEnd(), m_eventBasePtr, m_eventsSeen, and m_maxWanted.
Referenced by hist(), and main().
|
inlinevirtual |
Implements edm::EventBase.
Definition at line 111 of file EventContainer.h.
References edm::EventBase::eventAuxiliary(), and m_eventBasePtr.
Referenced by main().
|
inline |
Definition at line 59 of file EventContainer.h.
References add(), createBeamHaloJobs::directory, hist(), m_eventsSeen, dataset::name, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlinevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 106 of file EventContainer.h.
References fwlite::EventBase::fileIndex(), and m_eventBasePtr.
const std::string EventContainer::getBranchNameFor | ( | const std::type_info & | iInfo, |
const char * | iModuleLabel, | ||
const char * | iProductInstanceLabel, | ||
const char * | iProcessLabel | ||
) | const |
Definition at line 129 of file EventContainer.cc.
References fwlite::EventBase::getBranchNameFor(), and m_eventBasePtr.
Referenced by hist().
bool EventContainer::getByLabel | ( | const std::type_info & | iInfo, |
const char * | iModuleLabel, | ||
const char * | iProductInstanceLabel, | ||
const char * | iProcessLabel, | ||
void * | oData | ||
) | const |
Definition at line 114 of file EventContainer.cc.
References fwlite::EventBase::getByLabel(), m_eventBasePtr, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by hist(), and main().
|
inline |
Definition at line 115 of file EventContainer.h.
References fwlite::EventBase::getByLabel(), and m_eventBasePtr.
TH1* fwlite::EventContainer::hist | ( | const std::string & | name | ) |
Referenced by eventsSeen(), hist(), main(), and parser().
|
inline |
Definition at line 71 of file EventContainer.h.
References hist(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Definition at line 73 of file EventContainer.h.
References atEnd(), getBranchNameFor(), getByLabel(), hist(), operator++(), parser(), AlCaHLTBitMon_QueryRunRegistry::string, and toBegin().
|
virtual |
Implements fwlite::EventBase.
Definition at line 142 of file EventContainer.cc.
References gather_cfg::cout, m_eventBasePtr, m_eventsSeen, and m_outputEvery.
Referenced by hist().
optutl::CommandLineParser & EventContainer::parser | ( | ) |
Definition at line 101 of file EventContainer.cc.
References TH1Store::hist(), hist(), m_histStore, m_parserPtr, and dataset::name.
Referenced by bookHistograms(), calcSampleName(), EventContainer(), hist(), and ~EventContainer().
|
inlinevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 108 of file EventContainer.h.
References m_eventBasePtr, and fwlite::EventBase::secondaryFileIndex().
|
virtual |
Implements fwlite::EventBase.
Definition at line 156 of file EventContainer.cc.
References m_eventBasePtr, m_eventsSeen, and fwlite::EventBase::toBegin().
Referenced by hist(), and main().
|
inlinevirtual |
Implements edm::EventBase.
Definition at line 100 of file EventContainer.h.
References m_eventBasePtr, and edm::EventBase::triggerNames().
|
inlinevirtual |
Implements edm::EventBase.
Definition at line 103 of file EventContainer.h.
References m_eventBasePtr, and edm::EventBase::triggerResultsByName().
|
friend |
|
private |
Definition at line 136 of file EventContainer.h.
Referenced by atEnd(), eventAuxiliary(), EventContainer(), fileIndex(), getBranchNameFor(), getByLabel(), operator++(), secondaryFileIndex(), toBegin(), triggerNames(), triggerResultsByName(), and ~EventContainer().
|
private |
Definition at line 139 of file EventContainer.h.
Referenced by atEnd(), eventsSeen(), operator++(), toBegin(), and ~EventContainer().
|
private |
Definition at line 137 of file EventContainer.h.
Referenced by add(), parser(), and ~EventContainer().
|
private |
Definition at line 140 of file EventContainer.h.
Referenced by atEnd(), and EventContainer().
|
private |
Definition at line 141 of file EventContainer.h.
Referenced by EventContainer(), and operator++().
|
private |
Definition at line 138 of file EventContainer.h.
Referenced by EventContainer(), and ~EventContainer().
|
private |
Definition at line 142 of file EventContainer.h.
Referenced by EventContainer(), and parser().
|
staticprivate |
Definition at line 148 of file EventContainer.h.
Referenced by EventContainer().