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

#include <SCT_CalibModuleListTool.h>

Inheritance diagram for SCT_CalibModuleListTool:
Collaboration diagram for SCT_CalibModuleListTool:

Public Member Functions

 SCT_CalibModuleListTool (const std::string &, const std::string &, const IInterface *)
 
virtual ~SCT_CalibModuleListTool ()=default
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
virtual StatusCode readModuleList (std::map< Identifier, std::set< Identifier >> &moduleList) const
 

Private Attributes

const SCT_IDm_pSCTHelper {nullptr}
 
ToolHandle< ISCT_MonitorConditionsToolm_MonitorConditionsTool {this, "SCT_MonitorConditionsTool", "SCT_MonitorConditionsTool/InDetSCT_MonitorConditionsTool", "Tool to retrieve noisy strip information"}
 
ServiceHandle< IIOVDbSvcm_IOVDbSvc {this, "IOVDbSvc", "IOVDbSvc"}
 

Detailed Description

Definition at line 34 of file SCT_CalibModuleListTool.h.

Constructor & Destructor Documentation

◆ SCT_CalibModuleListTool()

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

Definition at line 7 of file SCT_CalibModuleListTool.cxx.

7  :
8  base_class(type, name, parent)
9 {
10 }

◆ ~SCT_CalibModuleListTool()

virtual SCT_CalibModuleListTool::~SCT_CalibModuleListTool ( )
virtualdefault

Member Function Documentation

◆ finalize()

StatusCode SCT_CalibModuleListTool::finalize ( )
virtual

Definition at line 24 of file SCT_CalibModuleListTool.cxx.

24  {
25  return StatusCode::SUCCESS;
26 }

◆ initialize()

StatusCode SCT_CalibModuleListTool::initialize ( )
virtual

Definition at line 12 of file SCT_CalibModuleListTool.cxx.

12  {
13  ATH_MSG_DEBUG("Initializing SCT_CalibModuleListTool");
14 
15  ATH_CHECK(detStore()->retrieve(m_pSCTHelper, "SCT_ID"));
17  ATH_MSG_DEBUG("in SCT_CalibModuleListTool::initialize after m_MonitorConditionsTool retrieved");
18  ATH_CHECK(m_IOVDbSvc.retrieve());
19  ATH_MSG_DEBUG("in SCT_CalibModuleListTool::initialize after m_IOVDbSvc retrieved");
20 
21  return StatusCode::SUCCESS;
22 }

◆ readModuleList()

StatusCode SCT_CalibModuleListTool::readModuleList ( std::map< Identifier, std::set< Identifier >> &  moduleList) const
virtual

Definition at line 28 of file SCT_CalibModuleListTool.cxx.

28  {
29  //--- Read strips using SCT_MonitorConditionsSvc
32  for (; waferIdItr != waferIdItrE; ++waferIdItr) {
33  if (m_pSCTHelper->side( *waferIdItr ) != 0) continue;
34  Identifier waferId{*waferIdItr};
35  Identifier moduleId{m_pSCTHelper->module_id(waferId)};
36 
37  std::set<Identifier> stripIdList;
38  //ATH_MSG_DEBUG("in SCT_CalibModuleListTool::readModuleList: before accessing badStrips");
39  m_MonitorConditionsTool->badStrips(moduleId, stripIdList);
40  //ATH_MSG_DEBUG("in SCT_CalibModuleListTool::readModuleList: after accessing badStrips");
41  if (!stripIdList.empty()) moduleList.insert(std::map<Identifier, std::set<Identifier>>::value_type(moduleId, stripIdList));
42  }
43 
44  //--- Drop the folder to avoid conflict with SCTCalibWriteSvc
45  if (!(m_IOVDbSvc->dropObject("/SCT/Derived/Monitoring", true))) ATH_MSG_ERROR("Unable to drop /SCT/Derived/Monitoring");
46 
47  return StatusCode::SUCCESS;
48 }

Member Data Documentation

◆ m_IOVDbSvc

ServiceHandle<IIOVDbSvc> SCT_CalibModuleListTool::m_IOVDbSvc {this, "IOVDbSvc", "IOVDbSvc"}
private

Definition at line 50 of file SCT_CalibModuleListTool.h.

◆ m_MonitorConditionsTool

ToolHandle<ISCT_MonitorConditionsTool> SCT_CalibModuleListTool::m_MonitorConditionsTool {this, "SCT_MonitorConditionsTool", "SCT_MonitorConditionsTool/InDetSCT_MonitorConditionsTool", "Tool to retrieve noisy strip information"}
private

Definition at line 49 of file SCT_CalibModuleListTool.h.

◆ m_pSCTHelper

const SCT_ID* SCT_CalibModuleListTool::m_pSCTHelper {nullptr}
private

Definition at line 48 of file SCT_CalibModuleListTool.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
SCT_CalibModuleListTool::m_pSCTHelper
const SCT_ID * m_pSCTHelper
Definition: SCT_CalibModuleListTool.h:48
SCT_ID::wafer_begin
const_id_iterator wafer_begin(void) const
Iterators over full set of ids. Wafer iterator is sorted.
Definition: SCT_ID.cxx:654
SCT_ID::const_id_iterator
std::vector< Identifier >::const_iterator const_id_iterator
Definition: SCT_ID.h:73
SCT_ID::module_id
Identifier module_id(int barrel_ec, int layer_disk, int phi_module, int eta_module) const
For a single crystal.
Definition: SCT_ID.h:416
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
SCT_CalibModuleListTool::m_IOVDbSvc
ServiceHandle< IIOVDbSvc > m_IOVDbSvc
Definition: SCT_CalibModuleListTool.h:50
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
SCT_CalibModuleListTool::m_MonitorConditionsTool
ToolHandle< ISCT_MonitorConditionsTool > m_MonitorConditionsTool
Definition: SCT_CalibModuleListTool.h:49
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SCT_ID::side
int side(const Identifier &id) const
Definition: SCT_ID.h:752
SCT_ID::wafer_end
const_id_iterator wafer_end(void) const
Definition: SCT_ID.cxx:658
value_type
Definition: EDM_MasterSearch.h:11
WriteBchToCool.moduleList
moduleList
Definition: WriteBchToCool.py:72
Identifier
Definition: IdentifierFieldParser.cxx:14