CMS 3D CMS Logo

Public Member Functions | Private Attributes

CrossingFramePlaybackInfoExtended Class Reference

#include <CrossingFramePlaybackInfoExtended.h>

List of all members.

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

{;}
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.

{;}

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.

                                                                                             {
    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 
) [inline]

Definition at line 45 of file CrossingFramePlaybackInfoExtended.h.

References idFirstPileup_, minBunch_, and alignCSCRings::s.


Member Data Documentation

std::vector<std::vector<std::vector<edm::EventID> > > CrossingFramePlaybackInfoExtended::idFirstPileup_ [private]

Definition at line 56 of file CrossingFramePlaybackInfoExtended.h.

Referenced by getStartEventId(), and setStartEventId().