ATLAS Offline Software
Loading...
Searching...
No Matches
DAF_ValidationNtupleHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// DAF_ValidationNtupleHelper.h
7// Header file for DAF_ValidationNtupleHelper
9// (c) ATLAS Detector software
11// Sebastian.Fleischmann@cern.ch
13
14#ifndef TRK_DAF_VALIDATIONNTUPLEHELPER_H
15#define TRK_DAF_VALIDATIONNTUPLEHELPER_H
16
18#include "GaudiKernel/ToolHandle.h"
21
22class TTree;
23
24namespace Trk {
25
27
32
34 public AthAlgTool {
35public:
36
37 // standard AlgToolmethods
38 DAF_ValidationNtupleHelper(const std::string&,const std::string&,const IInterface*);
40
41 // standard Athena methods
42 StatusCode initialize();
43 StatusCode finalize();
44
45
47 virtual StatusCode fillMeasurementData (
50 const int& detectorType,
51 const bool& isOutlier );
52
54 virtual StatusCode fillHoleData (
56 const int& );
57
61 virtual StatusCode addNtupleItems (
62 TTree* tree,
63 const int& detectorType );
64
66 virtual StatusCode resetVariables (
67 const int& detectorType );
68
69private:
70
71 static const unsigned int s_maxContainedROTs = 8; // maximal number of contained ROTs per CompetingRIOsOnTrack
74 ToolHandle<Trk::IResidualPullCalculator> m_residualPullCalculator;
75
76
78
79 std::vector<int>* m_nContainedROTs;
80 std::vector<int>* m_indexOfMaxAssgnProb;
81 std::vector<float>* m_maxAssgnProb;
82
83};
84
85
86} // end of namespace
87
88#endif // TRK_DAF_VALIDATIONNTUPLEHELPER_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
static const unsigned int s_maxContainedROTs
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
The residual and pull calculator tool.
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill Trk::CompetingRIOsOnTrack data
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
bool m_writeHitPositions
jobOption: shall the positions of the contained ROTs be written?
virtual StatusCode addNtupleItems(TTree *tree, const int &detectorType)
add items to the ntuple and configure the helper tool: should be called once (per detector type) by t...
DAF_ValidationNtupleHelper(const std::string &, const std::string &, const IInterface *)
provides the interface for tools which calculate residuals and pulls.
provides the interface for validation helper tools which write special information about generated tr...
This class is the pure abstract base class for all fittable tracking measurements.
represents the track state (measurement, material, fit parameters and quality) at a surface.
Ensure that the ATLAS eigen extensions are properly loaded.
ParametersBase< TrackParametersDim, Charged > TrackParameters
TChain * tree