ATLAS Offline Software
Loading...
Searching...
No Matches
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
22class TTree;
23
24namespace Trk {
25
26class MeasurementBase;
27
32
34public:
35
36 // standard AlgToolmethods
37 HitPositionNtupleHelper(const std::string&,const std::string&,const IInterface*);
39
40 // standard Athena methods
41 StatusCode initialize();
42 StatusCode finalize();
43
44
46 virtual StatusCode fillMeasurementData (
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
70private:
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
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
HitPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
std::vector< float > * m_hitZ
x-coordinate of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitSurfaceX
x-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
std::vector< float > * m_hitSurfacePhi
phi() of the center of the measurement surface UNIT:rad
std::vector< float > * m_hitRadius
perp() of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitPhi
phi() of GlobalPosition of the measurement UNIT:rad
std::vector< float > * m_hitSurfaceY
y-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
std::vector< float > * m_hitSurfaceZ
z-coordinate of GlobalPosition of the center of the measurement surface UNIT:mm
std::vector< float > * m_hitX
x-coordinate of GlobalPosition of the measurement UNIT:mm
std::vector< float > * m_hitSurfaceTheta
theta() of the center of the measurement surface UNIT:rad
std::vector< float > * m_hitY
y-coordinate of GlobalPosition of the measurement UNIT:mm
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...
std::vector< float > * m_hitLoc2
Trk::loc2 of the local position.
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
std::vector< float > * m_hitSurfaceRadius
perp() of the center of the measurement surface UNIT:mm
std::vector< float > * m_hitLoc1
Trk::loc1 of the local position of the measurement UNIT:mm.
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