#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 (std::string const &process) const |
~EventContainer () | |
Public Member Functions inherited from fwlite::EventBase | |
EventBase () | |
virtual | ~EventBase () |
Public Member Functions inherited from edm::EventBase | |
int | bunchCrossing () const |
EventBase () | |
edm::EventAuxiliary::ExperimentType | experimentType () const |
template<class T > | |
bool | getByLabel (const InputTag &, 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 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 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(), AutoLibraryLoader::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(), and main().
|
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 main().
|
inlinevirtual |
Implements edm::EventBase.
Definition at line 111 of file EventContainer.h.
References edm::EventBase::eventAuxiliary(), and m_eventBasePtr.
Referenced by main().
|
inline |
|
inlinevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 106 of file EventContainer.h.
References fwlite::EventBase::fileIndex(), and m_eventBasePtr.
|
virtual |
Implements fwlite::EventBase.
Definition at line 129 of file EventContainer.cc.
References fwlite::EventBase::getBranchNameFor(), and m_eventBasePtr.
|
virtual |
Implements fwlite::EventBase.
Definition at line 114 of file EventContainer.cc.
References fwlite::EventBase::getByLabel(), and m_eventBasePtr.
Referenced by main().
|
inline |
Definition at line 115 of file EventContainer.h.
References fwlite::EventBase::getByLabel(), and m_eventBasePtr.
|
inline |
Definition at line 71 of file EventContainer.h.
References hist().
|
inline |
Definition at line 73 of file EventContainer.h.
References hist().
|
virtual |
Implements fwlite::EventBase.
Definition at line 142 of file EventContainer.cc.
References gather_cfg::cout, m_eventBasePtr, m_eventsSeen, and m_outputEvery.
optutl::CommandLineParser & EventContainer::parser | ( | ) |
Definition at line 101 of file EventContainer.cc.
References m_parserPtr.
Referenced by bookHistograms(), calcSampleName(), EventContainer(), 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 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(), 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().