CMS 3D CMS Logo

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

#include <PrincipalCache.h>

Public Member Functions

void adjustEventsToNewProductRegistry (std::shared_ptr< ProductRegistry const > reg)
 
void adjustIndexesAfterProductRegistryAddition ()
 
void deleteLumi (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi)
 
void deleteRun (ProcessHistoryID const &phid, RunNumber_t run)
 
EventPrincipaleventPrincipal (unsigned int iStreamIndex) const
 
bool hasLumiPrincipal () const
 
bool hasRunPrincipal () const
 
void insert (std::shared_ptr< RunPrincipal > rp)
 
void insert (std::shared_ptr< LuminosityBlockPrincipal > lbp)
 
void insert (std::shared_ptr< EventPrincipal > ep)
 
LuminosityBlockPrincipallumiPrincipal (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) const
 
LuminosityBlockPrincipallumiPrincipal () const
 
std::shared_ptr
< LuminosityBlockPrincipal >
const & 
lumiPrincipalPtr (ProcessHistoryID const &phid, RunNumber_t run, LuminosityBlockNumber_t lumi) const
 
std::shared_ptr
< LuminosityBlockPrincipal >
const & 
lumiPrincipalPtr () const
 
void merge (std::shared_ptr< RunAuxiliary > aux, std::shared_ptr< ProductRegistry const > reg)
 
void merge (std::shared_ptr< LuminosityBlockAuxiliary > aux, std::shared_ptr< ProductRegistry const > reg)
 
 PrincipalCache ()
 
RunPrincipalrunPrincipal (ProcessHistoryID const &phid, RunNumber_t run) const
 
RunPrincipalrunPrincipal () const
 
std::shared_ptr< RunPrincipal >
const & 
runPrincipalPtr (ProcessHistoryID const &phid, RunNumber_t run) const
 
std::shared_ptr< RunPrincipal >
const & 
runPrincipalPtr () const
 
void setNumberOfConcurrentPrincipals (PreallocationConfiguration const &)
 
void setProcessHistoryRegistry (ProcessHistoryRegistry const &phr)
 
 ~PrincipalCache ()
 

Private Member Functions

void throwLumiMissing () const
 
void throwRunMissing () const
 

Private Attributes

std::vector< std::shared_ptr
< EventPrincipal > > 
eventPrincipals_
 
ProcessHistoryID inputProcessHistoryID_
 
LuminosityBlockNumber_t lumi_
 
std::shared_ptr
< LuminosityBlockPrincipal
lumiPrincipal_
 
ProcessHistoryRegistry const * processHistoryRegistry_
 
ProcessHistoryID reducedInputProcessHistoryID_
 
RunNumber_t run_
 
std::shared_ptr< RunPrincipalrunPrincipal_
 

Detailed Description

Definition at line 45 of file PrincipalCache.h.

Constructor & Destructor Documentation

edm::PrincipalCache::PrincipalCache ( )

Definition at line 12 of file PrincipalCache.cc.

edm::PrincipalCache::~PrincipalCache ( )

Definition at line 17 of file PrincipalCache.cc.

Member Function Documentation

void edm::PrincipalCache::adjustEventsToNewProductRegistry ( std::shared_ptr< ProductRegistry const >  reg)

Definition at line 255 of file PrincipalCache.cc.

void edm::PrincipalCache::adjustIndexesAfterProductRegistryAddition ( )

Definition at line 265 of file PrincipalCache.cc.

void edm::PrincipalCache::deleteLumi ( ProcessHistoryID const &  phid,
RunNumber_t  run,
LuminosityBlockNumber_t  lumi 
)

Definition at line 235 of file PrincipalCache.cc.

void edm::PrincipalCache::deleteRun ( ProcessHistoryID const &  phid,
RunNumber_t  run 
)

Definition at line 216 of file PrincipalCache.cc.

EventPrincipal& edm::PrincipalCache::eventPrincipal ( unsigned int  iStreamIndex) const
inline

Definition at line 63 of file PrincipalCache.h.

References eventPrincipals_.

63 { return *(eventPrincipals_[iStreamIndex]); }
std::vector< std::shared_ptr< EventPrincipal > > eventPrincipals_
bool edm::PrincipalCache::hasLumiPrincipal ( ) const
inline

Definition at line 61 of file PrincipalCache.h.

References lumiPrincipal_.

61 {return bool(lumiPrincipal_);}
std::shared_ptr< LuminosityBlockPrincipal > lumiPrincipal_
bool edm::PrincipalCache::hasRunPrincipal ( ) const
inline

Definition at line 55 of file PrincipalCache.h.

