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, size_t fileNameHash)
 
 RecordEventID (std::vector< edm::SecondaryEventIDAndFileInfo > &ids, T &eventOperator)
 

Private Attributes

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

Detailed Description

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

Definition at line 136 of file PileUp.h.

Constructor & Destructor Documentation

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

Definition at line 143 of file PileUp.h.

144  : ids_(ids), eventOperator_(eventOperator), eventCount(0) {
145  }
std::vector< edm::SecondaryEventIDAndFileInfo > & ids_
Definition: PileUp.h:139

Member Function Documentation

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

Definition at line 146 of file PileUp.h.

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

146  {
147  ids_.emplace_back(eventPrincipal.id(), fileNameHash);
148  eventOperator_(eventPrincipal, ++eventCount);
149  }
std::vector< edm::SecondaryEventIDAndFileInfo > & ids_
Definition: PileUp.h:139

Member Data Documentation

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

Definition at line 141 of file PileUp.h.

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

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

Definition at line 140 of file PileUp.h.

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

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

Definition at line 139 of file PileUp.h.

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