CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
fwlite::ChainEvent Class Reference

#include <ChainEvent.h>

Inheritance diagram for fwlite::ChainEvent:
fwlite::EventBase edm::EventBase

Public Member Functions

virtual bool atEnd () const
 
 ChainEvent (std::vector< std::string > const &iFileNames)
 
Event const * event () const
 
virtual edm::EventAuxiliary const & eventAuxiliary () const
 
Long64_t eventIndex () const
 
virtual Long64_t fileIndex () const
 
void fillParameterSetRegistry () 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 edm::WrapperBase const * getByProductID (edm::ProductID const &) const
 
fwlite::LuminosityBlock const & getLuminosityBlock ()
 
std::vector< std::string > const & getProcessHistory () const
 
fwlite::Run const & getRun ()
 
TFile * getTFile () const
 
edm::WrapperBase const * 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++ ()
 
virtual edm::ProcessHistory const & processHistory () const
 
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 ()
 
virtual edm::TriggerNames const & triggerNames (edm::TriggerResults const &triggerResults) const
 
virtual edm::TriggerResultsByName triggerResultsByName (std::string const &process) const
 
virtual ~ChainEvent ()
 
- Public Member Functions inherited from fwlite::EventBase
 EventBase ()
 
virtual Long64_t secondaryFileIndex () const
 
virtual ~EventBase ()
 
- 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<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

 ChainEvent (Event const &)
 
void findSizes ()
 
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 edm::EventBase
static TriggerNames const * triggerNames_ (edm::TriggerResults const &triggerResults)
 

Detailed Description

Definition at line 46 of file ChainEvent.h.

Constructor & Destructor Documentation

ChainEvent::ChainEvent ( std::vector< std::string > const &  iFileNames)

Definition at line 35 of file ChainEvent.cc.

ChainEvent::~ChainEvent ( )
virtual

Definition at line 74 of file ChainEvent.cc.

fwlite::ChainEvent::ChainEvent ( Event const &  )
private

Member Function Documentation

bool ChainEvent::atEnd ( ) const
virtual

Implements fwlite::EventBase.

Definition at line 301 of file ChainEvent.cc.

Event const* fwlite::ChainEvent::event ( ) const
inline

Definition at line 108 of file ChainEvent.h.

References event_.

108 { return &*event_; }
edm::propagate_const< std::shared_ptr< Event > > event_
Definition: ChainEvent.h:142
edm::EventAuxiliary const & ChainEvent::eventAuxiliary ( ) const
virtual

Implements edm::EventBase.

Definition at line 250 of file ChainEvent.cc.

Long64_t fwlite::ChainEvent::eventIndex ( ) const
inline

Definition at line 101 of file ChainEvent.h.

References eventIndex_.

101 { return eventIndex_; }
Long64_t eventIndex_
Definition: ChainEvent.h:143
virtual Long64_t fwlite::ChainEvent::fileIndex ( ) const
inlinevirtual

Reimplemented from fwlite::EventBase.

Definition at line 102 of file ChainEvent.h.

References eventIndex_.

102 { return eventIndex_; }
Long64_t eventIndex_
Definition: ChainEvent.h:143
void ChainEvent::fillParameterSetRegistry ( ) const

Definition at line 323 of file ChainEvent.cc.

void fwlite::ChainEvent::findSizes ( )
private
std::vector< edm::BranchDescription > const & ChainEvent::getBranchDescriptions ( ) const

Definition at line 232 of file ChainEvent.cc.

std::string const ChainEvent::getBranchNameFor ( std::type_info const &  iType,
char const *  iModule,
char const *  iInstance,
char const *  iProcess 
) const
virtual

Implements fwlite::EventBase.

Definition at line 223 of file ChainEvent.cc.

bool ChainEvent::getByLabel ( std::type_info const &  iType,
char const *  iModule,
char const *  iInstance,
char const *  iProcess,
void *  iValue 
) const
virtual

Implements fwlite::EventBase.

Definition at line 266 of file ChainEvent.cc.

edm::WrapperBase const * ChainEvent::getByProductID ( edm::ProductID const &  iID) const
virtual

Implements fwlite::EventBase.

Definition at line 275 of file ChainEvent.cc.

fwlite::LuminosityBlock const & ChainEvent::getLuminosityBlock ( )

Definition at line 255 of file ChainEvent.cc.

std::vector< std::string > const & ChainEvent::getProcessHistory ( ) const

