CMS 3D CMS Logo

CrossingFramePlaybackInfoExtended.h
Go to the documentation of this file.
1 #ifndef CROSSING_FRAME_PLAYBACKINFOEXTENDED_H
2 #define CROSSING_FRAME_PLAYBACKINFOEXTENDED_H
3 
17 #include <vector>
18 #include <utility>
19 
20 #include <iostream>
21 
23 public:
24  // con- and destructors
25 
28 
29  // no setters needed, as this class is just used for backward compatibility
30  // getters
31  std::vector<edm::EventID> getStartEventId(const unsigned int s, const int bcr) const {
32  return (idFirstPileup_[s])[bcr - minBunch_];
33  }
34 
35  void getEventStartInfo(std::vector<std::vector<edm::EventID> > &ids, const unsigned int s) const {
36  ids = idFirstPileup_[s];
37  }
38 
39 private:
40  // we need the same info for each bunchcrossing
41  unsigned int maxNbSources_;
42 
43  std::vector<std::vector<std::vector<edm::EventID> > > idFirstPileup_;
44 
46  int minBunch_;
47 };
48 
49 #endif
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
std::vector< edm::EventID > getStartEventId(const unsigned int s, const int bcr) const
void getEventStartInfo(std::vector< std::vector< edm::EventID > > &ids, const unsigned int s) const