ATLAS Offline Software
Loading...
Searching...
No Matches
StripDefectsEmulatorCondAlg.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6#ifndef INDET_STRIPDEFECTSEMULATORCONDALG_H
7#define INDET_STRIPDEFECTSEMULATORCONDALG_H
8
10
12#include "StripModuleHelper.h"
17
19
20namespace InDet {
21
23 namespace detail {
24 template <>
32 }
33
38 class StripDefectsEmulatorCondAlg : public DefectsEmulatorCondAlgImpl<StripDefectsEmulatorCondAlg>
39 {
40 public:
42
44
45 virtual StatusCode initialize() override final;
46
47 protected:
48 ToolHandle<ISCT_ConditionsTool> m_moduleVetoTool
49 {this,"SCTConditionsTool","","Optional SCT conditions tool to mark modules as defect (alternative to ModulePattern)"};
50
53 static std::string IDName() { return std::string("SCT_ID"); }
54
57 std::unordered_multimap<unsigned int, unsigned int> getModuleConnectionMap(const InDetDD::SiDetectorElementCollection &det_ele_coll) const {
59 }
60
63 bool isModuleDefect(const EventContext &ctx, unsigned int id_hash) const {
64 return (m_moduleVetoTool.isEnabled() && !m_moduleVetoTool->isGood(id_hash, ctx));
65 }
66 };
67}
68#endif
header file for baseclass of SCT conditions tools
This is an Identifier helper class for the SCT subdetector.
Base class for the SCT module side design, extended by the Forward and Barrel module design.
Class to hold the SiDetectorElement objects to be put in the detector store.
Conditions algorithms for emulating ITK pixel or strip defects.
Conditions algorithms for emulating ITK strip defects.
static std::string IDName()
Name of the SCT_ID helper.
std::unordered_multimap< unsigned int, unsigned int > getModuleConnectionMap(const InDetDD::SiDetectorElementCollection &det_ele_coll) const
Return the map which defines which modules are connected to the same sensor as a reference module.
bool isModuleDefect(const EventContext &ctx, unsigned int id_hash) const
Alternative method to declare strip modules as defect.
ToolHandle< ISCT_ConditionsTool > m_moduleVetoTool
virtual StatusCode initialize() override final
Specialization of emulated defects conditions data for ITk strips Defect conditions data for defects ...
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
std::unordered_multimap< unsigned int, unsigned int > createModuleConnectionMap(const T_ID &id_helper, const InDetDD::SiDetectorElementCollection &det_ele_coll)
create a map between detector elements and all such elements connected the same sensor
Primary Vertex Finder.