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::Run Class Reference

#include <Run.h>

Inheritance diagram for fwlite::Run:
fwlite::RunBase edm::RunBase

Public Member Functions

virtual bool atEnd () 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
 
edm::WrapperBase const * getByProductID (edm::ProductID const &) const
 
bool isValid () const
 
 operator bool () const
 
const Runoperator++ ()
 
 Run (TFile *iFile)
 
 Run (std::shared_ptr< BranchMapReader > branchMap)
 
virtual edm::RunAuxiliary const & runAuxiliary () const
 
Long64_t size () const
 
bool to (edm::RunNumber_t run)
 Go to event by Run & Run number. More...
 
const RuntoBegin ()
 
virtual ~Run ()
 
- Public Member Functions inherited from fwlite::RunBase
virtual Long64_t fileIndex () const
 
 RunBase ()
 
virtual Long64_t secondaryFileIndex () const
 
virtual ~RunBase ()
 
- Public Member Functions inherited from edm::RunBase
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 same as above, but using the InputTag class More...
 
template<typename T >
bool getByLabel (InputTag const &tag, Handle< T > &result) const
 
RunID const & id () const
 
RunNumber_t run () const
 
 RunBase ()
 

Static Public Member Functions

static void throwProductNotFoundException (std::type_info const &, char const *, char const *, char const *)
 

Private Member Functions

const edm::ProcessHistoryhistory () const
 
const Runoperator= (const Run &)
 
 Run (const Run &)
 
void updateAux (Long_t runIndex) const
 

Private Attributes

edm::RunAuxiliary aux_
 
TBranch * auxBranch_
 
std::shared_ptr< BranchMapReaderbranchMap_
 
fwlite::DataGetterHelper dataHelper_
 
EntryFinder entryFinder_
 
int fileVersion_
 
edm::ProcessHistoryMap historyMap_
 
std::vector< char const * > labels_
 
edm::RunAuxiliary const * pAux_
 
edm::RunAux const * pOldAux_
 
std::vector< std::string > procHistoryNames_
 

Friends

class internal::ProductGetter
 
class RunHistoryGetter
 

Detailed Description

Definition at line 53 of file Run.h.

Constructor & Destructor Documentation

Run::Run ( TFile *  iFile)

Definition at line 44 of file Run.cc.

Run::Run ( std::shared_ptr< BranchMapReader branchMap)

Definition at line 90 of file Run.cc.

Run::~Run ( )
virtual

Definition at line 135 of file Run.cc.

fwlite::Run::Run ( const Run )
private

Member Function Documentation

bool Run::atEnd ( ) const
virtual

Implements fwlite::RunBase.

Definition at line 200 of file Run.cc.

Referenced by main().

std::vector<edm::BranchDescription> const& fwlite::Run::getBranchDescriptions ( ) const
inline

Definition at line 90 of file Run.h.

References branchMap_.

90  {
91  return branchMap_->getBranchDescriptions();
92  }
std::shared_ptr< BranchMapReader > branchMap_
Definition: Run.h:115
std::string const Run::getBranchNameFor ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel 
) const
virtual

Definition at line 208 of file Run.cc.

bool Run::getByLabel ( std::type_info const &  iInfo,
char const *  iModuleLabel,
char const *  iProductInstanceLabel,
char const *  iProcessLabel,
void *  oData 
) const
virtual

Implements fwlite::RunBase.

Definition at line 217 of file Run.cc.

edm::WrapperBase const * Run::getByProductID ( edm::ProductID const &  iID) const

Definition at line 315 of file Run.cc.

const edm::ProcessHistory & Run::history ( ) const
private

Definition at line 252 of file Run.cc.

Referenced by fwlite::RunHistoryGetter::history().

bool Run::isValid ( void  ) const

Definition at line 187 of file Run.cc.

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

Run::operator bool ( ) const

Definition at line 194 of file Run.cc.

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

Implements fwlite::RunBase.

Definition at line 148 of file Run.cc.

const Run& fwlite::Run::operator= ( const Run )
private
edm::RunAuxiliary const & Run::runAuxiliary ( ) const
virtual

Implements edm::RunBase.

Definition at line 232 of file Run.cc.

Long64_t Run::size ( void  ) const

Definition at line 181 of file Run.cc.

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

Definition at line 326 of file Run.cc.

bool Run::to ( edm::RunNumber_t  run)

Go to event by Run & Run number.

Definition at line 160 of file Run.cc.

const Run & Run::toBegin ( )
virtual

Implements fwlite::RunBase.

Definition at line 171 of file Run.cc.

Referenced by main().

void Run::updateAux ( Long_t  runIndex) const
private

Definition at line 240 of file Run.cc.

Friends And Related Function Documentation

friend class internal::ProductGetter
friend

Definition at line 104 of file Run.h.

friend class RunHistoryGetter
friend

Definition at line 105 of file Run.h.

Member Data Documentation

edm::RunAuxiliary fwlite::Run::aux_
mutableprivate

Definition at line 121 of file Run.h.

TBranch* fwlite::Run::auxBranch_
private

Definition at line 125 of file Run.h.

std::shared_ptr<BranchMapReader> fwlite::Run::branchMap_
mutableprivate

Definition at line 115 of file Run.h.

Referenced by getBranchDescriptions().

fwlite::DataGetterHelper fwlite::Run::dataHelper_
private

Definition at line 128 of file Run.h.

EntryFinder fwlite::Run::entryFinder_
mutableprivate

Definition at line 122 of file Run.h.

int fwlite::Run::fileVersion_
private

Definition at line 126 of file Run.h.

edm::ProcessHistoryMap fwlite::Run::historyMap_
mutableprivate

Definition at line 119 of file Run.h.

std::vector<char const*> fwlite::Run::labels_
mutableprivate

Definition at line 118 of file Run.h.

edm::RunAuxiliary const* fwlite::Run::pAux_
private

Definition at line 123 of file Run.h.

edm::RunAux const* fwlite::Run::pOldAux_
private

Definition at line 124 of file Run.h.

std::vector<std::string> fwlite::Run::procHistoryNames_
mutableprivate

Definition at line 120 of file Run.h.