ATLAS Offline Software
TrackPositionNtupleHelper.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 // TrackPositionNtupleHelper.h
7 // Header file for TrackPositionNtupleHelper
9 // (c) ATLAS Detector software
11 // Anna.Franckowiak@cern.ch, Sebastian.Fleischmann@cern.ch
13 
14 #ifndef TRK_TRACKPOSITIONNTUPLEHELPER_H
15 #define TRK_TRACKPOSITIONNTUPLEHELPER_H
16 
18 
21 
22 class INTupleSvc;
23 class TTree;
24 
25 namespace Trk {
26 
27 class MeasurementBase;
28 
35 public:
36 
37  // standard AlgToolmethods
38  TrackPositionNtupleHelper(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 NTuple::Item<long>& numberOfHits,
51  //const std::bitset<8>& detectorType
52  const int& detectorType,
53  const bool& isOutlier );
54 
56  virtual StatusCode fillHoleData (
58  const int&);
59 
60 
63  virtual StatusCode addNtupleItems (
64  TTree* tree,
65  const int& detectorType );
66 
68  virtual StatusCode resetVariables (
69  const int& detectorType );
70 
71 private:
72 
74 
75  std::vector<float>* m_trkX;
76  std::vector<float>* m_trkY;
77  std::vector<float>* m_trkZ;
78  std::vector<float>* m_trkMomentumX;
79  std::vector<float>* m_trkMomentumY;
80  std::vector<float>* m_trkMomentumZ;
81  std::vector<float>* m_trkLoc1;
82  std::vector<float>* m_trkLoc2;
83 
84 };
85 
86 } // end of namespace
87 
88 #endif // TRK_TRACKPOSITIONNTUPLEHELPER_H
Trk::TrackPositionNtupleHelper::m_trkMomentumY
std::vector< float > * m_trkMomentumY
global momentum Y of track at measurement
Definition: TrackPositionNtupleHelper.h:79
Trk::TrackPositionNtupleHelper::fillMeasurementData
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
Definition: TrackPositionNtupleHelper.cxx:103
Trk::TrackPositionNtupleHelper::~TrackPositionNtupleHelper
~TrackPositionNtupleHelper()
TrackParameters.h
Trk::TrackPositionNtupleHelper::m_trkMomentumX
std::vector< float > * m_trkMomentumX
global momentum X of track at measurement
Definition: TrackPositionNtupleHelper.h:78
Trk::TrackPositionNtupleHelper::finalize
StatusCode finalize()
finalize
Definition: TrackPositionNtupleHelper.cxx:63
IValidationNtupleHelperTool.h
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::TrackPositionNtupleHelper::m_trkParametersWarning
bool m_trkParametersWarning
warn only once if no track pars exist
Definition: TrackPositionNtupleHelper.h:73
Trk::TrackPositionNtupleHelper::m_trkY
std::vector< float > * m_trkY
global position Y of track intersecting meas't surface
Definition: TrackPositionNtupleHelper.h:76
Trk::TrackPositionNtupleHelper::m_trkZ
std::vector< float > * m_trkZ
global position Z of track intersection meas't surface
Definition: TrackPositionNtupleHelper.h:77
Trk::TrackPositionNtupleHelper::resetVariables
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
Definition: TrackPositionNtupleHelper.cxx:155
Trk::TrackPositionNtupleHelper::m_trkX
std::vector< float > * m_trkX
global position X of track intersecting meas't surface
Definition: TrackPositionNtupleHelper.h:75
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::TrackPositionNtupleHelper::m_trkLoc2
std::vector< float > * m_trkLoc2
local position 2nd coord.
Definition: TrackPositionNtupleHelper.h:82
Trk::TrackPositionNtupleHelper::TrackPositionNtupleHelper
TrackPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
Definition: TrackPositionNtupleHelper.cxx:18
AthAlgTool.h
Trk::ParametersBase
Definition: ParametersBase.h:55
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::TrackPositionNtupleHelper::m_trkMomentumZ
std::vector< float > * m_trkMomentumZ
global momentum Z of track at measurement
Definition: TrackPositionNtupleHelper.h:80
Trk::TrackPositionNtupleHelper::fillHoleData
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
Definition: TrackPositionNtupleHelper.cxx:170
Trk::TrackPositionNtupleHelper
This validation tool writes information about track positions.
Definition: TrackPositionNtupleHelper.h:34
Trk::TrackPositionNtupleHelper::m_trkLoc1
std::vector< float > * m_trkLoc1
local position 1st coord.
Definition: TrackPositionNtupleHelper.h:81
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::TrackPositionNtupleHelper::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: TrackPositionNtupleHelper.cxx:82
Trk::TrackPositionNtupleHelper::initialize
StatusCode initialize()
initialize
Definition: TrackPositionNtupleHelper.cxx:46