ATLAS Offline Software
Static Public Member Functions | Private Types | List of all members
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 55 of file SCT_SimHelper.h.

58 {
59  if (flag)
60  {

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  {
89  sdo.m_word &= DISABLED_CLEAR;
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 }

◆ 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:
SCT_SimHelper::isDisabled
static bool isDisabled(const InDetSimData &sdo)
Definition: SCT_SimHelper.h:103
SCT_SimHelper::NOISE_SET
@ NOISE_SET
Definition: SCT_SimHelper.h:57
SCT_SimHelper::DISABLED_CLEAR
@ DISABLED_CLEAR
Definition: SCT_SimHelper.h:59
SCT_SimHelper::NOISE_CLEAR
@ NOISE_CLEAR
Definition: SCT_SimHelper.h:57
master.flag
bool flag
Definition: master.py:29
SCT_SimHelper::BT_SET
@ BT_SET
Definition: SCT_SimHelper.h:58
SCT_SimHelper::BT_CLEAR
@ BT_CLEAR
Definition: SCT_SimHelper.h:58
SCT_SimHelper::isNoise
static bool isNoise(const InDetSimData &sdo)
Definition: SCT_SimHelper.h:93
InDetSimData::m_word
int m_word
Definition: InDetSimData.h:64
SCT_SimHelper::DISABLED_SET
@ DISABLED_SET
Definition: SCT_SimHelper.h:59
SCT_SimHelper::isBelowThreshold
static bool isBelowThreshold(const InDetSimData &sdo)
Definition: SCT_SimHelper.h:98