#include <CrossingFramePlaybackInfoExtended.h>
Public Member Functions | |
CrossingFramePlaybackInfoExtended () | |
CrossingFramePlaybackInfoExtended (int minBunch, int maxBunch, unsigned int maxNbSources) | |
void | getEventStartInfo (std::vector< std::vector< edm::EventID > > &ids, const unsigned int s) const |
std::vector< edm::EventID > | getStartEventId (const unsigned int s, const int bcr) const |
void | setEventStartInfo (std::vector< std::vector< edm::EventID > > &id, const unsigned int s) |
void | setStartEventId (const std::vector< edm::EventID > &id, const unsigned int s, const int bcr) |
~CrossingFramePlaybackInfoExtended () | |
Private Attributes | |
std::vector< std::vector < std::vector< edm::EventID > > > | idFirstPileup_ |
unsigned int | maxNbSources_ |
int | minBunch_ |
int | nBcrossings_ |
CrossingFramePlaybackInfoExtended 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
Definition at line 24 of file CrossingFramePlaybackInfoExtended.h.
CrossingFramePlaybackInfoExtended::CrossingFramePlaybackInfoExtended | ( | ) | [inline] |
Definition at line 30 of file CrossingFramePlaybackInfoExtended.h.
{;}
CrossingFramePlaybackInfoExtended::CrossingFramePlaybackInfoExtended | ( | int | minBunch, |
int | maxBunch, | ||
unsigned int | maxNbSources | ||
) |
Definition at line 4 of file CrossingFramePlaybackInfoExtended.cc.
References i, idFirstPileup_, maxNbSources_, and nBcrossings_.
:maxNbSources_(maxNbSources),minBunch_(minBunch) { //initialise data structures nBcrossings_=maxBunch-minBunch+1; idFirstPileup_.resize(maxNbSources_); for (unsigned int i=0;i<maxNbSources_;++i) { idFirstPileup_[i].resize(nBcrossings_); } }
CrossingFramePlaybackInfoExtended::~CrossingFramePlaybackInfoExtended | ( | ) | [inline] |
Definition at line 33 of file CrossingFramePlaybackInfoExtended.h.
{;}
void CrossingFramePlaybackInfoExtended::getEventStartInfo | ( | std::vector< std::vector< edm::EventID > > & | ids, |
const unsigned int | s | ||
) | const [inline] |
Definition at line 38 of file CrossingFramePlaybackInfoExtended.h.
References idFirstPileup_, and asciidump::s.
{ ids=idFirstPileup_[s]; }
std::vector<edm::EventID> CrossingFramePlaybackInfoExtended::getStartEventId | ( | const unsigned int | s, |
const int | bcr | ||
) | const [inline] |
Definition at line 36 of file CrossingFramePlaybackInfoExtended.h.
References idFirstPileup_, and minBunch_.
{return (idFirstPileup_[s])[bcr-minBunch_];}
void CrossingFramePlaybackInfoExtended::setEventStartInfo | ( | std::vector< std::vector< edm::EventID > > & | id, |
const unsigned int | s | ||
) |
Definition at line 16 of file CrossingFramePlaybackInfoExtended.cc.
References ExpressReco_HICollisions_FallBack::id, idFirstPileup_, and asciidump::s.
Referenced by edm::MixingModule::setEventStartInfo().
{ idFirstPileup_[s]=id; }
void CrossingFramePlaybackInfoExtended::setStartEventId | ( | const std::vector< edm::EventID > & | id, |
const unsigned int | s, | ||
const int | bcr | ||
) | [inline] |
Definition at line 45 of file CrossingFramePlaybackInfoExtended.h.
References ExpressReco_HICollisions_FallBack::id, idFirstPileup_, minBunch_, and asciidump::s.
{idFirstPileup_[s][bcr-minBunch_]=id;}
std::vector<std::vector<std::vector<edm::EventID> > > CrossingFramePlaybackInfoExtended::idFirstPileup_ [private] |
Definition at line 53 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended(), getEventStartInfo(), getStartEventId(), setEventStartInfo(), and setStartEventId().
unsigned int CrossingFramePlaybackInfoExtended::maxNbSources_ [private] |
Definition at line 51 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended().
int CrossingFramePlaybackInfoExtended::minBunch_ [private] |
Definition at line 56 of file CrossingFramePlaybackInfoExtended.h.
Referenced by getStartEventId(), and setStartEventId().
int CrossingFramePlaybackInfoExtended::nBcrossings_ [private] |
Definition at line 55 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended().