ATLAS Offline Software
FPGATrackSimDumpDetStatusAlgo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <sstream>
8 #include <iostream>
9 #include <fstream>
10 
12 FPGATrackSimDumpDetStatusAlgo::FPGATrackSimDumpDetStatusAlgo(const std::string& name, ISvcLocator* pSvcLocator) :
13  AthAlgorithm(name, pSvcLocator)
14 {}
15 
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
18  // select how the input is obtained
20  // Use the SG to retrieve the hits, this also means other Athena tools can be used
21  ATH_CHECK(m_detectorTool.retrieve());
22  }
23  return StatusCode::SUCCESS;
24 }
25 
26 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
28 
29  if (m_DumpBadModules) {
30  // These are not available yet
31  ATH_MSG_WARNING( "FPGATrackSimDumpDetStatusAlgo DumpBadModules not available yet");
32  //m_detectorTool->makeBadModuleMap(); //Dump bad SS map
33  //m_detectorTool->dumpDeadModuleSummary(); //Dump bad module map
34  m_DumpBadModules = false; // in case you run on more than 1 event, only dump once
35  }
36 
38  m_detectorTool->dumpGlobalToLocalModuleMap(); // Dump the map of the module of each tower
40  }
41 
42  if (m_DumpIDMap) {
43  // This is not available yet
44  ATH_MSG_WARNING( "FPGATrackSimDumpDetStatusAlgo DumpIDMap not available yet" );
45  //m_detectorTool->dumpIDMap();
46  m_DumpIDMap = false; // in case you run on more than 1 event, only dump once
47  }
48 
50  //m_detectorTool->dumpModulePositions();
52  }
53 
54  return StatusCode::SUCCESS;
55 }
56 
FPGATrackSimDumpDetStatusAlgo::m_detectorTool
ToolHandle< FPGATrackSimDetectorTool > m_detectorTool
Definition: FPGATrackSimDumpDetStatusAlgo.h:25
FPGATrackSimDumpDetStatusAlgo::m_DumpBadModules
Gaudi::Property< bool > m_DumpBadModules
Definition: FPGATrackSimDumpDetStatusAlgo.h:26
FPGATrackSimDumpDetStatusAlgo::m_DumpIDMap
Gaudi::Property< bool > m_DumpIDMap
Definition: FPGATrackSimDumpDetStatusAlgo.h:29
FPGATrackSimDumpDetStatusAlgo::initialize
virtual StatusCode initialize() override
Definition: FPGATrackSimDumpDetStatusAlgo.cxx:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FPGATrackSimDumpDetStatusAlgo::m_DumpModulePositions
Gaudi::Property< bool > m_DumpModulePositions
Definition: FPGATrackSimDumpDetStatusAlgo.h:30
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
FPGATrackSimDumpDetStatusAlgo::FPGATrackSimDumpDetStatusAlgo
FPGATrackSimDumpDetStatusAlgo(const std::string &name, ISvcLocator *pSvcLocator)
Definition: FPGATrackSimDumpDetStatusAlgo.cxx:12
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
FPGATrackSimDumpDetStatusAlgo::execute
virtual StatusCode execute() override
Definition: FPGATrackSimDumpDetStatusAlgo.cxx:27
FPGATrackSimDumpDetStatusAlgo.h
FPGATrackSimDumpDetStatusAlgo::m_DumpGlobalToLocalMap
Gaudi::Property< bool > m_DumpGlobalToLocalMap
Definition: FPGATrackSimDumpDetStatusAlgo.h:28