ATLAS Offline Software
Loading...
Searching...
No Matches
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
virtual ~SCT_RandomDisabledCellGenerator ()=default
 Destructor.
virtual StatusCode initialize () override
 AlgTool initialize.
virtual StatusCode finalize () override
 AlgTool finalize.
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}
#define ATH_MSG_INFO(x)

◆ 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}
#define ATH_MSG_DEBUG(x)

◆ 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}
static void disconnected(SiChargedDiode &chDiode, bool flag, bool mask=false)
Definition SiHelper.h:111

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.

63{this, "TotalBadChannels", 0.01, "probability that a cell is disabled"};

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