CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::RecordEventID< T > Class Template Reference

#include <PileUp.h>

Public Member Functions

void operator() (EventPrincipal const &eventPrincipal)
 
 RecordEventID (std::vector< edm::EventID > &ids, T &eventOperator)
 

Private Attributes

int eventCount
 
TeventOperator_
 
std::vector< edm::EventID > & ids_
 

Detailed Description

template<typename T>
class edm::RecordEventID< T >

Definition at line 109 of file PileUp.h.

Constructor & Destructor Documentation

template<typename T>
edm::RecordEventID< T >::RecordEventID ( std::vector< edm::EventID > &  ids,
T eventOperator 
)
inline

Definition at line 116 of file PileUp.h.

117  : ids_(ids), eventOperator_(eventOperator), eventCount( 0 ) {}
std::vector< edm::EventID > & ids_
Definition: PileUp.h:112

Member Function Documentation

template<typename T>
void edm::RecordEventID< T >::operator() ( EventPrincipal const &  eventPrincipal)
inline

Definition at line 118 of file PileUp.h.

References edm::RecordEventID< T >::eventCount, edm::RecordEventID< T >::eventOperator_, edm::EventPrincipal::id(), and edm::RecordEventID< T >::ids_.

118  {
119  ids_.push_back(eventPrincipal.id());
120  eventOperator_(eventPrincipal, ++eventCount);
121  }
std::vector< edm::EventID > & ids_
Definition: PileUp.h:112

Member Data Documentation

template<typename T>
int edm::RecordEventID< T >::eventCount
private

Definition at line 114 of file PileUp.h.

Referenced by edm::RecordEventID< T >::operator()().

template<typename T>
T& edm::RecordEventID< T >::eventOperator_
private

Definition at line 113 of file PileUp.h.

Referenced by edm::RecordEventID< T >::operator()().

template<typename T>
std::vector<edm::EventID>& edm::RecordEventID< T >::ids_
private

Definition at line 112 of file PileUp.h.

Referenced by edm::RecordEventID< T >::operator()().