Definition at line 238 of file ChainEvent.cc.

fwlite::Run const & ChainEvent::getRun ( )

Definition at line 260 of file ChainEvent.cc.

TFile* fwlite::ChainEvent::getTFile ( ) const
inline

Definition at line 91 of file ChainEvent.h.

References event_.

91  {
92  return event_->getTFile();
93  }
edm::propagate_const< std::shared_ptr< Event > > event_
Definition: ChainEvent.h:142
edm::WrapperBase const * ChainEvent::getThinnedProduct ( edm::ProductID const &  pid,
unsigned int &  key 
) const

Definition at line 280 of file ChainEvent.cc.

void ChainEvent::getThinnedProducts ( edm::ProductID const &  pid,
std::vector< edm::WrapperBase const * > &  foundContainers,
std::vector< unsigned int > &  keys 
) const

Definition at line 284 of file ChainEvent.cc.

bool ChainEvent::isValid ( void  ) const

Definition at line 291 of file ChainEvent.cc.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

ChainEvent::operator bool ( ) const

Definition at line 295 of file ChainEvent.cc.

ChainEvent const & ChainEvent::operator++ ( )
virtual

Implements fwlite::EventBase.

Definition at line 95 of file ChainEvent.cc.

ChainEvent const& fwlite::ChainEvent::operator= ( Event const &  )
private
edm::ProcessHistory const & ChainEvent::processHistory ( ) const
virtual

Implements edm::EventBase.

Definition at line 244 of file ChainEvent.cc.

void fwlite::ChainEvent::setGetter ( std::shared_ptr< edm::EDProductGetter const >  getter)
inline

Definition at line 104 of file ChainEvent.h.

References event_.

104  {
105  event_->setGetter(getter);
106  }
edm::propagate_const< std::shared_ptr< Event > > event_
Definition: ChainEvent.h:142
Long64_t ChainEvent::size ( void  ) const

Definition at line 311 of file ChainEvent.cc.

void ChainEvent::switchToFile ( Long64_t  iIndex)
private

Definition at line 210 of file ChainEvent.cc.

void ChainEvent::throwProductNotFoundException ( std::type_info const &  iType,
char const *  iModule,
char const *  iInstance,
char const *  iProcess 
)
static

Definition at line 337 of file ChainEvent.cc.

bool ChainEvent::to ( Long64_t  iIndex)

Go to the event at index iIndex.

Definition at line 113 of file ChainEvent.cc.

bool ChainEvent::to ( const edm::EventID id)

Go to event with event id "id".

Definition at line 144 of file ChainEvent.cc.

bool ChainEvent::to ( edm::RunNumber_t  run,
edm::EventNumber_t  event 
)

Definition at line 190 of file ChainEvent.cc.

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 152 of file ChainEvent.cc.

ChainEvent const & ChainEvent::toBegin ( )
virtual

Go to the very first Event

Implements fwlite::EventBase.

Definition at line 198 of file ChainEvent.cc.

edm::TriggerNames const & ChainEvent::triggerNames ( edm::TriggerResults const &  triggerResults) const
virtual

Implements edm::EventBase.

Definition at line 317 of file ChainEvent.cc.

edm::TriggerResultsByName ChainEvent::triggerResultsByName ( std::string const &  process) const
virtual

Implements edm::EventBase.

Definition at line 329 of file ChainEvent.cc.

Friends And Related Function Documentation

friend class MultiChainEvent
friend

Definition at line 131 of file ChainEvent.h.

Member Data Documentation

std::vector<Long64_t> fwlite::ChainEvent::accumulatedSize_
private

Definition at line 144 of file ChainEvent.h.

edm::propagate_const<std::shared_ptr<Event> > fwlite::ChainEvent::event_
private

Definition at line 142 of file ChainEvent.h.

Referenced by event(), getTFile(), and setGetter().

Long64_t fwlite::ChainEvent::eventIndex_
private

Definition at line 143 of file ChainEvent.h.

Referenced by eventIndex(), and fileIndex().

edm::propagate_const<std::shared_ptr<TFile> > fwlite::ChainEvent::file_
private

Definition at line 141 of file ChainEvent.h.

std::vector<std::string> fwlite::ChainEvent::fileNames_
private

Definition at line 140 of file ChainEvent.h.

edm::propagate_const<std::shared_ptr<edm::EDProductGetter> > fwlite::ChainEvent::getter_
private

Definition at line 145 of file ChainEvent.h.