#include <MultiChainEvent.h>
Public Types | |
typedef std::pair< edm::EventID, edm::EventID > | event_id_range |
typedef std::map< edm::EventID, Long64_t > | sec_file_index_map |
typedef std::map< event_id_range, Long64_t > | sec_file_range_index_map |
Public Member Functions | |
bool | atEnd () const override |
template<typename T > | |
edm::EDGetTokenT< T > | consumes (edm::InputTag const &iTag) const |
edm::EventAuxiliary const & | eventAuxiliary () const override |
Long64_t | eventIndex () const |
Long64_t | eventIndexSec () const |
Long64_t | fileIndex () const override |
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 |
TFile * | getTFileSec () 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 |
MultiChainEvent (std::vector< std::string > const &iFileNames1, std::vector< std::string > const &iFileNames2, bool useSecFileMapSorted=false) | |
operator bool () const | |
const MultiChainEvent & | operator++ () override |
edm::ParameterSet const * | parameterSet (edm::ParameterSetID const &psID) const override |
ChainEvent const * | primary () const |
edm::ProcessHistory const & | processHistory () const override |
ChainEvent const * | secondary () const |
Long64_t | secondaryFileIndex () const override |
Long64_t | size () const |
bool | to (Long64_t iIndex) |
Go to the event at index iIndex. More... | |
bool | to (edm::EventID id) |
Go to event with event id "id". More... | |
bool | to (edm::RunNumber_t run, edm::EventNumber_t event) |
Go to event with given run and event number. More... | |
bool | to (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi, edm::EventNumber_t event) |
Go to event with given run , lumi (if non-zero), and event number. More... | |
const MultiChainEvent & | toBegin () override |
edm::TriggerNames const & | triggerNames (edm::TriggerResults const &triggerResults) const override |
edm::TriggerResultsByName | triggerResultsByName (edm::TriggerResults const &triggerResults) const override |
~MultiChainEvent () override | |
Public Member Functions inherited from fwlite::EventBase | |
EventBase () | |
~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 | |
bool | getByTokenImp (edm::EDGetToken, edm::WrapperBase const *&) const override |
MultiChainEvent (Event const &) | |
const MultiChainEvent & | operator= (Event const &) |
bool | toSec (Long64_t iIndex) |
Go to the event from secondary files at index iIndex. More... | |
bool | toSec (const edm::EventID &id) |
bool | toSec (edm::RunNumber_t run, edm::LuminosityBlockNumber_t lumi, edm::EventNumber_t event) |
Go to event with given run, lumi, and event number. More... | |
bool | toSec (edm::RunNumber_t run, edm::EventNumber_t event) |
Go to event with given run and event number. More... | |
Private Attributes | |
std::shared_ptr< ChainEvent > | event1_ |
std::shared_ptr< ChainEvent > | event2_ |
std::shared_ptr< internal::MultiProductGetter const > | getter_ |
sec_file_range_index_map | secFileMapSorted_ |
bool | useSecFileMapSorted_ |
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 50 of file MultiChainEvent.h.
typedef std::pair<edm::EventID, edm::EventID> fwlite::MultiChainEvent::event_id_range |
Definition at line 53 of file MultiChainEvent.h.
typedef std::map<edm::EventID, Long64_t> fwlite::MultiChainEvent::sec_file_index_map |
Definition at line 52 of file MultiChainEvent.h.
typedef std::map<event_id_range, Long64_t> fwlite::MultiChainEvent::sec_file_range_index_map |
Definition at line 54 of file MultiChainEvent.h.
MultiChainEvent::MultiChainEvent | ( | std::vector< std::string > const & | iFileNames1, |
std::vector< std::string > const & | iFileNames2, | ||
bool | useSecFileMapSorted = false |
||
) |
Definition at line 71 of file MultiChainEvent.cc.
References gather_cfg::cout, event1_, event2_, unittestinputsource_cfi::eventRange, getter_, secFileMapSorted_, HLT_2022v15_cff::toAdd, and useSecFileMapSorted_.
|
override |
Definition at line 176 of file MultiChainEvent.cc.
|
private |
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 380 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 78 of file MultiChainEvent.h.
References event1_, event2_, and submitPVValidationJobs::t.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 301 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 106 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 107 of file MultiChainEvent.h.
References event2_.
|
inlineoverridevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 113 of file MultiChainEvent.h.
References event1_.
Referenced by python.Events::fileIndicies().
std::vector< edm::BranchDescription > const & MultiChainEvent::getBranchDescriptions | ( | ) | const |
Definition at line 293 of file MultiChainEvent.cc.
References event1_.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 286 of file MultiChainEvent.cc.
References event1_.
|
overridevirtual |
This function should only be called by fwlite::Handle<>
Implements fwlite::EventBase.
Definition at line 303 of file MultiChainEvent.cc.
References event1_, and event2_.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 329 of file MultiChainEvent.cc.
References event1_, and event2_.
Referenced by fwlite::internal::MultiProductGetter::getIt().
|
overrideprivatevirtual |
Implements fwlite::EventBase.
Definition at line 318 of file MultiChainEvent.cc.
References event1_, and event2_.
|
inline |
Definition at line 109 of file MultiChainEvent.h.
References event1_.
std::vector< std::string > const & MultiChainEvent::getProcessHistory | ( | ) | const |
Definition at line 297 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 111 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 103 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 104 of file MultiChainEvent.h.
References event2_.
edm::OptionalThinnedKey MultiChainEvent::getThinnedKeyFrom | ( | edm::ProductID const & | parent, |
unsigned int | key, | ||
edm::ProductID const & | thinned | ||
) | const |
Definition at line 364 of file MultiChainEvent.cc.
References event1_, event2_, crabWrapper::key, and class-composition::parent.
Referenced by fwlite::internal::MultiProductGetter::getThinnedKeyFrom().
std::optional< std::tuple< edm::WrapperBase const *, unsigned int > > MultiChainEvent::getThinnedProduct | ( | edm::ProductID const & | pid, |
unsigned int | key | ||
) | const |
Definition at line 340 of file MultiChainEvent.cc.
References event1_, event2_, and crabWrapper::key.
Referenced by fwlite::internal::MultiProductGetter::getThinnedProduct().
void MultiChainEvent::getThinnedProducts | ( | edm::ProductID const & | pid, |
std::vector< edm::WrapperBase const *> & | foundContainers, | ||
std::vector< unsigned int > & | keys | ||
) | const |
Definition at line 352 of file MultiChainEvent.cc.
References event1_, event2_, spr::find(), and relativeConstraints::keys.
Referenced by fwlite::internal::MultiProductGetter::getThinnedProducts().
bool MultiChainEvent::isValid | ( | void | ) | const |
Definition at line 377 of file MultiChainEvent.cc.
References event1_.
Referenced by ntupleDataFormat._Object::_checkIsValid(), and core.AutoHandle.AutoHandle::ReallyLoad().
MultiChainEvent::operator bool | ( | ) | const |
Definition at line 378 of file MultiChainEvent.cc.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 194 of file MultiChainEvent.cc.
References event1_.
|
private |
|
overridevirtual |
Implements edm::EventBase.
Definition at line 423 of file MultiChainEvent.cc.
References event1_, event2_, and muonDTDigis_cfi::pset.
|
inline |
Definition at line 125 of file MultiChainEvent.h.
References event1_.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 299 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 126 of file MultiChainEvent.h.
References event2_.
|
inlineoverridevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 114 of file MultiChainEvent.h.
References event2_.
Referenced by python.Events::fileIndicies().
Long64_t MultiChainEvent::size | ( | void | ) | const |
Definition at line 382 of file MultiChainEvent.cc.
References event1_.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
static |
Definition at line 433 of file MultiChainEvent.cc.
References fwlite::ChainEvent::throwProductNotFoundException().
bool MultiChainEvent::to | ( | Long64_t | iIndex | ) |
Go to the event at index iIndex.
Definition at line 200 of file MultiChainEvent.cc.
References event1_.
Referenced by to().
bool MultiChainEvent::to | ( | edm::EventID | id | ) |
Go to event with event id "id".
Definition at line 203 of file MultiChainEvent.cc.
References edmPickEvents::event, edm::EventBase::luminosityBlock(), writedatasetfile::run, and to().
bool MultiChainEvent::to | ( | edm::RunNumber_t | run, |
edm::EventNumber_t | event | ||
) |
Go to event with given run and event number.
Definition at line 211 of file MultiChainEvent.cc.
References writedatasetfile::run, to(), and mitigatedMETSequence_cff::U.
bool MultiChainEvent::to | ( | edm::RunNumber_t | run, |
edm::LuminosityBlockNumber_t | lumi, | ||
edm::EventNumber_t | event | ||
) |
Go to event with given run , lumi (if non-zero), and event number.
Definition at line 206 of file MultiChainEvent.cc.
References event1_, and writedatasetfile::run.
|
overridevirtual |
Implements fwlite::EventBase.
Definition at line 278 of file MultiChainEvent.cc.
References event1_.
|
private |
Go to the event from secondary files at index iIndex.
Go to the event at index iIndex.
Definition at line 214 of file MultiChainEvent.cc.
References event2_.
Referenced by toSec().
|
private |
Definition at line 217 of file MultiChainEvent.cc.
References event2_, Exception, first, and secFileMapSorted_.
|
private |
Go to event with given run, lumi, and event number.
Definition at line 267 of file MultiChainEvent.cc.
References writedatasetfile::run, and toSec().
|
private |
Go to event with given run and event number.
Definition at line 273 of file MultiChainEvent.cc.
References writedatasetfile::run, toSec(), and mitigatedMETSequence_cff::U.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 384 of file MultiChainEvent.cc.
References event1_, event2_, Exception, names, edm::EventBase::triggerNames_(), and triggerResults.
|
overridevirtual |
Implements edm::EventBase.
Definition at line 406 of file MultiChainEvent.cc.
References event1_, event2_, names, edm::EventBase::triggerNames_(), and triggerResults.
|
private |
Definition at line 160 of file MultiChainEvent.h.
Referenced by atEnd(), consumes(), eventAuxiliary(), eventIndex(), fileIndex(), getBranchDescriptions(), getBranchNameFor(), getByLabel(), getByProductID(), getByTokenImp(), getLuminosityBlock(), getProcessHistory(), getRun(), getTFile(), getThinnedKeyFrom(), getThinnedProduct(), getThinnedProducts(), isValid(), MultiChainEvent(), operator++(), parameterSet(), primary(), processHistory(), size(), to(), toBegin(), triggerNames(), and triggerResultsByName().
|
private |
Definition at line 161 of file MultiChainEvent.h.
Referenced by consumes(), eventIndexSec(), getByLabel(), getByProductID(), getByTokenImp(), getTFileSec(), getThinnedKeyFrom(), getThinnedProduct(), getThinnedProducts(), MultiChainEvent(), parameterSet(), secondary(), secondaryFileIndex(), toSec(), triggerNames(), and triggerResultsByName().
|
private |
Definition at line 162 of file MultiChainEvent.h.
Referenced by MultiChainEvent().
|
private |
Definition at line 169 of file MultiChainEvent.h.
Referenced by MultiChainEvent(), and toSec().
|
private |
Definition at line 168 of file MultiChainEvent.h.
Referenced by MultiChainEvent().