ATLAS Offline Software
Loading...
Searching...
No Matches
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):
9
10// Local include(s):
12
13namespace xAOD {
14
19
21 //
22 // Implementation of the raw data accessor functions
23 //
24
26 setBcmWord1 )
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
44
45 return ( ( bcmWord1() >> 4 ) & 0x3f );
46 }
47
49
50 return ( ( bcmWord1() >> 10 ) & 0x1f );
51 }
52
54
55 return ( ( bcmWord1() >> 15 ) & 0x3f );
56 }
57
59
60 return ( ( bcmWord1() >> 21 ) & 0x1f );
61 }
62
64
65 return ( ( bcmWord1() >> 26 ) & 0x3f );
66 }
67
68 int BCMRawData_v1::bcid() const {
69
70 return ( bcmWord2() & 0xfff );
71 }
72
74
75 return ( ( bcmWord2() >> 12 ) & 0xffff );
76 }
77
79
80 return ( ( bcmWord2() >> 28 ) & 0xf );
81 }
82
83 //
85
86} // namespace xAOD
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Class describing the BCM raw data.
uint32_t bcmWord1() const
The first raw word.
int bcid() const
Bunch crossing ID [0-4095].
int channel() const
Channel identifier [0-15].
int error() const
Error bits [0-15].
int pulse2Position() const
Position of second pulse [0-63].
int pulse2Width() const
Width of second pulse [0-31].
int lvl1a() const
Level-1 Accept [0-63].
BCMRawData_v1()
Default constructor.
int pulse1Position() const
Position of first pulse [0-63].
int lvl1id() const
Level-1 ID [0-65535].
uint32_t bcmWord2() const
The second raw word.
int pulse1Width() const
Width of first pulse [0-31].
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
setEventNumber uint32_t