CMS 3D CMS Logo

Public Member Functions | Private Member Functions

edm::VectorInputSource Class Reference

#include <VectorInputSource.h>

Inheritance diagram for edm::VectorInputSource:
edm::EDInputSource edm::InputSource edm::ProductRegistryHelper edm::PoolSource

List of all members.

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 EventPrincipalreadOneRandom ()=0
virtual EventPrincipalreadOneRandomWithID (LuminosityBlockID const &id)=0
virtual EventPrincipalreadOneSequential ()=0
virtual EventPrincipalreadOneSequentialWithID (LuminosityBlockID const &id)=0
virtual EventPrincipalreadOneSpecified (EventID const &event)=0

Detailed Description

Definition at line 19 of file VectorInputSource.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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().

template<typename T >
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;
  }
template<typename T >
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;
  }
template<typename T >
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;
  }
template<typename T >
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;
  }
template<typename T , typename Collection >
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().

                                                                                   {
    size_t i = 0U;
    for(typename Collection::const_iterator it = events.begin(), itEnd = events.end(); it != itEnd; ++it) {
      EventPrincipal* ep = readOneSpecified(*it);
      if(!ep) break;
      eventOperator(*ep);
      ++i;
    }
    return i;
  }
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().