#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 |
virtual edm::EventAuxiliary const & | eventAuxiliary () const |
Long64_t | eventIndex () const |
Long64_t | eventIndexSec () const |
virtual Long64_t | fileIndex () const |
std::vector < edm::BranchDescription > const & | getBranchDescriptions () const |
virtual std::string const | getBranchNameFor (std::type_info const &, char const *, char const *, char const *) const |
virtual bool | getByLabel (std::type_info const &, char const *, char const *, char const *, void *) const |
virtual bool | getByLabel (std::type_info const &, char const *, char const *, char const *, edm::WrapperHolder &) const |
edm::WrapperHolder | getByProductID (edm::ProductID const &) const |
fwlite::LuminosityBlock const & | getLuminosityBlock () |
std::vector< std::string > const & | getProcessHistory () const |
fwlite::Run const & | getRun () |
TFile * | getTFile () const |
TFile * | getTFileSec () 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++ () |
ChainEvent const * | primary () const |
edm::ProcessHistory const & | processHistory () const |
ChainEvent const * | secondary () const |
virtual Long64_t | secondaryFileIndex () const |
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 () |
virtual edm::TriggerNames const & | triggerNames (edm::TriggerResults const &triggerResults) const |
virtual edm::TriggerResultsByName | triggerResultsByName (std::string const &process) const |
virtual | ~MultiChainEvent () |
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<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 |
edm::Timestamp | time () const |
Static Public Member Functions | |
static void | throwProductNotFoundException (std::type_info const &, char const *, char const *, char const *) |
Private Member Functions | |
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 | |
boost::shared_ptr< ChainEvent > | event1_ |
boost::shared_ptr< ChainEvent > | event2_ |
boost::shared_ptr < internal::MultiProductGetter > | getter_ |
sec_file_range_index_map | secFileMapSorted_ |
bool | useSecFileMapSorted_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from edm::EventBase | |
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 56 of file MultiChainEvent.h.
typedef std::map<edm::EventID, Long64_t> fwlite::MultiChainEvent::sec_file_index_map |
Definition at line 55 of file MultiChainEvent.h.
typedef std::map<event_id_range, Long64_t> fwlite::MultiChainEvent::sec_file_range_index_map |
Definition at line 57 of file MultiChainEvent.h.
MultiChainEvent::MultiChainEvent | ( | std::vector< std::string > const & | iFileNames1, |
std::vector< std::string > const & | iFileNames2, | ||
bool | useSecFileMapSorted = false |
||
) |
Definition at line 58 of file MultiChainEvent.cc.
References gather_cfg::cout, event1_, event2_, archive::firstFile, getter_, archive::lastFile, secFileMapSorted_, makeLayoutFileForGui::toAdd, and useSecFileMapSorted_.
|
virtual |
Definition at line 161 of file MultiChainEvent.cc.
|
private |
|
virtual |
Implements fwlite::EventBase.
Definition at line 405 of file MultiChainEvent.cc.
References event1_.
|
virtual |
Implements edm::EventBase.
Definition at line 340 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 107 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 108 of file MultiChainEvent.h.
References event2_.
|
inlinevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 119 of file MultiChainEvent.h.
References event1_.
Referenced by python.Events::fileIndicies().
std::vector< edm::BranchDescription > const & MultiChainEvent::getBranchDescriptions | ( | ) | const |
Definition at line 322 of file MultiChainEvent.cc.
References event1_.
|
virtual |
Implements fwlite::EventBase.
Definition at line 313 of file MultiChainEvent.cc.
References event1_.
|
virtual |
This function should only be called by fwlite::Handle<>
Implements fwlite::EventBase.
Definition at line 346 of file MultiChainEvent.cc.
References event1_, and event2_.
|
virtual |
Implements fwlite::EventBase.
Definition at line 363 of file MultiChainEvent.cc.
References event1_, and event2_.
edm::WrapperHolder MultiChainEvent::getByProductID | ( | edm::ProductID const & | iID | ) | const |
Definition at line 378 of file MultiChainEvent.cc.
References event1_, event2_, edm::hlt::Exception, and edm::WrapperHolder::isValid().
Referenced by fwlite::internal::MultiProductGetter::getIt().
|
inline |
Definition at line 110 of file MultiChainEvent.h.
References event1_.
std::vector< std::string > const & MultiChainEvent::getProcessHistory | ( | ) | const |
Definition at line 328 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 114 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 100 of file MultiChainEvent.h.
References event1_.
|
inline |
Definition at line 103 of file MultiChainEvent.h.
References event2_.
bool MultiChainEvent::isValid | ( | void | ) | const |
Definition at line 395 of file MultiChainEvent.cc.
References event1_.
MultiChainEvent::operator bool | ( | ) | const |
Definition at line 399 of file MultiChainEvent.cc.
|
virtual |
Implements fwlite::EventBase.
Definition at line 182 of file MultiChainEvent.cc.
References event1_.
|
private |
|
inline |
Definition at line 131 of file MultiChainEvent.h.
References event1_.
|
virtual |
Implements edm::EventBase.
Definition at line 334 of file MultiChainEvent.cc.
References event1_.
|
inline |
Definition at line 132 of file MultiChainEvent.h.
References event2_.
|
inlinevirtual |
Reimplemented from fwlite::EventBase.
Definition at line 121 of file MultiChainEvent.h.
References event2_.
Referenced by python.Events::fileIndicies().
Long64_t MultiChainEvent::size | ( | void | ) | const |
Definition at line 411 of file MultiChainEvent.cc.
References event1_.
|
static |
Definition at line 467 of file MultiChainEvent.cc.
References fwlite::ChainEvent::throwProductNotFoundException().
bool MultiChainEvent::to | ( | Long64_t | iIndex | ) |
Go to the event at index iIndex.
Definition at line 190 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 198 of file MultiChainEvent.cc.
References event(), edm::EventBase::luminosityBlock(), DTTTrigCorrFirst::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 212 of file MultiChainEvent.cc.
References to().
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 205 of file MultiChainEvent.cc.
References event1_.
|
virtual |
Implements fwlite::EventBase.
Definition at line 303 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 220 of file MultiChainEvent.cc.
References event2_.
Referenced by toSec().
|
private |
Definition at line 227 of file MultiChainEvent.cc.
References event2_, edm::hlt::Exception, first, and secFileMapSorted_.
|
private |
Go to event with given run, lumi, and event number.
Definition at line 288 of file MultiChainEvent.cc.
References toSec().
|
private |
Go to event with given run and event number.
Definition at line 296 of file MultiChainEvent.cc.
References toSec().
|
virtual |
Implements edm::EventBase.
Definition at line 417 of file MultiChainEvent.cc.
References event1_, event2_, edm::hlt::Exception, cscdqm::h::names, and edm::EventBase::triggerNames_().
|
virtual |
Implements edm::EventBase.
Definition at line 439 of file MultiChainEvent.cc.
References event1_, event2_, fwlite::Handle< T >::getByLabel(), fwlite::Handle< T >::isValid(), cscdqm::h::names, fwlite::Handle< T >::product(), and edm::EventBase::triggerNames_().
|
private |
Definition at line 156 of file MultiChainEvent.h.
Referenced by atEnd(), eventAuxiliary(), eventIndex(), fileIndex(), getBranchDescriptions(), getBranchNameFor(), getByLabel(), getByProductID(), getLuminosityBlock(), getProcessHistory(), getRun(), getTFile(), isValid(), MultiChainEvent(), operator++(), primary(), processHistory(), size(), to(), toBegin(), triggerNames(), and triggerResultsByName().
|
private |
Definition at line 157 of file MultiChainEvent.h.
Referenced by eventIndexSec(), getByLabel(), getByProductID(), getTFileSec(), MultiChainEvent(), secondary(), secondaryFileIndex(), toSec(), triggerNames(), and triggerResultsByName().
|
private |
Definition at line 158 of file MultiChainEvent.h.
Referenced by MultiChainEvent().
|
private |
Definition at line 165 of file MultiChainEvent.h.
Referenced by MultiChainEvent(), and toSec().
|
private |
Definition at line 164 of file MultiChainEvent.h.
Referenced by MultiChainEvent().