ATLAS Offline Software
HitPositionNtupleHelper.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 // HitPositionNtupleHelper.h
7 // Header file for HitPositionNtupleHelper
9 // (c) ATLAS Detector software
11 // Anna.Franckowiak@cern.ch, Sebastian.Fleischmann@cern.ch
13 
14 #ifndef TRK_HITPOSITIONNTUPLEHELPER_H
15 #define TRK_HITPOSITIONNTUPLEHELPER_H
16 
18 
21 
22 class TTree;
23 
24 namespace Trk {
25 
26 class MeasurementBase;
27 
34 public:
35 
36  // standard AlgToolmethods
37  HitPositionNtupleHelper(const std::string&,const std::string&,const IInterface*);
39 
40  // standard Athena methods
43 
44 
47  const Trk::MeasurementBase*,
48  const Trk::TrackParameters*,
49  //const NTuple::Item<long>& numberOfHits,
50  //const std::bitset<8>& detectorType
51  const int& detectorType,
52  const bool& isOutlier );
53 
55  virtual StatusCode fillHoleData (
57  const int&);
58 
59 
62  virtual StatusCode addNtupleItems (
63  TTree* tree,
64  const int& detectorType);
65 
67  virtual StatusCode resetVariables (
68  const int& detectorType );
69 
70 private:
71 
72  // --- member variables for ntuple items ---
73  std::vector<float>* m_hitX;
74  std::vector<float>* m_hitY;
75  std::vector<float>* m_hitZ;
76  std::vector<float>* m_hitRadius;
77  std::vector<float>* m_hitPhi;
78  std::vector<float>* m_hitLoc1;
79  std::vector<float>* m_hitLoc2;
80  std::vector<float>* m_hitSurfaceX;
81  std::vector<float>* m_hitSurfaceY;
82  std::vector<float>* m_hitSurfaceZ;
83  std::vector<float>* m_hitSurfaceRadius;
84  std::vector<float>* m_hitSurfacePhi;
85  std::vector<float>* m_hitSurfaceTheta;
86 };
87 
88 
89 } // end of namespace
90 
91 #endif // TRK_HITPOSITIONNTUPLEHELPER_H
Trk::HitPositionNtupleHelper::fillHoleData
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
Definition: HitPositionNtupleHelper.cxx:210
Trk::HitPositionNtupleHelper::initialize
StatusCode initialize()
initialize
Definition: HitPositionNtupleHelper.cxx:65
Trk::HitPositionNtupleHelper
Definition: HitPositionNtupleHelper.h:33
Trk::HitPositionNtupleHelper::m_hitSurfaceY
std::vector< float > * m_hitSurfaceY
y-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
Definition: HitPositionNtupleHelper.h:81
TrackParameters.h
Trk::HitPositionNtupleHelper::m_hitSurfaceRadius
std::vector< float > * m_hitSurfaceRadius
perp() of the center of the measurement surface UNIT:mm
Definition: HitPositionNtupleHelper.h:83
IValidationNtupleHelperTool.h
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::HitPositionNtupleHelper::m_hitPhi
std::vector< float > * m_hitPhi
phi() of GlobalPosition of the measurement UNIT:rad
Definition: HitPositionNtupleHelper.h:77
Trk::HitPositionNtupleHelper::m_hitY
std::vector< float > * m_hitY
y-coordinate of GlobalPosition of the measurement UNIT:mm
Definition: HitPositionNtupleHelper.h:74
Trk::HitPositionNtupleHelper::m_hitSurfaceZ
std::vector< float > * m_hitSurfaceZ
z-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
Definition: HitPositionNtupleHelper.h:82
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::HitPositionNtupleHelper::m_hitSurfaceX
std::vector< float > * m_hitSurfaceX
x-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
Definition: HitPositionNtupleHelper.h:80
Trk::HitPositionNtupleHelper::m_hitZ
std::vector< float > * m_hitZ
x-coordinate of GlobalPosition of the measurement UNIT:mm
Definition: HitPositionNtupleHelper.h:75
Trk::HitPositionNtupleHelper::finalize
StatusCode finalize()
finalize
Definition: HitPositionNtupleHelper.cxx:87
Trk::MeasurementBase
Definition: MeasurementBase.h:58
Trk::HitPositionNtupleHelper::~HitPositionNtupleHelper
~HitPositionNtupleHelper()
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::HitPositionNtupleHelper::HitPositionNtupleHelper
HitPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
Definition: HitPositionNtupleHelper.cxx:31
Trk::TrackStateOnSurface
represents the track state (measurement, material, fit parameters and quality) at a surface.
Definition: TrackStateOnSurface.h:71
Trk::HitPositionNtupleHelper::m_hitLoc1
std::vector< float > * m_hitLoc1
Trk::loc1 of the local position of the measurement UNIT:mm.
Definition: HitPositionNtupleHelper.h:78
Trk::HitPositionNtupleHelper::m_hitRadius
std::vector< float > * m_hitRadius
perp() of GlobalPosition of the measurement UNIT:mm
Definition: HitPositionNtupleHelper.h:76
Trk::HitPositionNtupleHelper::m_hitSurfacePhi
std::vector< float > * m_hitSurfacePhi
phi() of the center of the measurement surface UNIT:rad
Definition: HitPositionNtupleHelper.h:84
Trk::HitPositionNtupleHelper::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: HitPositionNtupleHelper.cxx:111
Trk::HitPositionNtupleHelper::m_hitSurfaceTheta
std::vector< float > * m_hitSurfaceTheta
theta() of the center of the measurement surface UNIT:rad
Definition: HitPositionNtupleHelper.h:85
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::HitPositionNtupleHelper::resetVariables
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
Definition: HitPositionNtupleHelper.cxx:189
Trk::HitPositionNtupleHelper::fillMeasurementData
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
Definition: HitPositionNtupleHelper.cxx:139
Trk::HitPositionNtupleHelper::m_hitLoc2
std::vector< float > * m_hitLoc2
Trk::loc2 of the local position.
Definition: HitPositionNtupleHelper.h:79
Trk::HitPositionNtupleHelper::m_hitX
std::vector< float > * m_hitX
x-coordinate of GlobalPosition of the measurement UNIT:mm
Definition: HitPositionNtupleHelper.h:73