ATLAS Offline Software
SCT_CalibModuleListTool.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 SCT_CalibModuleListTool::SCT_CalibModuleListTool(const std::string& type, const std::string& name, const IInterface* parent):
8  base_class(type, name, parent)
9 {
10 }
11 
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 }
23 
25  return StatusCode::SUCCESS;
26 }
27 
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 }
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_CalibModuleListTool::finalize
virtual StatusCode finalize()
Definition: SCT_CalibModuleListTool.cxx:24
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
SCT_CalibModuleListTool::SCT_CalibModuleListTool
SCT_CalibModuleListTool(const std::string &, const std::string &, const IInterface *)
Definition: SCT_CalibModuleListTool.cxx:7
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
SCT_CalibModuleListTool.h
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
SCT_CalibModuleListTool::readModuleList
virtual StatusCode readModuleList(std::map< Identifier, std::set< Identifier >> &moduleList) const
Definition: SCT_CalibModuleListTool.cxx:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SCT_CalibModuleListTool::initialize
virtual StatusCode initialize()
Definition: SCT_CalibModuleListTool.cxx:12
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