Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
11 #include "StripEmulatedDefects.h"
12 #include "StripModuleHelper.h"
16 #include "InDetIdentifier/SCT_ID.h"
17 
18 #include "ConnectedModulesUtil.h"
19 
20 namespace InDet {
21 
23  namespace detail {
24  template <>
26  using T_ID = SCT_ID;
31  };
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  }
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
InDet::StripDefectsEmulatorCondAlg::m_moduleVetoTool
ToolHandle< ISCT_ConditionsTool > m_moduleVetoTool
Definition: StripDefectsEmulatorCondAlg.h:49
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
InDet::StripModuleHelper
Helper class to convert between offline column, row and hardware chip, column, row coordinates.
Definition: StripModuleHelper.h:23
InDetDD::SiDetectorElementCollection
Definition: SiDetectorElementCollection.h:30
ISCT_ConditionsTool.h
SCT_ModuleSideDesign.h
InDetDD::SCT_ModuleSideDesign
Definition: SCT_ModuleSideDesign.h:40
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
ConnectedModulesUtil.h
InDet::DefectsEmulatorCondAlgImpl< StripDefectsEmulatorCondAlg >::m_idHelper
const T_ID * m_idHelper
Definition: DefectsEmulatorCondAlgImpl.h:60
detail
Definition: extract_histogram_tag.cxx:14
InDet::StripDefectsEmulatorCondAlg
Conditions algorithms for emulating ITK strip defects.
Definition: StripDefectsEmulatorCondAlg.h:39
StripModuleHelper.h
InDet::detail::DetectorEmulatorCondAlgTraits
Definition: DefectsEmulatorCondAlgImpl.h:20
InDet::StripEmulatedDefects
Specialization of emulated defects conditions data for ITk strips Defect conditions data for defects ...
Definition: StripEmulatedDefects.h:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDet::DefectsEmulatorCondAlgImpl
Conditions algorithms for emulating ITK pixel or strip defects.
Definition: DefectsEmulatorCondAlgImpl.h:35
InDet::StripDefectsEmulatorCondAlg::getModuleConnectionMap
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.
Definition: StripDefectsEmulatorCondAlg.h:57
DefectsEmulatorCondAlgImpl.h
InDet::ConnectedModulesUtil::createModuleConnectionMap
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
Definition: ConnectedModulesUtil.h:28
SiDetectorElement.h
InDet::StripDefectsEmulatorCondAlg::IDName
static std::string IDName()
Name of the SCT_ID helper.
Definition: StripDefectsEmulatorCondAlg.h:53
SCT_ID
Definition: SCT_ID.h:68
InDet::StripDefectsEmulatorCondAlg::initialize
virtual StatusCode initialize() override final
Definition: StripDefectsEmulatorCondAlg.cxx:7
InDet::StripDefectsEmulatorCondAlg::isModuleDefect
bool isModuleDefect(const EventContext &ctx, unsigned int id_hash) const
Alternative method to declare strip modules as defect.
Definition: StripDefectsEmulatorCondAlg.h:63
StripEmulatedDefects.h