CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
CrossingFramePlaybackInfoNew Class Reference

#include <CrossingFramePlaybackInfoNew.h>

Public Types

typedef std::vector< edm::SecondaryEventIDAndFileInfo >::iterator iterator
 
typedef std::pair< iterator, iteratorrange
 

Public Member Functions

 CrossingFramePlaybackInfoNew ()
 
 CrossingFramePlaybackInfoNew (int minBunch, int maxBunch, unsigned int maxNbSources)
 
std::vector< edm::SecondaryEventIDAndFileInfo >::const_iterator getEventId (size_t offset) const
 
size_t getNumberOfEvents (int bunchIdx, size_t sourceNumber) const
 
void setInfo (std::vector< edm::SecondaryEventIDAndFileInfo > &eventInfo, std::vector< size_t > &sizes)
 
 ~CrossingFramePlaybackInfoNew ()
 

Public Attributes

std::vector< edm::SecondaryEventIDAndFileInfoeventInfo_
 
unsigned int maxNbSources_
 
int minBunch_
 
int nBcrossings_
 
std::vector< size_t > sizes_
 

Detailed Description

CrossingFramePlaybackInfoNew is written by the Sim Mixing Module it contains information to allow a 'playback' of the MixingModule i.e to find again, on an event/event basis, exactly the same events to superpose

Author
Bill Tanenbaum
Version
1st Version Feb 2015

Definition at line 23 of file CrossingFramePlaybackInfoNew.h.

Member Typedef Documentation

Definition at line 32 of file CrossingFramePlaybackInfoNew.h.

Definition at line 33 of file CrossingFramePlaybackInfoNew.h.

Constructor & Destructor Documentation

CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( )
inline

Definition at line 27 of file CrossingFramePlaybackInfoNew.h.

References MixingModule_cfi::maxBunch, and MixingModule_cfi::minBunch.

27 {}
CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( int  minBunch,
int  maxBunch,
unsigned int  maxNbSources 
)
CrossingFramePlaybackInfoNew::~CrossingFramePlaybackInfoNew ( )
inline

Definition at line 30 of file CrossingFramePlaybackInfoNew.h.

30 {}

Member Function Documentation

std::vector<edm::SecondaryEventIDAndFileInfo>::const_iterator CrossingFramePlaybackInfoNew::getEventId ( size_t  offset) const
inline

Definition at line 42 of file CrossingFramePlaybackInfoNew.h.

References eventInfo_.

Referenced by edm::MixingModule::doPileUp().

42  {
43  std::vector<edm::SecondaryEventIDAndFileInfo>::const_iterator iter = eventInfo_.begin();
44  std::advance(iter, offset);
45  return iter;
46  }
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_
size_t CrossingFramePlaybackInfoNew::getNumberOfEvents ( int  bunchIdx,
size_t  sourceNumber 
) const
inline

Definition at line 48 of file CrossingFramePlaybackInfoNew.h.

References maxNbSources_, minBunch_, and sizes_.

Referenced by edm::MixingModule::doPileUp().

48  {
49  return sizes_[((bunchIdx - minBunch_) * maxNbSources_) + sourceNumber];
50  }
void CrossingFramePlaybackInfoNew::setInfo ( std::vector< edm::SecondaryEventIDAndFileInfo > &  eventInfo,
std::vector< size_t > &  sizes 
)
inline

Definition at line 36 of file CrossingFramePlaybackInfoNew.h.

References eventInfo_, and sizes_.

Referenced by edm::MixingModule::doPileUp().

36  {
37  sizes_.swap(sizes);
38  eventInfo_.swap(eventInfo);
39  }
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_

Member Data Documentation

std::vector<edm::SecondaryEventIDAndFileInfo> CrossingFramePlaybackInfoNew::eventInfo_

Definition at line 58 of file CrossingFramePlaybackInfoNew.h.

Referenced by getEventId(), and setInfo().

unsigned int CrossingFramePlaybackInfoNew::maxNbSources_

Definition at line 55 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

int CrossingFramePlaybackInfoNew::minBunch_

Definition at line 59 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

int CrossingFramePlaybackInfoNew::nBcrossings_

Definition at line 56 of file CrossingFramePlaybackInfoNew.h.

std::vector<size_t> CrossingFramePlaybackInfoNew::sizes_

Definition at line 57 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents(), and setInfo().