CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CrossingFramePlaybackInfoExtended Class Reference

#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::EventIDgetStartEventId (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_
 

Detailed Description

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

Author
Ursula Berthon, Claude Charlot, LLR Palaiseau
Version
1st Version Nov 2007

Definition at line 24 of file CrossingFramePlaybackInfoExtended.h.

Constructor & Destructor Documentation

CrossingFramePlaybackInfoExtended::CrossingFramePlaybackInfoExtended ( )
inline

Definition at line 30 of file CrossingFramePlaybackInfoExtended.h.

30 {;}
CrossingFramePlaybackInfoExtended::CrossingFramePlaybackInfoExtended ( int  minBunch,
int  maxBunch,
unsigned int  maxNbSources 
)

Definition at line 4 of file CrossingFramePlaybackInfoExtended.cc.

References i, idFirstPileup_, maxNbSources_, and nBcrossings_.

4  :maxNbSources_(maxNbSources),minBunch_(minBunch)
5 {
6  //initialise data structures
7  nBcrossings_=maxBunch-minBunch+1;
9  for (unsigned int i=0;i<maxNbSources_;++i) {
10  idFirstPileup_[i].resize(nBcrossings_);
11  }
12 }
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
int i
Definition: DBlmapReader.cc:9
CrossingFramePlaybackInfoExtended::~CrossingFramePlaybackInfoExtended ( )
inline

Definition at line 33 of file CrossingFramePlaybackInfoExtended.h.

33 {;}

Member Function Documentation

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

38  {
39  ids=idFirstPileup_[s];
40  }
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
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_.

36 {return (idFirstPileup_[s])[bcr-minBunch_];}
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
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.

17 {
18  idFirstPileup_[s]=id;
19 }
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
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.

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

45  {
46  std::vector<edm::EventID> newVec;
47  std::vector<edm::EventID>::const_iterator idStart = id.begin()+start;
48  newVec.insert(newVec.begin(), idStart, id.end());
49  idFirstPileup_[s][bcr-minBunch_]=newVec;
50  }
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
tuple start
Check for commandline option errors.
Definition: dqm_diff.py:58

Member Data Documentation

std::vector<std::vector<std::vector<edm::EventID> > > CrossingFramePlaybackInfoExtended::idFirstPileup_
private
unsigned int CrossingFramePlaybackInfoExtended::maxNbSources_
private
int CrossingFramePlaybackInfoExtended::minBunch_
private

Definition at line 61 of file CrossingFramePlaybackInfoExtended.h.

Referenced by getStartEventId(), and setStartEventId().

int CrossingFramePlaybackInfoExtended::nBcrossings_
private