#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 override |
edm::EventAuxiliary const & | eventAuxiliary () const override |
EventContainer (optutl::CommandLineParser &parser, FuncPtr funcPtr=nullptr) | |
int | eventsSeen () const |
Long64_t | fileIndex () const override |
const std::string | getBranchNameFor (const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel) const override |
template<class T > | |
bool | getByLabel (const edm::InputTag &tag, edm::Handle< T > &handle) const |
bool | getByLabel (const std::type_info &iInfo, const char *iModuleLabel, const char *iProductInstanceLabel, const char *iProcessLabel, void *oData) const override |
TH1 * | hist (const char *name) |
TH1 * | hist (const std::string &name) |
TH1 * | hist (const TString &name) |
const EventContainer & | operator++ () override |
optutl::CommandLineParser & | parser () |
Long64_t | secondaryFileIndex () const override |
const EventContainer & | toBegin () override |
edm::TriggerNames const & | triggerNames (edm::TriggerResults const &triggerResults) const override |
edm::TriggerResultsByName | triggerResultsByName (edm::TriggerResults const &triggerResults) const override |
~EventContainer () override | |
Public Member Functions inherited from fwlite::EventBase | |
EventBase () | |
virtual edm::WrapperBase const * | getByProductID (edm::ProductID const &) const =0 |
~EventBase () override | |
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<> | |
bool | getByLabel (edm::InputTag const &tag, Handle< FWGenericObject > &result) const |
Specialize the getByLabel method to work with a Handle<FWGenericObject> More... | |
template<typename T > | |
bool | getByLabel (InputTag const &, Handle< T > &) const |
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 21 of file EventContainer.h.
typedef void(* fwlite::EventContainer::FuncPtr) (std::string &) |
Definition at line 28 of file EventContainer.h.
typedef std::map<std::string, std::string> fwlite::EventContainer::SSMap |
Definition at line 27 of file EventContainer.h.
EventContainer::EventContainer | ( | optutl::CommandLineParser & | parser, |
FuncPtr | funcPtr = nullptr |
||
) |
Definition at line 23 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 makeGlobalPositionRcd_cfg::tag.
|
override |
Definition at line 59 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 119 of file EventContainer.h.
void EventContainer::add | ( | TH1 * | histPtr, |
const std::string & | directory = "" |
||
) |
Definition at line 76 of file EventContainer.cc.
References TH1Store::add(), createBeamHaloJobs::directory, and m_histStore.
Referenced by bookHistograms(), main(), and counter.Counter::register().
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 124 of file EventContainer.cc.
References cms::cuda::assert(), fwlite::EventBase::atEnd(), m_eventBasePtr, m_eventsSeen, and m_maxWanted.
Referenced by main().
|
inlineoverridevirtual |
Implements edm::EventBase.
Definition at line 103 of file EventContainer.h.
References edm::EventBase::eventAuxiliary(), and m_eventBasePtr.
Referenced by main().
|
inline |
|
inlineoverridevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 100 of file EventContainer.h.
References fwlite::EventBase::fileIndex(), and m_eventBasePtr.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 94 of file EventContainer.cc.
References cms::cuda::assert(), fwlite::EventBase::getBranchNameFor(), and m_eventBasePtr.
|
inline |
Definition at line 106 of file EventContainer.h.
References fwlite::EventBase::getByLabel(), patZpeak::handle, m_eventBasePtr, and makeGlobalPositionRcd_cfg::tag.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 85 of file EventContainer.cc.
References cms::cuda::assert(), fwlite::EventBase::getByLabel(), and m_eventBasePtr.
Referenced by main().
|
inline |
Definition at line 66 of file EventContainer.h.
References hist(), Skims_PA_cff::name, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by hist().
TH1* fwlite::EventContainer::hist | ( | const std::string & | name | ) |
Referenced by main().
|
inline |
Definition at line 67 of file EventContainer.h.
References hist(), and Skims_PA_cff::name.
Referenced by hist().
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 102 of file EventContainer.cc.
References cms::cuda::assert(), gather_cfg::cout, m_eventBasePtr, m_eventsSeen, and m_outputEvery.
optutl::CommandLineParser & EventContainer::parser | ( | ) |
Definition at line 78 of file EventContainer.cc.
References cms::cuda::assert(), and m_parserPtr.
Referenced by bookHistograms(), calcSampleName(), EventContainer(), and ~EventContainer().
|
inlineoverridevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 101 of file EventContainer.h.
References m_eventBasePtr, and fwlite::EventBase::secondaryFileIndex().
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 113 of file EventContainer.cc.
References cms::cuda::assert(), m_eventBasePtr, m_eventsSeen, and fwlite::EventBase::toBegin().
Referenced by main().
|
inlineoverridevirtual |
Implements edm::EventBase.
Definition at line 92 of file EventContainer.h.
References m_eventBasePtr, edm::EventBase::triggerNames(), and triggerResults.
|
inlineoverridevirtual |
Implements edm::EventBase.
Definition at line 96 of file EventContainer.h.
References m_eventBasePtr, triggerResults, and edm::EventBase::triggerResultsByName().
|
friend |
|
private |
Definition at line 125 of file EventContainer.h.
Referenced by atEnd(), eventAuxiliary(), EventContainer(), fileIndex(), getBranchNameFor(), getByLabel(), operator++(), secondaryFileIndex(), toBegin(), triggerNames(), triggerResultsByName(), and ~EventContainer().
|
private |
Definition at line 128 of file EventContainer.h.
Referenced by atEnd(), eventsSeen(), operator++(), toBegin(), and ~EventContainer().
|
private |
Definition at line 126 of file EventContainer.h.
Referenced by add(), and ~EventContainer().
|
private |
Definition at line 129 of file EventContainer.h.
Referenced by atEnd(), and EventContainer().
|
private |
Definition at line 130 of file EventContainer.h.
Referenced by EventContainer(), and operator++().
|
private |
Definition at line 127 of file EventContainer.h.
Referenced by EventContainer(), and ~EventContainer().
|
private |
Definition at line 131 of file EventContainer.h.
Referenced by EventContainer(), and parser().
|
staticprivate |
Definition at line 137 of file EventContainer.h.
Referenced by EventContainer().