src
L1Trigger
TrackFindingTracklet
interface
StubStreamData.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackFindingTracklet_interface_StubStreamData_h
2
#define L1Trigger_TrackFindingTracklet_interface_StubStreamData_h
3
4
#include "
L1Trigger/TrackFindingTracklet/interface/L1TStub.h
"
5
6
#include <string>
7
8
// Represents an element of the bit-accurate stub stream from TrackBuilder output
9
// (This class only needed to support stand-alone running of this code).
10
11
namespace
trklet
{
12
13
class
L1TStub;
14
15
class
StubStreamData
{
16
public
:
17
StubStreamData
() {}
18
19
StubStreamData
(
int
iSeed
,
const
L1TStub
&
stub
,
const
std::string
&
dataBits
)
20
:
iSeed_
(
iSeed
),
stub_
(
stub
),
dataBits_
(
dataBits
) {}
21
22
~StubStreamData
() =
default
;
23
24
int
iSeed
()
const
{
return
iSeed_
; }
// Seed type
25
bool
valid
()
const
{
return
(
iSeed_
>= 0); }
// Valid stub
26
const
L1TStub
&
stub
()
const
{
return
stub_
; }
27
// String with bits of valid bit + r coordinate + phi residual + r or z residual.
28
const
std::string
&
dataBits
()
const
{
return
dataBits_
; }
29
30
private
:
31
int
iSeed_
{-1};
32
L1TStub
stub_
;
33
std::string
dataBits_
{
""
};
34
};
35
};
// namespace trklet
36
#endif
trklet::StubStreamData
Definition:
StubStreamData.h:15
trklet::StubStreamData::valid
bool valid() const
Definition:
StubStreamData.h:25
trklet::StubStreamData::iSeed
int iSeed() const
Definition:
StubStreamData.h:24
trklet::StubStreamData::iSeed_
int iSeed_
Definition:
StubStreamData.h:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
trklet::StubStreamData::StubStreamData
StubStreamData(int iSeed, const L1TStub &stub, const std::string &dataBits)
Definition:
StubStreamData.h:19
trklet::StubStreamData::dataBits
const std::string & dataBits() const
Definition:
StubStreamData.h:28
trklet::StubStreamData::~StubStreamData
~StubStreamData()=default
trklet::StubStreamData::dataBits_
std::string dataBits_
Definition:
StubStreamData.h:33
trklet::StubStreamData::stub
const L1TStub & stub() const
Definition:
StubStreamData.h:26
trklet::L1TStub
Definition:
L1TStub.h:14
trklet::StubStreamData::stub_
L1TStub stub_
Definition:
StubStreamData.h:32
L1TStub.h
trklet
Definition:
AllInnerStubsMemory.h:10
trklet::StubStreamData::StubStreamData
StubStreamData()
Definition:
StubStreamData.h:17
Generated for CMSSW Reference Manual by
1.8.14