#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, const int start) |
~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 alignCSCRings::s.
Referenced by edm::DataMixingPileupCopy::putPileupInfo().
{ 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 idFirstPileup_, and alignCSCRings::s.
{ idFirstPileup_[s]=id; }
void CrossingFramePlaybackInfoExtended::setStartEventId | ( | const std::vector< edm::EventID > & | id, |
const unsigned int | s, | ||
const int | bcr, | ||
const int | start | ||
) | [inline] |
Definition at line 45 of file CrossingFramePlaybackInfoExtended.h.
References idFirstPileup_, minBunch_, alignCSCRings::s, and dqm_diff::start.
{ std::vector<edm::EventID> newVec; std::vector<edm::EventID>::const_iterator idStart = id.begin()+start; newVec.insert(newVec.begin(), idStart, id.end()); idFirstPileup_[s][bcr-minBunch_]=newVec; }
std::vector<std::vector<std::vector<edm::EventID> > > CrossingFramePlaybackInfoExtended::idFirstPileup_ [private] |
Definition at line 58 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended(), getEventStartInfo(), getStartEventId(), setEventStartInfo(), and setStartEventId().
unsigned int CrossingFramePlaybackInfoExtended::maxNbSources_ [private] |
Definition at line 56 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended().
int CrossingFramePlaybackInfoExtended::minBunch_ [private] |
Definition at line 61 of file CrossingFramePlaybackInfoExtended.h.
Referenced by getStartEventId(), and setStartEventId().
int CrossingFramePlaybackInfoExtended::nBcrossings_ [private] |
Definition at line 60 of file CrossingFramePlaybackInfoExtended.h.
Referenced by CrossingFramePlaybackInfoExtended().