#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 | loopRandomWithID (LuminosityBlockID const &id, size_t number, T eventOperator) |
template<typename T > | |
size_t | loopSequential (size_t number, T eventOperator) |
template<typename T > | |
size_t | loopSequentialWithID (LuminosityBlockID const &id, 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 * | readOneRandomWithID (LuminosityBlockID const &id)=0 |
virtual EventPrincipal * | readOneSequential ()=0 |
virtual EventPrincipal * | readOneSequentialWithID (LuminosityBlockID const &id)=0 |
virtual EventPrincipal * | readOneSpecified (EventID const &event)=0 |
Definition at line 19 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 49 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::loopRandomWithID | ( | LuminosityBlockID const & | id, |
size_t | number, | ||
T | eventOperator | ||
) |
Definition at line 71 of file VectorInputSource.h.
References i, and readOneRandomWithID().
Referenced by edm::PileUp::readPileUp().
{ size_t i = 0U; for(; i < number; ++i) { EventPrincipal* ep = readOneRandomWithID(id); if(!ep) break; eventOperator(*ep); } return i; }
size_t edm::VectorInputSource::loopSequential | ( | size_t | number, |
T | eventOperator | ||
) |
Definition at line 60 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::loopSequentialWithID | ( | LuminosityBlockID const & | id, |
size_t | number, | ||
T | eventOperator | ||
) |
Definition at line 82 of file VectorInputSource.h.
References i, and readOneSequentialWithID().
Referenced by edm::PileUp::readPileUp().
{ size_t i = 0U; for(; i < number; ++i) { EventPrincipal* ep = readOneSequentialWithID(id); if(!ep) break; eventOperator(*ep); } return i; }
size_t edm::VectorInputSource::loopSpecified | ( | Collection const & | events, |
T | eventOperator | ||
) |
Definition at line 93 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::readOneRandomWithID | ( | LuminosityBlockID const & | id | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopRandomWithID().
virtual EventPrincipal* edm::VectorInputSource::readOneSequential | ( | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopSequential().
virtual EventPrincipal* edm::VectorInputSource::readOneSequentialWithID | ( | LuminosityBlockID const & | id | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopSequentialWithID().
virtual EventPrincipal* edm::VectorInputSource::readOneSpecified | ( | EventID const & | event | ) | [private, pure virtual] |
Implemented in edm::PoolSource.
Referenced by loopSpecified().