ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimRawToLogicalHitsTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FPGATrackSimRAWTOLOGICALHITSTOOL_H
6#define FPGATrackSimRAWTOLOGICALHITSTOOL_H
7
9#include "GaudiKernel/ServiceHandle.h"
10
15#include <vector>
16
17
18// Forward declaration
22
23
25{
26 public:
27
28 FPGATrackSimRawToLogicalHitsTool(const std::string&, const std::string&, const IInterface*);
30 virtual StatusCode initialize() override;
31
32 StatusCode convert(unsigned stage, const FPGATrackSimEventInputHeader& header,
34 StatusCode getUnmapped(std::vector<FPGATrackSimHit>& missing_hits);
35 const FPGATrackSimPlaneMap* getPlaneMap_1st(int sliceNum);
36
37
38private:
39
40 // JO configuration
41 ServiceHandle<IFPGATrackSimMappingSvc> m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc", "FPGATrackSimMappingSvc"};
42 ServiceHandle<IFPGATrackSimEventSelectionSvc> m_EvtSel {this, "FPGATrackSimEventSelectionSvc", ""};
43 IntegerProperty m_saveOptional {this, "SaveOptional", 2, "flag to enable the truth/offline tracking save =0 no optional saved, =1 saved in region, =2 save all "};
44 IntegerArrayProperty m_towersToMap {this, "TowersToMap", {}, "Which Towers to map, goes from 0 to 96!"};
45
46 // internal members
47 std::vector<int> m_towers;
48 std::vector<FPGATrackSimHit> m_missing_hits;// vector to save hits not mapped, debugging only
49 std::vector<int> m_missing_hit_codes; // for histograms used in debugging
50 const FPGATrackSimPlaneMap* m_pmap = nullptr;
51
52};
53
54#endif // FPGATrackSimRAWTOLOGICALHITSTOOL_H
: FPGATrackSim-specific class to represent an hit in the detector.
Maps physical layers to logical layers.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
ServiceHandle< IFPGATrackSimEventSelectionSvc > m_EvtSel
StatusCode convert(unsigned stage, const FPGATrackSimEventInputHeader &header, FPGATrackSimLogicalEventInputHeader &logicheader)
const FPGATrackSimPlaneMap * getPlaneMap_1st(int sliceNum)
ServiceHandle< IFPGATrackSimMappingSvc > m_FPGATrackSimMapping
virtual ~FPGATrackSimRawToLogicalHitsTool()=default
FPGATrackSimRawToLogicalHitsTool(const std::string &, const std::string &, const IInterface *)
StatusCode getUnmapped(std::vector< FPGATrackSimHit > &missing_hits)