ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODLuminosity
Root
BCMRawData_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// $Id: BCMRawData_v1.cxx 652111 2015-03-06 10:13:22Z krasznaa $
6
7
// xAOD include(s):
8
#include "
xAODCore/AuxStoreAccessorMacros.h
"
9
10
// Local include(s):
11
#include "
xAODLuminosity/versions/BCMRawData_v1.h
"
12
13
namespace
xAOD
{
14
15
BCMRawData_v1::BCMRawData_v1
()
16
:
SG
::AuxElement() {
17
18
}
19
21
//
22
// Implementation of the raw data accessor functions
23
//
24
25
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
BCMRawData_v1
,
uint32_t
, bcmWord1,
26
setBcmWord1 )
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
BCMRawData_v1
,
uint32_t
,
bcmWord2
,
28
setBcmWord2 )
29
30
//
32
34
//
35
// Implementation of the convenience functions
36
//
37
38
int
BCMRawData_v1
::
channel
()
const
{
39
40
return
(
bcmWord1
() & 0xf );
41
}
42
43
int
BCMRawData_v1::pulse1Position
()
const
{
44
45
return
( (
bcmWord1
() >> 4 ) & 0x3f );
46
}
47
48
int
BCMRawData_v1::pulse1Width
()
const
{
49
50
return
( (
bcmWord1
() >> 10 ) & 0x1f );
51
}
52
53
int
BCMRawData_v1::pulse2Position
()
const
{
54
55
return
( (
bcmWord1
() >> 15 ) & 0x3f );
56
}
57
58
int
BCMRawData_v1::pulse2Width
()
const
{
59
60
return
( (
bcmWord1
() >> 21 ) & 0x1f );
61
}
62
63
int
BCMRawData_v1::lvl1a
()
const
{
64
65
return
( (
bcmWord1
() >> 26 ) & 0x3f );
66
}
67
68
int
BCMRawData_v1::bcid
()
const
{
69
70
return
(
bcmWord2
() & 0xfff );
71
}
72
73
int
BCMRawData_v1::lvl1id
()
const
{
74
75
return
( (
bcmWord2
() >> 12 ) & 0xffff );
76
}
77
78
int
BCMRawData_v1::error
()
const
{
79
80
return
( (
bcmWord2
() >> 28 ) & 0xf );
81
}
82
83
//
85
86
}
// namespace xAOD
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
BCMRawData_v1.h
xAOD::BCMRawData_v1
Class describing the BCM raw data.
Definition
BCMRawData_v1.h:31
xAOD::BCMRawData_v1::bcmWord1
uint32_t bcmWord1() const
The first raw word.
xAOD::BCMRawData_v1::bcid
int bcid() const
Bunch crossing ID [0-4095].
Definition
BCMRawData_v1.cxx:68
xAOD::BCMRawData_v1::channel
int channel() const
Channel identifier [0-15].
Definition
BCMRawData_v1.cxx:38
xAOD::BCMRawData_v1::error
int error() const
Error bits [0-15].
Definition
BCMRawData_v1.cxx:78
xAOD::BCMRawData_v1::pulse2Position
int pulse2Position() const
Position of second pulse [0-63].
Definition
BCMRawData_v1.cxx:53
xAOD::BCMRawData_v1::pulse2Width
int pulse2Width() const
Width of second pulse [0-31].
Definition
BCMRawData_v1.cxx:58
xAOD::BCMRawData_v1::lvl1a
int lvl1a() const
Level-1 Accept [0-63].
Definition
BCMRawData_v1.cxx:63
xAOD::BCMRawData_v1::BCMRawData_v1
BCMRawData_v1()
Default constructor.
Definition
BCMRawData_v1.cxx:15
xAOD::BCMRawData_v1::pulse1Position
int pulse1Position() const
Position of first pulse [0-63].
Definition
BCMRawData_v1.cxx:43
xAOD::BCMRawData_v1::lvl1id
int lvl1id() const
Level-1 ID [0-65535].
Definition
BCMRawData_v1.cxx:73
xAOD::BCMRawData_v1::bcmWord2
uint32_t bcmWord2() const
The second raw word.
xAOD::BCMRawData_v1::pulse1Width
int pulse1Width() const
Width of first pulse [0-31].
Definition
BCMRawData_v1.cxx:48
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::bcmWord2
bcmWord2
Definition
BCMRawData_v1.cxx:27
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0