Main Page
Namespaces
Classes
Package Documentation
DataFormats
TCDS
src
L1aInfo.cc
Go to the documentation of this file.
1
#include "
DataFormats/TCDS/interface/L1aInfo.h
"
2
#include "
DataFormats/TCDS/interface/TCDSRaw.h
"
3
4
L1aInfo::L1aInfo
() :
5
orbitNr_(0),
6
bxid_(0),
7
index_(0),
8
eventType_(0)
9
{}
10
11
12
L1aInfo::L1aInfo
(
const
tcds::L1aInfo_v1
& l1Info) :
13
orbitNr_
(((
uint64_t
)(l1Info.orbithigh)<<32)|l1Info.orbitlow),
14
bxid_
(l1Info.bxid),
15
index_
(-l1Info.ind0 - 1),
16
eventType_
(l1Info.eventtype)
17
{}
18
19
20
std::ostream&
operator<<
(std::ostream&
s
,
const
L1aInfo
& l1aInfo)
21
{
22
s <<
"Index: "
<< l1aInfo.
getIndex
() << std::endl;
23
s <<
" OrbitNr: "
<< l1aInfo.
getOrbitNr
() << std::endl;
24
s <<
" BXID: "
<< l1aInfo.
getBXID
() << std::endl;
25
s <<
" EventType: "
<< (uint16_t)l1aInfo.
getEventType
() << std::endl;
26
27
return
s
;
28
}
L1aInfo::eventType_
uint8_t eventType_
Definition:
L1aInfo.h:44
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
L1aInfo
Class to contain L1 accept history information from TCDS FED.
Definition:
L1aInfo.h:17
L1aInfo::orbitNr_
uint64_t orbitNr_
Definition:
L1aInfo.h:41
tcds::L1aInfo_v1
Definition:
TCDSRaw.h:56
L1aInfo::getBXID
uint16_t getBXID() const
Definition:
L1aInfo.h:33
L1aInfo::getEventType
uint8_t getEventType() const
Definition:
L1aInfo.h:36
L1aInfo::L1aInfo
L1aInfo()
Definition:
L1aInfo.cc:4
L1aInfo.h
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
L1aInfo::index_
int16_t index_
Definition:
L1aInfo.h:43
operator<<
std::ostream & operator<<(std::ostream &s, const L1aInfo &l1aInfo)
Pretty-print operator for L1aInfo.
Definition:
L1aInfo.cc:20
L1aInfo::bxid_
uint16_t bxid_
Definition:
L1aInfo.h:42
L1aInfo::getIndex
int16_t getIndex() const
Definition:
L1aInfo.h:27
TCDSRaw.h
L1aInfo::getOrbitNr
uint64_t getOrbitNr() const
Definition:
L1aInfo.h:30
Generated for CMSSW Reference Manual by
1.8.11