ATLAS Offline Software
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 
22 class TTree;
23 
24 namespace Trk {
25 
26 class IResidualPullCalculator;
27 
34  public AthAlgTool {
35 public:
36 
37  // standard AlgToolmethods
38  DAF_ValidationNtupleHelper(const std::string&,const std::string&,const IInterface*);
40 
41  // standard Athena methods
44 
45 
48  const Trk::MeasurementBase*,
49  const Trk::TrackParameters*,
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 
69 private:
70 
71  static const unsigned int s_maxContainedROTs = 8; // maximal number of contained ROTs per CompetingRIOsOnTrack
74  ToolHandle<Trk::IResidualPullCalculator> m_residualPullCalculator;
75 
76 
77  int* m_isUnbiased;
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
Trk::DAF_ValidationNtupleHelper::DAF_ValidationNtupleHelper
DAF_ValidationNtupleHelper(const std::string &, const std::string &, const IInterface *)
Definition: DAF_ValidationNtupleHelper.cxx:35
TrackParameters.h
Trk::DAF_ValidationNtupleHelper::fillMeasurementData
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill Trk::CompetingRIOsOnTrack data
Definition: DAF_ValidationNtupleHelper.cxx:123
IValidationNtupleHelperTool.h
Trk::DAF_ValidationNtupleHelper::m_maxAssgnProb
std::vector< float > * m_maxAssgnProb
Definition: DAF_ValidationNtupleHelper.h:81
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::DAF_ValidationNtupleHelper::addNtupleItems
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...
Definition: DAF_ValidationNtupleHelper.cxx:89
Trk::DAF_ValidationNtupleHelper::m_indexOfMaxAssgnProb
std::vector< int > * m_indexOfMaxAssgnProb
Definition: DAF_ValidationNtupleHelper.h:80
Trk::DAF_ValidationNtupleHelper::resetVariables
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
Definition: DAF_ValidationNtupleHelper.cxx:159
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::DAF_ValidationNtupleHelper::m_writeHitPositions
bool m_writeHitPositions
jobOption: shall the positions of the contained ROTs be written?
Definition: DAF_ValidationNtupleHelper.h:73
Trk::DAF_ValidationNtupleHelper::~DAF_ValidationNtupleHelper
~DAF_ValidationNtupleHelper()
Trk::DAF_ValidationNtupleHelper
Definition: DAF_ValidationNtupleHelper.h:34
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
Trk::DAF_ValidationNtupleHelper::initialize
StatusCode initialize()
initialize
Definition: DAF_ValidationNtupleHelper.cxx:63
Trk::DAF_ValidationNtupleHelper::m_isUnbiased
int * m_isUnbiased
Definition: DAF_ValidationNtupleHelper.h:77
Trk::DAF_ValidationNtupleHelper::s_maxContainedROTs
static const unsigned int s_maxContainedROTs
Definition: DAF_ValidationNtupleHelper.h:71
Trk::DAF_ValidationNtupleHelper::m_ignoreMissTrkCov
bool m_ignoreMissTrkCov
Definition: DAF_ValidationNtupleHelper.h:72
Trk::IValidationNtupleHelperTool
provides the interface for validation helper tools which write special information about generated tr...
Definition: IValidationNtupleHelperTool.h:42
AthAlgTool
Definition: AthAlgTool.h:26
Trk::DAF_ValidationNtupleHelper::m_nContainedROTs
std::vector< int > * m_nContainedROTs
Definition: DAF_ValidationNtupleHelper.h:79
Trk::DAF_ValidationNtupleHelper::m_residualPullCalculator
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
The residual and pull calculator tool.
Definition: DAF_ValidationNtupleHelper.h:74
Trk::DAF_ValidationNtupleHelper::fillHoleData
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
Definition: DAF_ValidationNtupleHelper.cxx:167
Trk::DAF_ValidationNtupleHelper::finalize
StatusCode finalize()
finalize
Definition: DAF_ValidationNtupleHelper.cxx:80