#include <VectorInputSource.h>
Public Member Functions | |
void | dropUnwantedBranches (std::vector< std::string > const &wantedBranches) |
template<typename T > | |
size_t | loopRandom (size_t number, T eventOperator) |
template<typename T > | |
size_t | loopSequential (size_t number, T eventOperator) |
template<typename T , typename Collection > | |
size_t | loopSpecified (Collection const &events, T eventOperator) |
VectorInputSource (ParameterSet const &pset, InputSourceDescription const &desc) | |
virtual | ~VectorInputSource () |
Private Member Functions | |
virtual void | dropUnwantedBranches_ (std::vector< std::string > const &wantedBranches)=0 |
virtual EventPrincipal * | readOneRandom ()=0 |
virtual EventPrincipal * | readOneSequential ()=0 |
virtual EventPrincipal * | readOneSpecified (EventID const &event)=0 |
Definition at line 20 of file VectorInputSource.h.
edm::VectorInputSource::VectorInputSource | ( | ParameterSet const & | pset, |
InputSourceDescription const & | desc | ||
) | [explicit] |
Definition at line 7 of file VectorInputSource.cc.
: EDInputSource(pset, desc) {}
edm::VectorInputSource::~VectorInputSource | ( | ) | [virtual] |
Definition at line 10 of file VectorInputSource.cc.
{}
void edm::VectorInputSource::dropUnwantedBranches | ( | std::vector< std::string > const & | wantedBranches | ) |
Definition at line 13 of file VectorInputSource.cc.
References dropUnwantedBranches_().
Referenced by edm::PileUp::dropUnwantedBranches().
{ this->dropUnwantedBranches_(wantedBranches); }
virtual void edm::VectorInputSource::dropUnwantedBranches_ | ( | std::vector< std::string > const & | wantedBranches | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by dropUnwantedBranches().
size_t edm::VectorInputSource::loopRandom | ( | size_t | number, |
T | eventOperator | ||
) |
Definition at line 44 of file VectorInputSource.h.
References i, and readOneRandom().
Referenced by edm::PileUp::readPileUp().
{ size_t i = 0U; for(; i < number; ++i) { EventPrincipal* ep = readOneRandom(); if(!ep) break; eventOperator(*ep); } return i; }
size_t edm::VectorInputSource::loopSequential | ( | size_t | number, |
T | eventOperator | ||
) |
Definition at line 55 of file VectorInputSource.h.
References i, and readOneSequential().
Referenced by edm::PileUp::readPileUp().
{ size_t i = 0U; for(; i < number; ++i) { EventPrincipal* ep = readOneSequential(); if(!ep) break; eventOperator(*ep); } return i; }
size_t edm::VectorInputSource::loopSpecified | ( | Collection const & | events, |
T | eventOperator | ||
) |
Definition at line 66 of file VectorInputSource.h.
References i, and readOneSpecified().
Referenced by edm::PileUp::playPileUp().
virtual EventPrincipal* edm::VectorInputSource::readOneRandom | ( | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopRandom().
virtual EventPrincipal* edm::VectorInputSource::readOneSequential | ( | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopSequential().
virtual EventPrincipal* edm::VectorInputSource::readOneSpecified | ( | EventID const & | event | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopSpecified().