ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
EFTracking
FPGATrackSim
FPGATrackSimInput
src
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
5
#include "
FPGATrackSimDumpDetStatusAlgo.h
"
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
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
17
StatusCode
FPGATrackSimDumpDetStatusAlgo::initialize
(){
18
// select how the input is obtained
19
if
(
m_DumpBadModules
||
m_DumpGlobalToLocalMap
) {
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
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
27
StatusCode
FPGATrackSimDumpDetStatusAlgo::execute
(
const
EventContext&
/*ctx*/
) {
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
37
if
(
m_DumpGlobalToLocalMap
) {
38
m_detectorTool
->dumpGlobalToLocalModuleMap();
// Dump the map of the module of each tower
39
m_DumpGlobalToLocalMap
=
false
;
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
49
if
(
m_DumpModulePositions
) {
50
//m_detectorTool->dumpModulePositions();
51
m_DumpModulePositions
=
false
;
52
}
53
54
return
StatusCode::SUCCESS;
55
}
56
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
FPGATrackSimDumpDetStatusAlgo.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
FPGATrackSimDumpDetStatusAlgo::m_DumpModulePositions
Gaudi::Property< bool > m_DumpModulePositions
Definition
FPGATrackSimDumpDetStatusAlgo.h:30
FPGATrackSimDumpDetStatusAlgo::m_DumpGlobalToLocalMap
Gaudi::Property< bool > m_DumpGlobalToLocalMap
Definition
FPGATrackSimDumpDetStatusAlgo.h:28
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::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
FPGATrackSimDumpDetStatusAlgo.cxx:27
FPGATrackSimDumpDetStatusAlgo::initialize
virtual StatusCode initialize() override
Definition
FPGATrackSimDumpDetStatusAlgo.cxx:17
FPGATrackSimDumpDetStatusAlgo::FPGATrackSimDumpDetStatusAlgo
FPGATrackSimDumpDetStatusAlgo(const std::string &name, ISvcLocator *pSvcLocator)
Definition
FPGATrackSimDumpDetStatusAlgo.cxx:12
Generated on
for ATLAS Offline Software by
1.17.0