ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODTracking
Root
SCTRawHitValidation_v1.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
xAODTracking/versions/SCTRawHitValidation_v1.h
"
6
7
// EDM include(s):
8
#include "
xAODCore/AuxStoreAccessorMacros.h
"
9
10
namespace
xAOD
{
11
SCTRawHitValidation_v1::SCTRawHitValidation_v1
() { }
12
13
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
uint64_t
,
identifier
, setIdentifier)
14
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
int
, bec, setBec)
15
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
int
, layer, setLayer)
16
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
int
, eta_module, setEta_module)
17
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
int
, phi_module, setPhi_module)
18
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
SCTRawHitValidation_v1
,
int
, side, setSide)
19
20
static
const
SG
::AuxElement::Accessor<
uint32_t
>
word_acc
(
"dataword"
);
21
void
SCTRawHitValidation_v1
::
setWord
(
uint32_t
new_word) {
22
word_acc
(*
this
) = new_word;
23
}
24
25
uint32_t
SCTRawHitValidation_v1::getWord
()
const
{
26
return
word_acc
(*
this
);
27
}
28
29
// decode size of group of strips information
30
int
SCTRawHitValidation_v1::getGroupSize
()
const
{
31
return
getWord
() & 0x7FF;
32
}
33
34
// decode strip information
35
int
SCTRawHitValidation_v1::getStrip
()
const
{
36
return
(
getWord
() >> 11) & 0x7FF;
37
}
38
39
// decode time bin information
40
int
SCTRawHitValidation_v1::getTimeBin
()
const
{
41
return
(
getWord
() >> 22) & 0x7;
42
}
43
44
// returns a word incoding the errors
45
int
SCTRawHitValidation_v1::getErrors
()
const
{
46
return
(
getWord
() >> 25) & 0x7;
47
}
48
49
// returns true if the time bin corresponding to the present BC is on
50
bool
SCTRawHitValidation_v1::OnTime
()
const
{
51
return
(
getWord
() >> 23) & 0x1;
52
}
53
54
// returns true if there is an error in the first hit's data
55
bool
SCTRawHitValidation_v1::FirstHitError
()
const
{
56
return
(
getWord
() >> 29) & 0x1;
57
}
58
59
// returns true if there is an error in the second hit's data
60
bool
SCTRawHitValidation_v1::SecondHitError
()
const
{
61
return
(
getWord
() >> 30) & 0x1;
62
}
63
}
// 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
SCTRawHitValidation_v1.h
xAOD::SCTRawHitValidation_v1
Class describing an SCT Raw Data Object (RDO).
Definition
SCTRawHitValidation_v1.h:22
xAOD::SCTRawHitValidation_v1::SCTRawHitValidation_v1
SCTRawHitValidation_v1()
Definition
SCTRawHitValidation_v1.cxx:11
xAOD::SCTRawHitValidation_v1::getStrip
int getStrip() const
return ID of (first) strip
Definition
SCTRawHitValidation_v1.cxx:35
xAOD::SCTRawHitValidation_v1::OnTime
bool OnTime() const
check if the time bin corresponding to the present BC is on
Definition
SCTRawHitValidation_v1.cxx:50
xAOD::SCTRawHitValidation_v1::getWord
uint32_t getWord() const
access data word of this RDO and properties encoded therein
Definition
SCTRawHitValidation_v1.cxx:25
xAOD::SCTRawHitValidation_v1::FirstHitError
bool FirstHitError() const
check if there is an error in the first hit's data
Definition
SCTRawHitValidation_v1.cxx:55
xAOD::SCTRawHitValidation_v1::setWord
void setWord(uint32_t new_word)
set data word of this RDO
Definition
SCTRawHitValidation_v1.cxx:21
xAOD::SCTRawHitValidation_v1::getErrors
int getErrors() const
return bitmask representing hit errors
Definition
SCTRawHitValidation_v1.cxx:45
xAOD::SCTRawHitValidation_v1::SecondHitError
bool SecondHitError() const
check if there is an error in the second hit's data
Definition
SCTRawHitValidation_v1.cxx:60
xAOD::SCTRawHitValidation_v1::getTimeBin
int getTimeBin() const
Decode time bin information for the 3 consecutive bunch crossings.
Definition
SCTRawHitValidation_v1.cxx:40
xAOD::SCTRawHitValidation_v1::getGroupSize
int getGroupSize() const
return number of strips in this RDO (typically just 1)
Definition
SCTRawHitValidation_v1.cxx:30
const
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::identifier
identifier
Definition
UncalibratedMeasurement_v1.cxx:15
xAOD::uint64_t
uint64_t
Definition
EventInfo_v1.cxx:123
xAOD::word_acc
static const SG::AuxElement::Accessor< uint32_t > word_acc("dataword")
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0