#include <ChainEvent.h>
Public Member Functions | |
bool | atEnd () const override |
ChainEvent (std::vector< std::string > const &iFileNames) | |
template<typename T > | |
edm::EDGetTokenT< T > | consumes (edm::InputTag const &iTag) const |
Event const * | event () const |
edm::EventAuxiliary const & | eventAuxiliary () const override |
Long64_t | eventIndex () const |
Long64_t | fileIndex () const override |
void | fillParameterSetRegistry () const |
std::vector< edm::BranchDescription > const & | getBranchDescriptions () const |
std::string const | getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const override |
bool | getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const override |
edm::WrapperBase const * | getByProductID (edm::ProductID const &) const override |
fwlite::LuminosityBlock const & | getLuminosityBlock () |
std::vector< std::string > const & | getProcessHistory () const |
fwlite::Run const & | getRun () |
TFile * | getTFile () const |
edm::OptionalThinnedKey | getThinnedKeyFrom (edm::ProductID const &parent, unsigned int key, edm::ProductID const &thinned) const |
std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > | getThinnedProduct (edm::ProductID const &pid, unsigned int key) const |
void | getThinnedProducts (edm::ProductID const &pid, std::vector< edm::WrapperBase const *> &foundContainers, std::vector< unsigned int > &keys) const |
bool | isValid () const |
operator bool () const | |
ChainEvent const & | operator++ () override |
edm::ParameterSet const * | parameterSet (edm::ParameterSetID const &psID) const override |
edm::ProcessHistory const & | processHistory () const override |
void | setGetter (std::shared_ptr< edm::EDProductGetter const > getter) |
Long64_t | size () const |
bool | to (Long64_t iIndex) |
Go to the event at index iIndex. More... | |
bool | to (const edm::EventID &id) |
Go to event with event id "id". More... | |
bool | to (edm::RunNumber_t run, edm::EventNumber_t event) |
bool | to (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi, edm::EventNumber_t event) |
ChainEvent const & | toBegin () override |
edm::TriggerNames const & | triggerNames (edm::TriggerResults const &triggerResults) const override |
edm::TriggerResultsByName | triggerResultsByName (edm::TriggerResults const &triggerResults) const override |
~ChainEvent () override | |
Public Member Functions inherited from fwlite::EventBase | |
EventBase () | |
virtual Long64_t | secondaryFileIndex () const |
~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 |
template<typename T > | |
bool | getByToken (edm::EDGetTokenT< T > const &token, edm::Handle< T > &result) const |
edm::EventID | id () const |
bool | isRealData () const |
edm::LuminosityBlockNumber_t | luminosityBlock () const |
int | orbitNumber () const |
edm::Timestamp | time () const |
Static Public Member Functions | |
static void | throwProductNotFoundException (std::type_info const &, char const *, char const *, char const *) |
Private Member Functions | |
ChainEvent (Event const &) | |
void | findSizes () |
bool | getByTokenImp (edm::EDGetToken, edm::WrapperBase const *&) const override |
ChainEvent const & | operator= (Event const &) |
void | switchToFile (Long64_t) |
Private Attributes | |
std::vector< Long64_t > | accumulatedSize_ |
edm::propagate_const< std::shared_ptr< Event > > | event_ |
Long64_t | eventIndex_ |
edm::propagate_const< std::shared_ptr< TFile > > | file_ |
std::vector< std::string > | fileNames_ |
edm::propagate_const< std::shared_ptr< edm::EDProductGetter > > | getter_ |
Friends | |
class | MultiChainEvent |
Additional Inherited Members | |
Static Protected Member Functions inherited from fwlite::EventBase | |
template<typename T > | |
static edm::EDGetTokenT< T > | makeTokenUsing (unsigned int iIndex) |
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 46 of file ChainEvent.h.
ChainEvent::ChainEvent | ( | std::vector< std::string > const & | iFileNames | ) |
Definition at line 35 of file ChainEvent.cc.
References accumulatedSize_, edm::poolNames::eventTreeName(), Exception, file_, MillePedeFileConverter_cfg::fileName, fileNames_, createIOVlist::nEvents, and switchToFile().
|
override |
Definition at line 73 of file ChainEvent.cc.
|
private |
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 248 of file ChainEvent.cc.
References event_, eventIndex_, fileNames_, and size().
|
inline |
Definition at line 68 of file ChainEvent.h.
References event_.
|
inline |
Definition at line 101 of file ChainEvent.h.
References event_.
Referenced by Types.EventID::cppID(), and to().
|
overridevirtual |
Implements edm::EventBase.
Definition at line 206 of file ChainEvent.cc.
References event_.
|
inline |
|
inlineoverridevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 97 of file ChainEvent.h.
References eventIndex_.
Referenced by python.Events::fileIndicies().
void ChainEvent::fillParameterSetRegistry | ( | ) | const |
Definition at line 267 of file ChainEvent.cc.
References event_.
|
private |
std::vector< edm::BranchDescription > const & ChainEvent::getBranchDescriptions | ( | ) | const |
Definition at line 198 of file ChainEvent.cc.
References event_.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 191 of file ChainEvent.cc.
References event_.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 212 of file ChainEvent.cc.
References event_.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 224 of file ChainEvent.cc.
References event_.
|
overrideprivatevirtual |
Implements fwlite::EventBase.
Definition at line 220 of file ChainEvent.cc.
References event_.
fwlite::LuminosityBlock const & ChainEvent::getLuminosityBlock | ( | ) |
Definition at line 208 of file ChainEvent.cc.
References event_.
std::vector< std::string > const & ChainEvent::getProcessHistory | ( | ) | const |
Definition at line 202 of file ChainEvent.cc.
References event_.
fwlite::Run const & ChainEvent::getRun | ( | ) |
Definition at line 210 of file ChainEvent.cc.
References event_.
|
inline |
Definition at line 88 of file ChainEvent.h.
References event_.
edm::OptionalThinnedKey ChainEvent::getThinnedKeyFrom | ( | edm::ProductID const & | parent, |
unsigned int | key, | ||
edm::ProductID const & | thinned | ||
) | const |
Definition at line 239 of file ChainEvent.cc.
References event_, submitPVResolutionJobs::key, and class-composition::parent.
std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > ChainEvent::getThinnedProduct | ( | edm::ProductID const & | pid, |
unsigned int | key | ||
) | const |
Definition at line 228 of file ChainEvent.cc.
References event_, and submitPVResolutionJobs::key.
void ChainEvent::getThinnedProducts | ( | edm::ProductID const & | pid, |
std::vector< edm::WrapperBase const *> & | foundContainers, | ||
std::vector< unsigned int > & | keys | ||
) | const |
Definition at line 233 of file ChainEvent.cc.
References event_, and relativeConstraints::keys.
bool ChainEvent::isValid | ( | void | ) | const |
Definition at line 245 of file ChainEvent.cc.
References event_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
ChainEvent::operator bool | ( | ) | const |
Definition at line 246 of file ChainEvent.cc.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 91 of file ChainEvent.cc.
References event_, eventIndex_, fileNames_, and switchToFile().
|
private |
|
overridevirtual |
Implements edm::EventBase.
Definition at line 263 of file ChainEvent.cc.
References event_.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 204 of file ChainEvent.cc.
References event_.
|
inline |
Definition at line 99 of file ChainEvent.h.
References event_.
Long64_t ChainEvent::size | ( | void | ) | const |
Definition at line 257 of file ChainEvent.cc.
References accumulatedSize_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), atEnd(), and toBegin().
|
private |
Definition at line 180 of file ChainEvent.cc.
References event_, eventIndex_, file_, fileNames_, and edm::propagate_const< T >::get().
Referenced by ChainEvent(), operator++(), to(), and toBegin().
|
static |
Definition at line 276 of file ChainEvent.cc.
References fwlite::Event::throwProductNotFoundException().
Referenced by fwlite::MultiChainEvent::throwProductNotFoundException().
bool ChainEvent::to | ( | Long64_t | iIndex | ) |
Go to the event at index iIndex.
Definition at line 106 of file ChainEvent.cc.
References accumulatedSize_, event_, eventIndex_, and switchToFile().
Referenced by to().
bool ChainEvent::to | ( | const edm::EventID & | id | ) |
Go to event with event id "id".
Definition at line 133 of file ChainEvent.cc.
References event(), edm::EventBase::luminosityBlock(), writedatasetfile::run, and to().
bool ChainEvent::to | ( | edm::RunNumber_t | run, |
edm::EventNumber_t | event | ||
) |
Definition at line 166 of file ChainEvent.cc.
References writedatasetfile::run, to(), and mitigatedMETSequence_cff::U.
bool ChainEvent::to | ( | edm::RunNumber_t | run, |
edm::LuminosityBlockNumber_t | lumi, | ||
edm::EventNumber_t | event | ||
) |
If lumi is non-zero, go to event with given run, lumi, and event number If lumi is zero, go to event with given run and event number
Definition at line 137 of file ChainEvent.cc.
References event_, eventIndex_, fileNames_, compare_using_db::ifile, writedatasetfile::run, and switchToFile().
|
overridevirtual |
Go to the very first Event
Implements fwlite::EventBase.
Definition at line 170 of file ChainEvent.cc.
References event_, eventIndex_, size(), and switchToFile().
|
overridevirtual |
Implements edm::EventBase.
Definition at line 259 of file ChainEvent.cc.
References event_, and triggerResults.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 269 of file ChainEvent.cc.
References event_, and triggerResults.
|
friend |
Definition at line 132 of file ChainEvent.h.
|
private |
Definition at line 145 of file ChainEvent.h.
Referenced by ChainEvent(), size(), and to().
|
private |
Definition at line 143 of file ChainEvent.h.
Referenced by atEnd(), consumes(), event(), eventAuxiliary(), fillParameterSetRegistry(), getBranchDescriptions(), getBranchNameFor(), getByLabel(), getByProductID(), getByTokenImp(), getLuminosityBlock(), getProcessHistory(), getRun(), getTFile(), getThinnedKeyFrom(), getThinnedProduct(), getThinnedProducts(), isValid(), operator++(), parameterSet(), processHistory(), setGetter(), switchToFile(), to(), toBegin(), triggerNames(), and triggerResultsByName().
|
private |
Definition at line 144 of file ChainEvent.h.
Referenced by atEnd(), eventIndex(), fileIndex(), operator++(), switchToFile(), to(), and toBegin().
|
private |
Definition at line 142 of file ChainEvent.h.
Referenced by ChainEvent(), and switchToFile().
|
private |
Definition at line 141 of file ChainEvent.h.
Referenced by atEnd(), ChainEvent(), operator++(), switchToFile(), and to().
|
private |
Definition at line 146 of file ChainEvent.h.