#include <VectorInputSource.h>
Public Member Functions | |
void | doBeginJob () |
Called at beginning of job. More... | |
void | doEndJob () |
Called at end of job. More... | |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
template<typename T > | |
size_t | loopOverEvents (EventPrincipal &cache, size_t &fileNameHash, size_t number, T eventOperator, CLHEP::HepRandomEngine *=nullptr, EventID const *id=nullptr, bool recycleFiles=true) |
template<typename T , typename Iterator > | |
size_t | loopSpecified (EventPrincipal &cache, size_t &fileNameHash, Iterator const &begin, Iterator const &end, T eventOperator) |
ProcessHistoryRegistry const & | processHistoryRegistry () const |
ProcessHistoryRegistry & | processHistoryRegistryForUpdate () |
std::shared_ptr< ProductRegistry const > | productRegistry () const |
std::shared_ptr< ProductRegistry > & | productRegistry () |
ProductRegistry & | productRegistryUpdate () |
VectorInputSource (ParameterSet const &pset, VectorInputSourceDescription const &desc) | |
virtual | ~VectorInputSource () |
Private Member Functions | |
virtual void | beginJob ()=0 |
void | clearEventPrincipal (EventPrincipal &cache) |
virtual void | dropUnwantedBranches_ (std::vector< std::string > const &wantedBranches)=0 |
virtual void | endJob ()=0 |
virtual bool | readOneEvent (EventPrincipal &cache, size_t &fileNameHash, CLHEP::HepRandomEngine *, EventID const *id, bool recycleFiles)=0 |
virtual void | readOneSpecified (EventPrincipal &cache, size_t &fileNameHash, SecondaryEventIDAndFileInfo const &event)=0 |
void | readOneSpecified (EventPrincipal &cache, size_t &fileNameHash, EventID const &event) |
void | throwIfOverLimit (unsigned int consecutiveRejections) const |
Private Attributes | |
unsigned int | consecutiveRejectionsLimit_ |
edm::propagate_const< std::unique_ptr< ProcessHistoryRegistry > > | processHistoryRegistry_ |
edm::propagate_const< std::shared_ptr< ProductRegistry > > | productRegistry_ |
Definition at line 27 of file VectorInputSource.h.
|
explicit |
Definition at line 12 of file VectorInputSource.cc.
|
virtual |
Definition at line 17 of file VectorInputSource.cc.
|
privatepure virtual |
Implemented in edm::EmbeddedRootSource.
Referenced by doBeginJob().
|
private |
Definition at line 23 of file VectorInputSource.cc.
References utilities::cache().
Referenced by loopOverEvents(), and loopSpecified().
void edm::VectorInputSource::doBeginJob | ( | ) |
Called at beginning of job.
Definition at line 25 of file VectorInputSource.cc.
References beginJob().
void edm::VectorInputSource::doEndJob | ( | ) |
Called at end of job.
Definition at line 27 of file VectorInputSource.cc.
References endJob().
void edm::VectorInputSource::dropUnwantedBranches | ( | std::vector< std::string > const & | wantedBranches | ) |
Definition at line 19 of file VectorInputSource.cc.
References dropUnwantedBranches_().
|
privatepure virtual |
Implemented in edm::EmbeddedRootSource.
Referenced by dropUnwantedBranches().
|
privatepure virtual |
Implemented in edm::EmbeddedRootSource.
Referenced by doEndJob().
size_t edm::VectorInputSource::loopOverEvents | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
size_t | number, | ||
T | eventOperator, | ||
CLHEP::HepRandomEngine * | engine = nullptr , |
||
EventID const * | id = nullptr , |
||
bool | recycleFiles = true |
||
) |
Definition at line 85 of file VectorInputSource.h.
References utilities::cache(), clearEventPrincipal(), consecutiveRejectionsLimit_, newFWLiteAna::found, mps_fire::i, contentValuesFiles::number, readOneEvent(), throwIfOverLimit(), and mitigatedMETSequence_cff::U.
size_t edm::VectorInputSource::loopSpecified | ( | EventPrincipal & | cache, |
size_t & | fileNameHash, | ||
Iterator const & | begin, | ||
Iterator const & | end, | ||
T | eventOperator | ||
) |
Definition at line 112 of file VectorInputSource.h.
References utilities::cache(), clearEventPrincipal(), mps_fire::end, mps_fire::i, readOneSpecified(), and mitigatedMETSequence_cff::U.
|
inline |
Definition at line 56 of file VectorInputSource.h.
References processHistoryRegistry_.
|
inline |
Definition at line 57 of file VectorInputSource.h.
References processHistoryRegistry_.
|
inline |
Definition at line 53 of file VectorInputSource.h.
References edm::get_underlying_safe(), and productRegistry_.
|
inline |
Definition at line 54 of file VectorInputSource.h.
References edm::get_underlying_safe(), and productRegistry_.
|
inline |
Definition at line 55 of file VectorInputSource.h.
References productRegistry_.
|
privatepure virtual |
Implemented in edm::EmbeddedRootSource.
Referenced by loopOverEvents().
|
privatepure virtual |
Implemented in edm::EmbeddedRootSource.
Referenced by loopSpecified(), and readOneSpecified().
|
inlineprivate |
Definition at line 68 of file VectorInputSource.h.
References utilities::cache(), info(), and readOneSpecified().
|
private |
Definition at line 29 of file VectorInputSource.cc.
References consecutiveRejectionsLimit_, and Exception.
Referenced by loopOverEvents().
|
private |
Definition at line 81 of file VectorInputSource.h.
Referenced by loopOverEvents(), and throwIfOverLimit().
|
private |
Definition at line 80 of file VectorInputSource.h.
Referenced by processHistoryRegistry(), and processHistoryRegistryForUpdate().
|
private |
Definition at line 79 of file VectorInputSource.h.
Referenced by productRegistry(), and productRegistryUpdate().