ATLAS Offline Software
FPGATrackSimRawToLogicalHitsTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 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 
14 
15 
16 // Forward declaration
20 
21 
23 {
24  public:
25 
26  FPGATrackSimRawToLogicalHitsTool(const std::string&, const std::string&, const IInterface*);
27  virtual ~FPGATrackSimRawToLogicalHitsTool() = default;
28  virtual StatusCode initialize() override;
29 
32  StatusCode getUnmapped(std::vector<FPGATrackSimHit>& missing_hits);
33 
35 
36 
37 private:
38 
39  // JO configuration
40  ServiceHandle<IFPGATrackSimMappingSvc> m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc", "FPGATrackSimMappingSvc"};
41  ServiceHandle<IFPGATrackSimEventSelectionSvc> m_EvtSel {this, "FPGATrackSimEventSelectionSvc", "FPGATrackSimEventSelectionSvc"};
42  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 "};
43  IntegerArrayProperty m_towersToMap {this, "TowersToMap", {}, "Which Towers to map, goes from 0 to 96!"};
44 
45  // internal members
46  std::vector<int> m_towers;
47  std::vector<FPGATrackSimHit> m_missing_hits;// vector to save hits not mapped, debugging only
48  std::vector<int> m_missing_hit_codes; // for histograms used in debugging
49 
50 };
51 
52 #endif // FPGATrackSimRAWTOLOGICALHITSTOOL_H
FPGATrackSimRawToLogicalHitsTool::convert
StatusCode convert(unsigned stage, const FPGATrackSimEventInputHeader &header, FPGATrackSimLogicalEventInputHeader &logicheader)
Definition: FPGATrackSimRawToLogicalHitsTool.cxx:50
FPGATrackSimRawToLogicalHitsTool::m_missing_hit_codes
std::vector< int > m_missing_hit_codes
Definition: FPGATrackSimRawToLogicalHitsTool.h:48
FPGATrackSimLogicalEventInputHeader
Definition: FPGATrackSimLogicalEventInputHeader.h:21
header
Definition: hcg.cxx:526
python.FPGATrackSimAnalysisConfig.stage
stage
Definition: FPGATrackSimAnalysisConfig.py:475
IFPGATrackSimMappingSvc.h
IFPGATrackSimMappingSvc
Definition: IFPGATrackSimMappingSvc.h:17
FPGATrackSimRawToLogicalHitsTool::getPlaneMap_1st
const FPGATrackSimPlaneMap * getPlaneMap_1st()
Definition: FPGATrackSimRawToLogicalHitsTool.cxx:151
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FPGATrackSimRawToLogicalHitsTool::~FPGATrackSimRawToLogicalHitsTool
virtual ~FPGATrackSimRawToLogicalHitsTool()=default
FPGATrackSimRawToLogicalHitsTool::m_towers
std::vector< int > m_towers
Definition: FPGATrackSimRawToLogicalHitsTool.h:46
AthAlgTool.h
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimRawToLogicalHitsTool::m_missing_hits
std::vector< FPGATrackSimHit > m_missing_hits
Definition: FPGATrackSimRawToLogicalHitsTool.h:47
FPGATrackSimPlaneMap
Definition: FPGATrackSimPlaneMap.h:62
FPGATrackSimRawToLogicalHitsTool::m_FPGATrackSimMapping
ServiceHandle< IFPGATrackSimMappingSvc > m_FPGATrackSimMapping
Definition: FPGATrackSimRawToLogicalHitsTool.h:40
FPGATrackSimHit.h
: FPGATrackSim-specific class to represent an hit in the detector.
FPGATrackSimRawToLogicalHitsTool::initialize
virtual StatusCode initialize() override
Definition: FPGATrackSimRawToLogicalHitsTool.cxx:27
FPGATrackSimRawToLogicalHitsTool::m_EvtSel
ServiceHandle< IFPGATrackSimEventSelectionSvc > m_EvtSel
Definition: FPGATrackSimRawToLogicalHitsTool.h:41
FPGATrackSimRawToLogicalHitsTool
Definition: FPGATrackSimRawToLogicalHitsTool.h:23
IFPGATrackSimEventSelectionSvc.h
FPGATrackSimRawToLogicalHitsTool::m_towersToMap
IntegerArrayProperty m_towersToMap
Definition: FPGATrackSimRawToLogicalHitsTool.h:43
FPGATrackSimRawToLogicalHitsTool::FPGATrackSimRawToLogicalHitsTool
FPGATrackSimRawToLogicalHitsTool(const std::string &, const std::string &, const IInterface *)
Definition: FPGATrackSimRawToLogicalHitsTool.cxx:23
AthAlgTool
Definition: AthAlgTool.h:26
FPGATrackSimRawToLogicalHitsTool::getUnmapped
StatusCode getUnmapped(std::vector< FPGATrackSimHit > &missing_hits)
Definition: FPGATrackSimRawToLogicalHitsTool.cxx:146
FPGATrackSimRawToLogicalHitsTool::m_saveOptional
IntegerProperty m_saveOptional
Definition: FPGATrackSimRawToLogicalHitsTool.h:42
ServiceHandle< IFPGATrackSimMappingSvc >