SimDataFormats
CrossingFrame
interface
CrossingFramePlaybackInfoExtended.h
Go to the documentation of this file.
1
#ifndef CROSSING_FRAME_PLAYBACKINFOEXTENDED_H
2
#define CROSSING_FRAME_PLAYBACKINFOEXTENDED_H
3
16
#include "
DataFormats/Provenance/interface/EventID.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
#include <vector>
19
#include <utility>
20
21
#include <iostream>
22
23
class
CrossingFramePlaybackInfoExtended
{
24
public
:
25
// con- and destructors
26
27
CrossingFramePlaybackInfoExtended
() {}
28
~CrossingFramePlaybackInfoExtended
() {}
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
46
int
nBcrossings_
;
47
int
minBunch_
;
48
};
49
50
#endif
MessageLogger.h
CrossingFramePlaybackInfoExtended::minBunch_
int minBunch_
Definition:
CrossingFramePlaybackInfoExtended.h:47
CrossingFramePlaybackInfoExtended::getStartEventId
std::vector< edm::EventID > getStartEventId(const unsigned int s, const int bcr) const
Definition:
CrossingFramePlaybackInfoExtended.h:32
CrossingFramePlaybackInfoExtended::idFirstPileup_
std::vector< std::vector< std::vector< edm::EventID > > > idFirstPileup_
Definition:
CrossingFramePlaybackInfoExtended.h:44
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
CrossingFramePlaybackInfoExtended
Definition:
CrossingFramePlaybackInfoExtended.h:23
EventID.h
CrossingFramePlaybackInfoExtended::getEventStartInfo
void getEventStartInfo(std::vector< std::vector< edm::EventID > > &ids, const unsigned int s) const
Definition:
CrossingFramePlaybackInfoExtended.h:36
CrossingFramePlaybackInfoExtended::~CrossingFramePlaybackInfoExtended
~CrossingFramePlaybackInfoExtended()
Definition:
CrossingFramePlaybackInfoExtended.h:28
CrossingFramePlaybackInfoExtended::nBcrossings_
int nBcrossings_
Definition:
CrossingFramePlaybackInfoExtended.h:46
CrossingFramePlaybackInfoExtended::maxNbSources_
unsigned int maxNbSources_
Definition:
CrossingFramePlaybackInfoExtended.h:42
CrossingFramePlaybackInfoExtended::CrossingFramePlaybackInfoExtended
CrossingFramePlaybackInfoExtended()
Definition:
CrossingFramePlaybackInfoExtended.h:27
Generated for CMSSW Reference Manual by
1.8.16