ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSimTrackMonitor.h
Go to the documentation of this file.
1// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3#ifndef FPGATrackSimTrackMonitor_H
4#define FPGATrackSimTrackMonitor_H
5
13
14#include "GaudiKernel/ServiceHandle.h"
15#include "GaudiKernel/ITHistSvc.h"
17
18class TH1D;
19class TH2D;
20
31
33
34
38 {
39 public:
40
42 // AthAlgTool
43
45 FPGATrackSimTrackMonitor(const std::string &, const std::string &, const IInterface *);
46
49 virtual StatusCode initialize() override;
50
54 void fillRoad(const std::vector<FPGATrackSimRoad>& roads,
55 const std::vector<FPGATrackSimTruthTrack>& truthTracks,
56 size_t nLogicalLayers);
57
59 void fillTrack(const std::vector<const FPGATrackSimTrack*>& tracks,
60 const std::vector<FPGATrackSimTruthTrack>& truthTracks,
61 float chi2Cut);
62
64 unsigned getNElements() const {return m_nElements;}
65
67 unsigned getMaxNElements() const {return m_maxNElements;}
68
70 unsigned getTotNElements() const {return m_totNElements;}
71
72 private:
74 // Properties
75
77 ToolHandle<GenericMonitoringTool> m_monTool{this,"MonTool", "", "Monitoring tool"};
78
80 Gaudi::Property<std::string> m_dir{this, "dir", {"/TRACKMON/"}, "String name of output directory"};
81
84 ServiceHandle<ITHistSvc> m_tHistSvc{this, "THistSvc", "THistSvc/THistSvc", "Histogramming service"};
85
87 unsigned m_nElements{0};
88
90 unsigned m_maxNElements{0};
91
93 unsigned m_totNElements{0};
94 };
95
96#endif // FPGATrackSimTrackMonitor_H
: FPGATrackSim-specific class to represent an hit in the detector.
Defines a class for roads.
Structs that store the 5 track parameters.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
FPGATrackSimTrackMonitor(const std::string &, const std::string &, const IInterface *)
void fillTrack(const std::vector< const FPGATrackSimTrack * > &tracks, const std::vector< FPGATrackSimTruthTrack > &truthTracks, float chi2Cut)
virtual StatusCode initialize() override
ToolHandle< GenericMonitoringTool > m_monTool
void fillRoad(const std::vector< FPGATrackSimRoad > &roads, const std::vector< FPGATrackSimTruthTrack > &truthTracks, size_t nLogicalLayers)
Gaudi::Property< std::string > m_dir
ServiceHandle< ITHistSvc > m_tHistSvc