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

◆ iterator

Definition at line 32 of file CrossingFramePlaybackInfoNew.h.

◆ range

Definition at line 33 of file CrossingFramePlaybackInfoNew.h.

Constructor & Destructor Documentation

◆ CrossingFramePlaybackInfoNew() [1/2]

CrossingFramePlaybackInfoNew::CrossingFramePlaybackInfoNew ( )
inline

Definition at line 27 of file CrossingFramePlaybackInfoNew.h.

27 {}

◆ CrossingFramePlaybackInfoNew() [2/2]

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

Definition at line 4 of file CrossingFramePlaybackInfoNew.cc.

5  : maxNbSources_(maxNbSources),
8  eventInfo_(),

◆ ~CrossingFramePlaybackInfoNew()

CrossingFramePlaybackInfoNew::~CrossingFramePlaybackInfoNew ( )
inline

Definition at line 30 of file CrossingFramePlaybackInfoNew.h.

30 {}

Member Function Documentation

◆ getEventId()

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

Definition at line 42 of file CrossingFramePlaybackInfoNew.h.

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

References eventInfo_, and hltrates_dqm_sourceclient-live_cfg::offset.

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

◆ getNumberOfEvents()

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

Definition at line 48 of file CrossingFramePlaybackInfoNew.h.

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

References maxNbSources_, minBunch_, and sizes_.

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

◆ setInfo()

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

Definition at line 36 of file CrossingFramePlaybackInfoNew.h.

36  {
37  sizes_.swap(sizes);
38  eventInfo_.swap(eventInfo);
39  }

References ZMuMuAnalysisNtupler_cff::eventInfo, eventInfo_, and sizes_.

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

Member Data Documentation

◆ eventInfo_

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

Definition at line 58 of file CrossingFramePlaybackInfoNew.h.

Referenced by getEventId(), and setInfo().

◆ maxNbSources_

unsigned int CrossingFramePlaybackInfoNew::maxNbSources_

Definition at line 55 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

◆ minBunch_

int CrossingFramePlaybackInfoNew::minBunch_

Definition at line 59 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents().

◆ nBcrossings_

int CrossingFramePlaybackInfoNew::nBcrossings_

Definition at line 56 of file CrossingFramePlaybackInfoNew.h.

◆ sizes_

std::vector<size_t> CrossingFramePlaybackInfoNew::sizes_

Definition at line 57 of file CrossingFramePlaybackInfoNew.h.

Referenced by getNumberOfEvents(), and setInfo().

CrossingFramePlaybackInfoNew::minBunch_
int minBunch_
Definition: CrossingFramePlaybackInfoNew.h:59
MixingModule_cfi.maxBunch
maxBunch
Definition: MixingModule_cfi.py:42
CrossingFramePlaybackInfoNew::nBcrossings_
int nBcrossings_
Definition: CrossingFramePlaybackInfoNew.h:56
CrossingFramePlaybackInfoNew::maxNbSources_
unsigned int maxNbSources_
Definition: CrossingFramePlaybackInfoNew.h:55
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
ZMuMuAnalysisNtupler_cff.eventInfo
eventInfo
Definition: ZMuMuAnalysisNtupler_cff.py:15
CrossingFramePlaybackInfoNew::eventInfo_
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_
Definition: CrossingFramePlaybackInfoNew.h:58
MixingModule_cfi.minBunch
minBunch
Definition: MixingModule_cfi.py:43
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
CrossingFramePlaybackInfoNew::sizes_
std::vector< size_t > sizes_
Definition: CrossingFramePlaybackInfoNew.h:57