ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_SimHelper Class Reference

#include <SCT_SimHelper.h>

Collaboration diagram for SCT_SimHelper:

Static Public Member Functions

static void noise (InDetSimData &sdo, bool flag)
static void belowThreshold (InDetSimData &sdo, bool flag)
static void disabled (InDetSimData &sdo, bool flag)
static bool isNoise (const InDetSimData &sdo)
static bool isBelowThreshold (const InDetSimData &sdo)
static bool isDisabled (const InDetSimData &sdo)
static bool isRejected (const InDetSimData &sdo, bool rejectOutOfBunch, bool rejectUnconnected, bool rejectBelowThreshold, bool rejectDisabled, bool rejectLostInReadout, bool rejectNotTrack, bool rejectExtraNoise)

Private Types

enum  {
  NOISE_SET = 0x1 , NOISE_CLEAR = 0xfffffffe , BT_SET = 0x2 , BT_CLEAR = 0xfffffffd ,
  DISABLED_SET = 0x4 , DISABLED_CLEAR = 0xfffffffb
}

Detailed Description

Definition at line 27 of file SCT_SimHelper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NOISE_SET 
NOISE_CLEAR 
BT_SET 
BT_CLEAR 
DISABLED_SET 
DISABLED_CLEAR 

Definition at line 49 of file SCT_SimHelper.h.

50 {
51 NOISE_SET = 0x1, NOISE_CLEAR = 0xfffffffe,
52 BT_SET = 0x2, BT_CLEAR = 0xfffffffd,
53 DISABLED_SET = 0x4, DISABLED_CLEAR = 0xfffffffb
54 };

Member Function Documentation

◆ belowThreshold()

void SCT_SimHelper::belowThreshold ( InDetSimData & sdo,
bool flag )
inlinestatic

Definition at line 69 of file SCT_SimHelper.h.

70{
71 if (flag)
72 {
73 sdo.m_word |= BT_SET;
74 }
75 else
76 {
77 sdo.m_word &= BT_CLEAR;
78 };
79}

◆ disabled()

void SCT_SimHelper::disabled ( InDetSimData & sdo,
bool flag )
inlinestatic

Definition at line 81 of file SCT_SimHelper.h.

82{
83 if (flag)
84 {
85 sdo.m_word |= DISABLED_SET;
86 }
87 else
88 {
90 };
91}

◆ isBelowThreshold()

bool SCT_SimHelper::isBelowThreshold ( const InDetSimData & sdo)
inlinestatic

Definition at line 98 of file SCT_SimHelper.h.

99{
100 return (sdo.m_word&BT_SET) != 0;
101}

◆ isDisabled()

bool SCT_SimHelper::isDisabled ( const InDetSimData & sdo)
inlinestatic

Definition at line 103 of file SCT_SimHelper.h.

104{
105 return (sdo.m_word&DISABLED_SET) != 0;
106}

◆ isNoise()

bool SCT_SimHelper::isNoise ( const InDetSimData & sdo)
inlinestatic

Definition at line 93 of file SCT_SimHelper.h.

94{
95 return (sdo.m_word&NOISE_SET) != 0;
96}

◆ isRejected()

bool SCT_SimHelper::isRejected ( const InDetSimData & sdo,
bool rejectOutOfBunch,
bool rejectUnconnected,
bool rejectBelowThreshold,
bool rejectDisabled,
bool rejectLostInReadout,
bool rejectNotTrack,
bool rejectExtraNoise )
inlinestatic

Definition at line 108 of file SCT_SimHelper.h.

116{
117 // rejectOutOfBunch not implemented
118 // rejectUnconnected not implemented
119 if (rejectBelowThreshold && isBelowThreshold(sdo) && !isNoise(sdo))
120 return true; // as in previous SCT_DigitTDR_Cnv
121 if (rejectDisabled && isDisabled(sdo)) return true;
122 // rejectLostInReadout not implemented
123 // rejectNotTrack not implemented
124 if (rejectExtraNoise && isNoise(sdo) && isBelowThreshold(sdo))
125 return true;
126 return false;
127}
static bool isNoise(const InDetSimData &sdo)
static bool isBelowThreshold(const InDetSimData &sdo)
static bool isDisabled(const InDetSimData &sdo)

◆ noise()

void SCT_SimHelper::noise ( InDetSimData & sdo,
bool flag )
inlinestatic

Definition at line 57 of file SCT_SimHelper.h.

58{
59 if (flag)
60 {
61 sdo.m_word |= NOISE_SET;
62 }
63 else
64 {
65 sdo.m_word &= NOISE_CLEAR;
66 };
67}

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