ATLAS Offline Software
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 
10 namespace xAOD {
12 
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)
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
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::SCTRawHitValidation_v1::SCTRawHitValidation_v1
SCTRawHitValidation_v1()
Definition: SCTRawHitValidation_v1.cxx:11
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
ParticleGun_SamplingFraction.bec
int bec
Definition: ParticleGun_SamplingFraction.py:89
AuxStoreAccessorMacros.h
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SCTRawHitValidation_v1.h
xAOD::SCTRawHitValidation_v1::getGroupSize
int getGroupSize() const
return number of strips in this RDO (typically just 1)
Definition: SCTRawHitValidation_v1.cxx:30
xAOD::SCTRawHitValidation_v1::setWord
void setWord(uint32_t new_word)
set data word of this RDO
Definition: SCTRawHitValidation_v1.cxx:21
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::SCTRawHitValidation_v1::getErrors
int getErrors() const
return bitmask representing hit errors
Definition: SCTRawHitValidation_v1.cxx:45
xAOD::SCTRawHitValidation_v1::getWord
uint32_t getWord() const
access data word of this RDO and properties encoded therein
Definition: SCTRawHitValidation_v1.cxx:25
TRT::Hit::side
@ side
Definition: HitInfo.h:83
xAOD::SCTRawHitValidation_v1
Class describing an SCT Raw Data Object (RDO).
Definition: SCTRawHitValidation_v1.h:22
xAOD::SCTRawHitValidation_v1::getStrip
int getStrip() const
return ID of (first) strip
Definition: SCTRawHitValidation_v1.cxx:35
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
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::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
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::FirstHitError
bool FirstHitError() const
check if there is an error in the first hit's data
Definition: SCTRawHitValidation_v1.cxx:55
xAOD::SCTRawHitValidation_v1::getTimeBin
int getTimeBin() const
Decode time bin information for the 3 consecutive bunch crossings.
Definition: SCTRawHitValidation_v1.cxx:40