ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::SCTRawHitValidation_v1 Class Reference

Class describing an SCT Raw Data Object (RDO). More...

#include <SCTRawHitValidation_v1.h>

Inheritance diagram for xAOD::SCTRawHitValidation_v1:
Collaboration diagram for xAOD::SCTRawHitValidation_v1:

Public Member Functions

 SCTRawHitValidation_v1 ()
void setIdentifier (uint64_t new_identifier)
 set identifier of this RDO
uint64_t identifier () const
 return identifier of this RDO
void setWord (uint32_t new_word)
 set data word of this RDO
void setBec (int new_bec)
 set bec of this RDO
int bec () const
 get bec of this RDO
void setLayer (int new_layer)
 set layer of this RDO
int layer () const
 get layer of this RDO
void setEta_module (int new_eta_module)
 set eta_module of this RDO
int eta_module () const
 get eta_module of this RDO
void setPhi_module (int new_phi_module)
 set phi_module of this RDO
int phi_module () const
 get phi_module of this RDO
void setSide (int new_side)
 set side of this RDO
int side () const
 get side of this RDO
uint32_t getWord () const
 access data word of this RDO and properties encoded therein
int getGroupSize () const
 return number of strips in this RDO (typically just 1)
int getStrip () const
 return ID of (first) strip
int getTimeBin () const
 Decode time bin information for the 3 consecutive bunch crossings.
int getErrors () const
 return bitmask representing hit errors
bool OnTime () const
 check if the time bin corresponding to the present BC is on
bool FirstHitError () const
 check if there is an error in the first hit's data
bool SecondHitError () const
 check if there is an error in the second hit's data

Detailed Description

Class describing an SCT Raw Data Object (RDO).

Author
Kilian Rosbach kilia.nosp@m.n.ro.nosp@m.sbach.nosp@m.@cer.nosp@m.n.ch

Definition at line 22 of file SCTRawHitValidation_v1.h.

Constructor & Destructor Documentation

◆ SCTRawHitValidation_v1()

xAOD::SCTRawHitValidation_v1::SCTRawHitValidation_v1 ( )

Definition at line 11 of file SCTRawHitValidation_v1.cxx.

11{ }

Member Function Documentation

◆ bec()

int xAOD::SCTRawHitValidation_v1::bec ( ) const

get bec of this RDO

◆ eta_module()

int xAOD::SCTRawHitValidation_v1::eta_module ( ) const

get eta_module of this RDO

◆ FirstHitError()

bool xAOD::SCTRawHitValidation_v1::FirstHitError ( ) const

check if there is an error in the first hit's data

Definition at line 55 of file SCTRawHitValidation_v1.cxx.

55 {
56 return (getWord() >> 29) & 0x1;
57 }
uint32_t getWord() const
access data word of this RDO and properties encoded therein

◆ getErrors()

int xAOD::SCTRawHitValidation_v1::getErrors ( ) const

return bitmask representing hit errors

Definition at line 45 of file SCTRawHitValidation_v1.cxx.

45 {
46 return (getWord() >> 25) & 0x7;
47 }

◆ getGroupSize()

int xAOD::SCTRawHitValidation_v1::getGroupSize ( ) const

return number of strips in this RDO (typically just 1)

Definition at line 30 of file SCTRawHitValidation_v1.cxx.

30 {
31 return getWord() & 0x7FF;
32 }

◆ getStrip()

int xAOD::SCTRawHitValidation_v1::getStrip ( ) const

return ID of (first) strip

Definition at line 35 of file SCTRawHitValidation_v1.cxx.

35 {
36 return (getWord() >> 11) & 0x7FF;
37 }

◆ getTimeBin()

int xAOD::SCTRawHitValidation_v1::getTimeBin ( ) const

Decode time bin information for the 3 consecutive bunch crossings.

This information is stored in 3 bits where the most significant bit corresponds to BC-1. So the 3 bit pattern is: (BC-1), BC, (BC+1).

Definition at line 40 of file SCTRawHitValidation_v1.cxx.

40 {
41 return (getWord() >> 22) & 0x7;
42 }

◆ getWord()

uint32_t xAOD::SCTRawHitValidation_v1::getWord ( ) const

access data word of this RDO and properties encoded therein

return the data word

Definition at line 25 of file SCTRawHitValidation_v1.cxx.

25 {
26 return word_acc(*this);
27 }
static const SG::AuxElement::Accessor< uint32_t > word_acc("dataword")

◆ identifier()

uint64_t xAOD::SCTRawHitValidation_v1::identifier ( ) const

return identifier of this RDO

◆ layer()

int xAOD::SCTRawHitValidation_v1::layer ( ) const

get layer of this RDO

◆ OnTime()

bool xAOD::SCTRawHitValidation_v1::OnTime ( ) const

check if the time bin corresponding to the present BC is on

Definition at line 50 of file SCTRawHitValidation_v1.cxx.

50 {
51 return (getWord() >> 23) & 0x1;
52 }

◆ phi_module()

int xAOD::SCTRawHitValidation_v1::phi_module ( ) const

get phi_module of this RDO

◆ SecondHitError()

bool xAOD::SCTRawHitValidation_v1::SecondHitError ( ) const

check if there is an error in the second hit's data

Definition at line 60 of file SCTRawHitValidation_v1.cxx.

60 {
61 return (getWord() >> 30) & 0x1;
62 }

◆ setBec()

void xAOD::SCTRawHitValidation_v1::setBec ( int new_bec)

set bec of this RDO

◆ setEta_module()

void xAOD::SCTRawHitValidation_v1::setEta_module ( int new_eta_module)

set eta_module of this RDO

◆ setIdentifier()

void xAOD::SCTRawHitValidation_v1::setIdentifier ( uint64_t new_identifier)

set identifier of this RDO

◆ setLayer()

void xAOD::SCTRawHitValidation_v1::setLayer ( int new_layer)

set layer of this RDO

◆ setPhi_module()

void xAOD::SCTRawHitValidation_v1::setPhi_module ( int new_phi_module)

set phi_module of this RDO

◆ setSide()

void xAOD::SCTRawHitValidation_v1::setSide ( int new_side)

set side of this RDO

◆ setWord()

void xAOD::SCTRawHitValidation_v1::setWord ( uint32_t new_word)

set data word of this RDO

Definition at line 21 of file SCTRawHitValidation_v1.cxx.

21 {
22 word_acc(*this) = new_word;
23 }

◆ side()

int xAOD::SCTRawHitValidation_v1::side ( ) const

get side of this RDO


The documentation for this class was generated from the following files: