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 22 of file CrossingFramePlaybackInfoNew.h.

Member Typedef Documentation

◆ iterator

Definition at line 31 of file CrossingFramePlaybackInfoNew.h.

◆ range

Definition at line 32 of file CrossingFramePlaybackInfoNew.h.

Constructor & Destructor Documentation

◆ CrossingFramePlaybackInfoNew() [1/2]

CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( )
inline

Definition at line 26 of file CrossingFramePlaybackInfoNew.h.

26 {}

◆ CrossingFramePlaybackInfoNew() [2/2]

CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( int  minBunch,
int  maxBunch,
unsigned int  maxNbSources 
)

◆ ~CrossingFramePlaybackInfoNew()

CrossingFramePlaybackInfoNew::~CrossingFramePlaybackInfoNew ( )
inline

Definition at line 29 of file CrossingFramePlaybackInfoNew.h.

29 {}

Member Function Documentation

◆ getEventId()

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

Definition at line 41 of file CrossingFramePlaybackInfoNew.h.

References eventInfo_, and HLT_IsoTrack_cff::offset.

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

41  {
42  std::vector<edm::SecondaryEventIDAndFileInfo>::const_iterator iter = eventInfo_.begin();
43  std::advance(iter, offset);
44  return iter;
45  }
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_

◆ getNumberOfEvents()

size_t CrossingFramePlaybackInfoNew::getNumberOfEvents ( int  bunchIdx,
size_t  sourceNumber 
) const
inline

Definition at line 47 of file CrossingFramePlaybackInfoNew.h.

References maxNbSources_, minBunch_, and sizes_.

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

47  {
48  return sizes_[((bunchIdx - minBunch_) * maxNbSources_) + sourceNumber];
49  }

◆ setInfo()

void CrossingFramePlaybackInfoNew::setInfo ( std::vector< edm::SecondaryEventIDAndFileInfo > &  eventInfo,
std::vector< size_t > &  sizes 
)
inline

Definition at line 35 of file CrossingFramePlaybackInfoNew.h.

References dumpTauVariables_cfi::eventInfo, eventInfo_, and sizes_.

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

35  {
36  sizes_.swap(sizes);
37  eventInfo_.swap(eventInfo);
38  }
eventInfo
add run, event number and lumi section
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_

Member Data Documentation

◆ eventInfo_

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

Definition at line 57 of file CrossingFramePlaybackInfoNew.h.

Referenced by getEventId(), and setInfo().

◆ maxNbSources_

unsigned int CrossingFramePlaybackInfoNew::maxNbSources_

Definition at line 54 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

◆ minBunch_

int CrossingFramePlaybackInfoNew::minBunch_

Definition at line 58 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

◆ nBcrossings_

int CrossingFramePlaybackInfoNew::nBcrossings_

Definition at line 55 of file CrossingFramePlaybackInfoNew.h.

◆ sizes_

std::vector<size_t> CrossingFramePlaybackInfoNew::sizes_

Definition at line 56 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents(), and setInfo().