test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
iterator
range
 

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::SecondaryEventIDAndFileInfo
eventInfo_
 
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 24 of file CrossingFramePlaybackInfoNew.h.

Member Typedef Documentation

Definition at line 35 of file CrossingFramePlaybackInfoNew.h.

Definition at line 36 of file CrossingFramePlaybackInfoNew.h.

Constructor & Destructor Documentation

CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( )
inline

Definition at line 30 of file CrossingFramePlaybackInfoNew.h.

30 {}
CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( int  minBunch,
int  maxBunch,
unsigned int  maxNbSources 
)

Definition at line 4 of file CrossingFramePlaybackInfoNew.cc.

CrossingFramePlaybackInfoNew::~CrossingFramePlaybackInfoNew ( )
inline

Definition at line 33 of file CrossingFramePlaybackInfoNew.h.

33 {}

Member Function Documentation

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

Definition at line 45 of file CrossingFramePlaybackInfoNew.h.

References eventInfo_.

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

Definition at line 51 of file CrossingFramePlaybackInfoNew.h.

References maxNbSources_, minBunch_, and sizes_.

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

Definition at line 39 of file CrossingFramePlaybackInfoNew.h.

References eventInfo_, and sizes_.

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

39  {
40  sizes_.swap(sizes);
41  eventInfo_.swap(eventInfo);
42  }
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_

Member Data Documentation

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

Definition at line 61 of file CrossingFramePlaybackInfoNew.h.

Referenced by getEventId(), and setInfo().

unsigned int CrossingFramePlaybackInfoNew::maxNbSources_

Definition at line 58 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

int CrossingFramePlaybackInfoNew::minBunch_

Definition at line 62 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

int CrossingFramePlaybackInfoNew::nBcrossings_

Definition at line 59 of file CrossingFramePlaybackInfoNew.h.

std::vector<size_t> CrossingFramePlaybackInfoNew::sizes_

Definition at line 60 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents(), and setInfo().