ATLAS Offline Software
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 
13 namespace xAOD {
14 
16  : SG::AuxElement() {
17 
18  }
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 
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
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
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
xAOD::BCMRawData_v1::pulse1Position
int pulse1Position() const
Position of first pulse [0-63].
Definition: BCMRawData_v1.cxx:43
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::BCMRawData_v1::bcmWord2
uint32_t bcmWord2() const
The second raw word.
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::BCMRawData_v1::pulse2Position
int pulse2Position() const
Position of second pulse [0-63].
Definition: BCMRawData_v1.cxx:53
xAOD::BCMRawData_v1::lvl1a
int lvl1a() const
Level-1 Accept [0-63].
Definition: BCMRawData_v1.cxx:63
xAOD::bcmWord2
bcmWord2
Definition: BCMRawData_v1.cxx:27
xAOD::BCMRawData_v1::pulse2Width
int pulse2Width() const
Width of second pulse [0-31].
Definition: BCMRawData_v1.cxx:58
xAOD::BCMRawData_v1::BCMRawData_v1
BCMRawData_v1()
Default constructor.
Definition: BCMRawData_v1.cxx:15
xAOD::BCMRawData_v1::bcmWord1
uint32_t bcmWord1() const
The first raw word.
xAOD::BCMRawData_v1::error
int error() const
Error bits [0-15].
Definition: BCMRawData_v1.cxx:78
BCMRawData_v1.h
xAOD::BCMRawData_v1::lvl1id
int lvl1id() const
Level-1 ID [0-65535].
Definition: BCMRawData_v1.cxx:73
xAOD::BCMRawData_v1::pulse1Width
int pulse1Width() const
Width of first pulse [0-31].
Definition: BCMRawData_v1.cxx:48
xAOD::BCMRawData_v1::bcid
int bcid() const
Bunch crossing ID [0-4095].
Definition: BCMRawData_v1.cxx:68
xAOD::BCMRawData_v1
Class describing the BCM raw data.
Definition: BCMRawData_v1.h:31