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 
18 #include <vector>
19 #include <utility>
20 
21 #include <iostream>
22 
24 public:
25  // con- and destructors
26 
29 
30  // no setters needed, as this class is just used for backward compatibility
31  // getters
32  std::vector<edm::EventID> getStartEventId(const unsigned int s, const int bcr) const {
33  return (idFirstPileup_[s])[bcr - minBunch_];
34  }
35 
36  void getEventStartInfo(std::vector<std::vector<edm::EventID> > &ids, const unsigned int s) const {
37  ids = idFirstPileup_[s];
38  }
39 
40 private:
41  // we need the same info for each bunchcrossing
42  unsigned int maxNbSources_;
43 
44  std::vector<std::vector<std::vector<edm::EventID> > > idFirstPileup_;
45 
47  int minBunch_;
48 };
49 
50 #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