#include <FPGATrackSimSlicingEngineTool.h>
|
| ServiceHandle< IFPGATrackSimMappingSvc > | m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc", ""} |
| Gaudi::Property< bool > | m_rootOutput {this, "RootOutput", true, "Wite output ROOT branches"} |
| Gaudi::Property< std::string > | m_layerMap {this, "LayerMap", "", "Binning layer map file, only read if doSecondStage = true."} |
| Gaudi::Property< bool > | m_doSecondStage {this, "doSecondStage", true, "Split hits between first and second stage. If set to false all hits are first stage" } |
| FPGATrackSimLogicalEventInputHeader * | m_slicedFirstPixelHeader = nullptr |
| FPGATrackSimLogicalEventInputHeader * | m_slicedSecondPixelHeader = nullptr |
| FPGATrackSimLogicalEventInputHeader * | m_slicedStripHeader = nullptr |
| std::set< unsigned > | m_layerMapModules |
| StoreGateSvc_t | m_evtStore |
| | Pointer to StoreGate (event store by default)
|
| StoreGateSvc_t | m_detStore |
| | Pointer to StoreGate (detector store by default)
|
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
◆ StoreGateSvc_t
◆ FPGATrackSimSlicingEngineTool()
| FPGATrackSimSlicingEngineTool::FPGATrackSimSlicingEngineTool |
( |
const std::string & | algname, |
|
|
const std::string & | name, |
|
|
const IInterface * | ifc ) |
◆ ~FPGATrackSimSlicingEngineTool()
| virtual FPGATrackSimSlicingEngineTool::~FPGATrackSimSlicingEngineTool |
( |
| ) |
|
|
virtualdefault |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ initialize()
| StatusCode FPGATrackSimSlicingEngineTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ readLayerMap()
| void FPGATrackSimSlicingEngineTool::readLayerMap |
( |
| ) |
|
Definition at line 25 of file FPGATrackSimSlicingEngineTool.cxx.
25 {
26
28 nlohmann::json
data = nlohmann::json::parse(stream);
29
30 std::set<unsigned> modules;
31
32
33 for (
const auto &binelem :
data) {
34 std::vector<unsigned>
bin;
35 binelem.at("bin").get_to(bin);
36 auto& lyrmap = binelem["lyrmap"];
39 for (auto &lyrelem : lyrmap) {
41 lyrelem.at("lyr").get_to(layer);
42 lyrelem.at("mods").get_to(modules);
45
46
47
49 }
50 }
51
53}
char data[hepevt_bytes_allocation_ATLAS]
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ setupSlices()
◆ sliceHits()
| void FPGATrackSimSlicingEngineTool::sliceHits |
( |
const std::vector< std::shared_ptr< const FPGATrackSimHit > > & | hits, |
|
|
std::vector< std::shared_ptr< const FPGATrackSimHit > > & | firstHits, |
|
|
std::vector< std::shared_ptr< const FPGATrackSimHit > > & | secondHits ) |
Definition at line 57 of file FPGATrackSimSlicingEngineTool.cxx.
59 {
60
63
64
65
67 FPGATrackSimTowerInputHeader towerFirstPixel = FPGATrackSimTowerInputHeader(0);
68 FPGATrackSimTowerInputHeader towerSecondPixel = FPGATrackSimTowerInputHeader(0);
71 }
72
73
74 FPGATrackSimTowerInputHeader towerStrips = FPGATrackSimTowerInputHeader(0);
76
77
78 for (const std::shared_ptr<const FPGATrackSimHit>& hit : hits) {
79
80
81
83 continue;
84 }
85
86
87
88 if (hit->isPixel()) {
89
91 firstHits.push_back(hit);
93 }
95 secondHits.push_back(hit);
97 }
98 } else {
99
100
102 }
103 }
104
105 ATH_MSG_DEBUG(
"From " <<
hits.size() <<
" total input hits, sent " << firstHits.size() <<
" (" << secondHits.size() <<
") to first (second) stage in region");
106}
std::vector< uint32_t > getRegions(const FPGATrackSimHit &hit) const
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_detStore
◆ m_doSecondStage
| Gaudi::Property<bool> FPGATrackSimSlicingEngineTool::m_doSecondStage {this, "doSecondStage", true, "Split hits between first and second stage. If set to false all hits are first stage" } |
|
private |
Definition at line 50 of file FPGATrackSimSlicingEngineTool.h.
50{this, "doSecondStage", true, "Split hits between first and second stage. If set to false all hits are first stage" };
◆ m_evtStore
◆ m_FPGATrackSimMapping
◆ m_layerMap
| Gaudi::Property<std::string> FPGATrackSimSlicingEngineTool::m_layerMap {this, "LayerMap", "", "Binning layer map file, only read if doSecondStage = true."} |
|
private |
◆ m_layerMapModules
| std::set<unsigned> FPGATrackSimSlicingEngineTool::m_layerMapModules |
|
private |
◆ m_rootOutput
| Gaudi::Property<bool> FPGATrackSimSlicingEngineTool::m_rootOutput {this, "RootOutput", true, "Wite output ROOT branches"} |
|
private |
◆ m_slicedFirstPixelHeader
◆ m_slicedSecondPixelHeader
◆ m_slicedStripHeader
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: