30 auto props = this->getProperties();
31 for( Gaudi::Details::PropertyBase* prop : props ) {
32 if (prop->ownerTypeName()==this->type()) {
33 ATH_MSG_DEBUG(
"Property:\t" << prop->name() <<
"\t : \t" << prop->toString());
41 return StatusCode::SUCCESS;
52 const std::vector<FPGATrackSimTruthTrack>& truthTracks,
53 size_t nLogicalLayers)
61 if ( roads.empty() )
return;
64 for (
const auto& road : roads) {
66 unsigned bitmask = road->getHitLayers();
67 for (
size_t l = 0; l < nLogicalLayers; l++) {
68 if (bitmask & (1 << l)) {
80 if (truthTracks.size() > 0) {
82 const auto& truthTrack = truthTracks.front();
91 Monitored::Group(
m_monTool, mon_eff, mon_truth_pt_zoom, mon_truth_pt, mon_truth_eta, mon_truth_phi, mon_truth_d0, mon_truth_z0 );
98 const std::vector<FPGATrackSimTruthTrack>& truthTracks,
107 if ( tracks.empty() )
return;
110 float bestChi2 = chi2Cut;
112 for (
const auto& track : tracks) {
113 float chi2 = track->getChi2ndof();
115 if (
chi2 < chi2Cut) {
119 if (
chi2 < bestChi2) {
125 if (bestChi2 < chi2Cut) {
131 if (truthTracks.size() > 0) {
133 const auto& truthTrack = truthTracks.front();
142 Monitored::Group(
m_monTool, mon_eff, mon_truth_pt_zoom, mon_truth_pt, mon_truth_eta, mon_truth_phi, mon_truth_d0, mon_truth_z0 );
#define ATH_CHECK
Evaluate an expression and check for errors.
This is the monitoring for the FPGATrackSimTrackMonitor.
Header file to be included by clients of the Monitored infrastructure.
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< std::shared_ptr< const FPGATrackSimRoad > > &roads, const std::vector< FPGATrackSimTruthTrack > &truthTracks, size_t nLogicalLayers)
ServiceHandle< ITHistSvc > m_tHistSvc
Group of local monitoring quantities and retain correlation when filling histograms
Declare a monitored scalar variable.
double chi2(TH1 *h0, TH1 *h1)