Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Sources
interface
VectorInputSource.h
Go to the documentation of this file.
1
#ifndef FWCore_Sources_VectorInputSource_h
2
#define FWCore_Sources_VectorInputSource_h
3
4
/*----------------------------------------------------------------------
5
VectorInputSource: Abstract interface for vector input sources.
6
----------------------------------------------------------------------*/
7
8
#include "
FWCore/Sources/interface/EDInputSource.h
"
9
10
#include "boost/shared_ptr.hpp"
11
12
#include <memory>
13
#include <string>
14
#include <vector>
15
16
namespace
edm {
17
class
EventPrincipal;
18
struct
InputSourceDescription;
19
class
ParameterSet
;
20
class
VectorInputSource
:
public
EDInputSource
{
21
public
:
22
typedef
boost::shared_ptr<EventPrincipal>
EventPrincipalVectorElement
;
23
typedef
std::vector<EventPrincipalVectorElement>
EventPrincipalVector
;
24
explicit
VectorInputSource
(
ParameterSet
const
&
pset
,
InputSourceDescription
const
& desc);
25
virtual
~VectorInputSource
();
26
27
void
readMany
(
int
number,
EventPrincipalVector
&
result
);
28
void
readManyRandom
(
int
number,
EventPrincipalVector
&
result
,
unsigned
int
& fileSeqNumber);
29
void
readManySequential
(
int
number,
EventPrincipalVector
&
result
,
unsigned
int
& fileSeqNumber);
30
void
readManySpecified
(std::vector<EventID>
const
&
events
,
EventPrincipalVector
&
result
);
31
void
dropUnwantedBranches
(std::vector<std::string>
const
& wantedBranches);
32
33
private
:
34
virtual
void
readMany_
(
int
number,
EventPrincipalVector
&
result
) = 0;
35
virtual
void
readManyRandom_
(
int
number,
EventPrincipalVector
&
result
,
unsigned
int
& fileSeqNumber) = 0;
36
virtual
void
readManySequential_
(
int
number,
EventPrincipalVector
&
result
,
unsigned
int
& fileSeqNumber) = 0;
37
virtual
void
readManySpecified_
(std::vector<EventID>
const
&
events
,
EventPrincipalVector
&
result
) = 0;
38
virtual
void
dropUnwantedBranches_
(std::vector<std::string>
const
& wantedBranches) = 0;
39
};
40
}
41
#endif
edm::VectorInputSource::readManySpecified_
virtual void readManySpecified_(std::vector< EventID > const &events, EventPrincipalVector &result)=0
edm::VectorInputSource::dropUnwantedBranches
void dropUnwantedBranches(std::vector< std::string > const &wantedBranches)
Definition:
VectorInputSource.cc:33
ParameterSet
Definition:
Functions.h:16
edm::VectorInputSource::readManySequential_
virtual void readManySequential_(int number, EventPrincipalVector &result, unsigned int &fileSeqNumber)=0
edm::VectorInputSource::readMany
void readMany(int number, EventPrincipalVector &result)
Definition:
VectorInputSource.cc:13
edm::VectorInputSource
Definition:
VectorInputSource.h:20
edm::EDInputSource
Definition:
EDInputSource.h:19
edm::VectorInputSource::readManyRandom
void readManyRandom(int number, EventPrincipalVector &result, unsigned int &fileSeqNumber)
Definition:
VectorInputSource.cc:18
edm::InputSourceDescription
Definition:
InputSourceDescription.h:17
edm::VectorInputSource::~VectorInputSource
virtual ~VectorInputSource()
Definition:
VectorInputSource.cc:10
query.result
tuple result
Definition:
query.py:137
edm::VectorInputSource::readManyRandom_
virtual void readManyRandom_(int number, EventPrincipalVector &result, unsigned int &fileSeqNumber)=0
edm::VectorInputSource::EventPrincipalVector
std::vector< EventPrincipalVectorElement > EventPrincipalVector
Definition:
VectorInputSource.h:23
edm::VectorInputSource::readManySequential
void readManySequential(int number, EventPrincipalVector &result, unsigned int &fileSeqNumber)
Definition:
VectorInputSource.cc:23
EDInputSource.h
edm::VectorInputSource::VectorInputSource
VectorInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
Definition:
VectorInputSource.cc:7
edm::VectorInputSource::EventPrincipalVectorElement
boost::shared_ptr< EventPrincipal > EventPrincipalVectorElement
Definition:
VectorInputSource.h:22
patZpeak.events
tuple events
Definition:
patZpeak.py:19
edm::VectorInputSource::readMany_
virtual void readMany_(int number, EventPrincipalVector &result)=0
edm::ParameterSet
Definition:
ParameterSet.h:32
MultipleCompare.pset
tuple pset
Definition:
MultipleCompare.py:39
edm::VectorInputSource::dropUnwantedBranches_
virtual void dropUnwantedBranches_(std::vector< std::string > const &wantedBranches)=0
edm::VectorInputSource::readManySpecified
void readManySpecified(std::vector< EventID > const &events, EventPrincipalVector &result)
Definition:
VectorInputSource.cc:28
Generated for CMSSW Reference Manual by
1.8.5