ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7// EDM include(s):
9
10namespace xAOD {
12
19
20 static const SG::AuxElement::Accessor<uint32_t> word_acc("dataword");
22 word_acc(*this) = new_word;
23 }
24
26 return word_acc(*this);
27 }
28
29 // decode size of group of strips information
31 return getWord() & 0x7FF;
32 }
33
34 // decode strip information
36 return (getWord() >> 11) & 0x7FF;
37 }
38
39 // decode time bin information
41 return (getWord() >> 22) & 0x7;
42 }
43
44 // returns a word incoding the errors
46 return (getWord() >> 25) & 0x7;
47 }
48
49 // returns true if the time bin corresponding to the present BC is on
51 return (getWord() >> 23) & 0x1;
52 }
53
54 // returns true if there is an error in the first hit's data
56 return (getWord() >> 29) & 0x1;
57 }
58
59 // returns true if there is an error in the second hit's data
61 return (getWord() >> 30) & 0x1;
62 }
63} // namespace xAOD
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Class describing an SCT Raw Data Object (RDO).
int getStrip() const
return ID of (first) strip
bool OnTime() const
check if the time bin corresponding to the present BC is on
uint32_t getWord() const
access data word of this RDO and properties encoded therein
bool FirstHitError() const
check if there is an error in the first hit's data
void setWord(uint32_t new_word)
set data word of this RDO
int getErrors() const
return bitmask representing hit errors
bool SecondHitError() const
check if there is an error in the second hit's data
int getTimeBin() const
Decode time bin information for the 3 consecutive bunch crossings.
int getGroupSize() const
return number of strips in this RDO (typically just 1)
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
static const SG::AuxElement::Accessor< uint32_t > word_acc("dataword")