ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SCT_RandomDisabledCellGenerator Class Reference

#include <SCT_RandomDisabledCellGenerator.h>

Inheritance diagram for SCT_RandomDisabledCellGenerator:
Collaboration diagram for SCT_RandomDisabledCellGenerator:

Public Member Functions

 SCT_RandomDisabledCellGenerator (const std::string &type, const std::string &name, const IInterface *parent)
 constructor More...
 
virtual ~SCT_RandomDisabledCellGenerator ()=default
 Destructor. More...
 
virtual StatusCode initialize () override
 AlgTool initialize. More...
 
virtual StatusCode finalize () override
 AlgTool finalize. More...
 
virtual void process (SiChargedDiodeCollection &collection, CLHEP::HepRandomEngine *rndmEngine) const override
 

Private Attributes

FloatProperty m_disableProbability {this, "TotalBadChannels", 0.01, "probability that a cell is disabled"}
 

Detailed Description

Definition at line 35 of file SCT_RandomDisabledCellGenerator.h.

Constructor & Destructor Documentation

◆ SCT_RandomDisabledCellGenerator()

SCT_RandomDisabledCellGenerator::SCT_RandomDisabledCellGenerator ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

constructor

Definition at line 15 of file SCT_RandomDisabledCellGenerator.cxx.

16  : base_class(type, name, parent)
17 {
18 }

◆ ~SCT_RandomDisabledCellGenerator()

virtual SCT_RandomDisabledCellGenerator::~SCT_RandomDisabledCellGenerator ( )
virtualdefault

Destructor.

Member Function Documentation

◆ finalize()

StatusCode SCT_RandomDisabledCellGenerator::finalize ( )
overridevirtual

AlgTool finalize.

Definition at line 26 of file SCT_RandomDisabledCellGenerator.cxx.

26  {
27  ATH_MSG_INFO("SCT_RandomDisabledCellGenerator::finalize()");
28  return StatusCode::SUCCESS;
29 }

◆ initialize()

StatusCode SCT_RandomDisabledCellGenerator::initialize ( )
overridevirtual

AlgTool initialize.

Definition at line 20 of file SCT_RandomDisabledCellGenerator.cxx.

20  {
21  ATH_MSG_DEBUG("SCT_RandomDisabledCellGenerator::initialize()");
22  ATH_MSG_INFO("\tCreating missing bond generator with "<<m_disableProbability<<" probability");
23  return StatusCode::SUCCESS;
24 }

◆ process()

void SCT_RandomDisabledCellGenerator::process ( SiChargedDiodeCollection collection,
CLHEP::HepRandomEngine *  rndmEngine 
) const
overridevirtual

Definition at line 32 of file SCT_RandomDisabledCellGenerator.cxx.

32  {
33  // disabling is applied to all cells even unconnected or below threshold ones to be able to use these cells as well
34  // loop on all charged diodes
35  for (std::pair<const InDetDD::SiCellId, SiChargedDiode>& chargedDiode: collection) {
36  if (CLHEP::RandFlat::shoot(rndmEngine)<m_disableProbability) {
37  SiHelper::disconnected(chargedDiode.second, true, false);
38  }
39  }
40 }

Member Data Documentation

◆ m_disableProbability

FloatProperty SCT_RandomDisabledCellGenerator::m_disableProbability {this, "TotalBadChannels", 0.01, "probability that a cell is disabled"}
private

Definition at line 63 of file SCT_RandomDisabledCellGenerator.h.


The documentation for this class was generated from the following files:
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SCT_RandomDisabledCellGenerator::m_disableProbability
FloatProperty m_disableProbability
Definition: SCT_RandomDisabledCellGenerator.h:63
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
SiHelper::disconnected
static void disconnected(SiChargedDiode &chDiode, bool flag, bool mask=false)
Definition: SiHelper.h:111
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78