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 
)

Definition at line 4 of file CrossingFramePlaybackInfoNew.cc.

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

◆ ~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.

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

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

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

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

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

References dumpTauVariables_cfi::eventInfo, eventInfo_, and sizes_.

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

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().

CrossingFramePlaybackInfoNew::minBunch_
int minBunch_
Definition: CrossingFramePlaybackInfoNew.h:58
MixingModule_cfi.maxBunch
maxBunch
Definition: MixingModule_cfi.py:42
CrossingFramePlaybackInfoNew::nBcrossings_
int nBcrossings_
Definition: CrossingFramePlaybackInfoNew.h:55
CrossingFramePlaybackInfoNew::maxNbSources_
unsigned int maxNbSources_
Definition: CrossingFramePlaybackInfoNew.h:54
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
CrossingFramePlaybackInfoNew::eventInfo_
std::vector< edm::SecondaryEventIDAndFileInfo > eventInfo_
Definition: CrossingFramePlaybackInfoNew.h:57
dumpTauVariables_cfi.eventInfo
eventInfo
add run, event number and lumi section
Definition: dumpTauVariables_cfi.py:12
MixingModule_cfi.minBunch
minBunch
Definition: MixingModule_cfi.py:43
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
CrossingFramePlaybackInfoNew::sizes_
std::vector< size_t > sizes_
Definition: CrossingFramePlaybackInfoNew.h:56