CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CrossingFramePlaybackInfo.cc
Go to the documentation of this file.
2 
3 CrossingFramePlaybackInfo::CrossingFramePlaybackInfo(int minBunch, int maxBunch, unsigned int maxNbSources):maxNbSources_(maxNbSources),minBunch_(minBunch)
4 {
5  //initialise data structures
6  nBcrossings_=maxBunch-minBunch+1;
9  nrEvents_.resize(maxNbSources_);
10  for (unsigned int i=0;i<maxNbSources_;++i) {
11  pileupFileNr_[i].resize(nBcrossings_);
12  idFirstPileup_[i].resize(nBcrossings_);
13  nrEvents_[i].resize(nBcrossings_);
14  for (int j=0;j<nBcrossings_;++j) {
15  (pileupFileNr_[i])[j]=-1;
16  (idFirstPileup_[i])[j]=edm::EventID(0,0,0);
17  (nrEvents_[i])[j]=0;
18  }
19  }
20 }
21 
22 void CrossingFramePlaybackInfo::setEventStartInfo(std::vector<edm::EventID> &id, std::vector<int>& fileNr, std::vector<unsigned int>& nrEvents, const unsigned int s)
23 {
24  idFirstPileup_[s]=id;
25  pileupFileNr_[s]=fileNr;
26  nrEvents_[s]=nrEvents;
27 }
int i
Definition: DBlmapReader.cc:9
void setEventStartInfo(std::vector< edm::EventID > &id, std::vector< int > &fileNr, std::vector< unsigned int > &nrEvents, const unsigned int s)
std::vector< std::vector< int > > pileupFileNr_
int j
Definition: DBlmapReader.cc:9
std::vector< std::vector< edm::EventID > > idFirstPileup_
std::vector< std::vector< unsigned int > > nrEvents_