Main Page
Namespaces
Classes
Package Documentation
src
DataFormats
TCDS
interface
L1aInfo.h
Go to the documentation of this file.
1
#ifndef DATAFORMATS_TCDS_L1AINFO_H
2
#define DATAFORMATS_TCDS_L1AINFO_H
3
4
//---------------------------------------------------------------------------
9
//---------------------------------------------------------------------------
10
11
#include <cstdint>
12
#include <ostream>
13
14
#include "
DataFormats/TCDS/interface/TCDSRaw.h
"
15
16
17
class
L1aInfo
18
{
19
20
public
:
21
22
L1aInfo
();
23
24
L1aInfo
(
const
tcds::L1aInfo_v1
&);
25
26
// The history index, where -1 means the previous L1 accept, -2 the one before that, etc.
27
int16_t
getIndex
()
const
{
return
index_
; }
28
29
// The orbit number when the L1 accept occured
30
uint64_t
getOrbitNr
()
const
{
return
orbitNr_
; }
31
32
// The bunch-crossing counter for the L1 accept
33
uint16_t
getBXID
()
const
{
return
bxid_
; }
34
35
// The event type of the L1 accept corresponding to edm::EventAuxiliary::ExperimentType
36
uint8_t
getEventType
()
const
{
return
eventType_
; }
37
38
39
private
:
40
41
uint64_t
orbitNr_
;
42
uint16_t
bxid_
;
43
int16_t
index_
;
44
uint8_t
eventType_
;
45
46
};
47
49
std::ostream&
operator<<
(std::ostream&,
const
L1aInfo
&);
50
51
#endif // DATAFORMATS_TCDS_L1AINFO_H
L1aInfo::eventType_
uint8_t eventType_
Definition:
L1aInfo.h:44
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
operator<<
std::ostream & operator<<(std::ostream &, const L1aInfo &)
Pretty-print operator for L1aInfo.
Definition:
L1aInfo.cc:20
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
L1aInfo::index_
int16_t index_
Definition:
L1aInfo.h:43
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