References runPrincipal_.

55 {return bool(runPrincipal_);}
std::shared_ptr< RunPrincipal > runPrincipal_
void edm::PrincipalCache::insert ( std::shared_ptr< RunPrincipal rp)

Definition at line 160 of file PrincipalCache.cc.

void edm::PrincipalCache::insert ( std::shared_ptr< LuminosityBlockPrincipal lbp)

Definition at line 175 of file PrincipalCache.cc.

void edm::PrincipalCache::insert ( std::shared_ptr< EventPrincipal ep)

Definition at line 210 of file PrincipalCache.cc.

LuminosityBlockPrincipal & edm::PrincipalCache::lumiPrincipal ( ProcessHistoryID const &  phid,
RunNumber_t  run,
LuminosityBlockNumber_t  lumi 
) const

Definition at line 62 of file PrincipalCache.cc.

LuminosityBlockPrincipal & edm::PrincipalCache::lumiPrincipal ( ) const

Definition at line 84 of file PrincipalCache.cc.

std::shared_ptr< LuminosityBlockPrincipal > const & edm::PrincipalCache::lumiPrincipalPtr ( ProcessHistoryID const &  phid,
RunNumber_t  run,
LuminosityBlockNumber_t  lumi 
) const

Definition at line 73 of file PrincipalCache.cc.

std::shared_ptr< LuminosityBlockPrincipal > const & edm::PrincipalCache::lumiPrincipalPtr ( ) const

Definition at line 92 of file PrincipalCache.cc.

void edm::PrincipalCache::merge ( std::shared_ptr< RunAuxiliary aux,
std::shared_ptr< ProductRegistry const >  reg 
)

Definition at line 99 of file PrincipalCache.cc.

void edm::PrincipalCache::merge ( std::shared_ptr< LuminosityBlockAuxiliary aux,
std::shared_ptr< ProductRegistry const >  reg 
)

Definition at line 129 of file PrincipalCache.cc.

RunPrincipal & edm::PrincipalCache::runPrincipal ( ProcessHistoryID const &  phid,
RunNumber_t  run 
) const

Definition at line 26 of file PrincipalCache.cc.

RunPrincipal & edm::PrincipalCache::runPrincipal ( ) const

Definition at line 46 of file PrincipalCache.cc.

std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr ( ProcessHistoryID const &  phid,
RunNumber_t  run 
) const

Definition at line 36 of file PrincipalCache.cc.

std::shared_ptr< RunPrincipal > const & edm::PrincipalCache::runPrincipalPtr ( ) const

Definition at line 54 of file PrincipalCache.cc.

void edm::PrincipalCache::setNumberOfConcurrentPrincipals ( PreallocationConfiguration const &  iConfig)

Definition at line 20 of file PrincipalCache.cc.

void edm::PrincipalCache::setProcessHistoryRegistry ( ProcessHistoryRegistry const &  phr)
inline

Definition at line 80 of file PrincipalCache.h.

References processHistoryRegistry_.

ProcessHistoryRegistry const * processHistoryRegistry_
void edm::PrincipalCache::throwLumiMissing ( ) const
private

Definition at line 283 of file PrincipalCache.cc.

void edm::PrincipalCache::throwRunMissing ( ) const
private

Definition at line 275 of file PrincipalCache.cc.

Member Data Documentation

std::vector<std::shared_ptr<EventPrincipal> > edm::PrincipalCache::eventPrincipals_
private

Definition at line 91 of file PrincipalCache.h.

Referenced by eventPrincipal().

ProcessHistoryID edm::PrincipalCache::inputProcessHistoryID_
private

Definition at line 103 of file PrincipalCache.h.

LuminosityBlockNumber_t edm::PrincipalCache::lumi_
private

Definition at line 106 of file PrincipalCache.h.

std::shared_ptr<LuminosityBlockPrincipal> edm::PrincipalCache::lumiPrincipal_
private

Definition at line 90 of file PrincipalCache.h.

Referenced by hasLumiPrincipal().

ProcessHistoryRegistry const* edm::PrincipalCache::processHistoryRegistry_
private

Definition at line 94 of file PrincipalCache.h.

Referenced by setProcessHistoryRegistry().

ProcessHistoryID edm::PrincipalCache::reducedInputProcessHistoryID_
private

Definition at line 104 of file PrincipalCache.h.

RunNumber_t edm::PrincipalCache::run_
private

Definition at line 105 of file PrincipalCache.h.

std::shared_ptr<RunPrincipal> edm::PrincipalCache::runPrincipal_
private

Definition at line 89 of file PrincipalCache.h.

Referenced by hasRunPrincipal().