|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/SmartDataPtr.h"
17 #include "GaudiKernel/ITHistSvc.h"
19 #include "GaudiKernel/ISvcLocator.h"
45 m_hitSurfaceX(nullptr),
46 m_hitSurfaceY(nullptr),
47 m_hitSurfaceZ(nullptr),
48 m_hitSurfaceRadius(nullptr),
49 m_hitSurfacePhi(nullptr),
50 m_hitSurfaceTheta(nullptr)
53 declareInterface<IValidationNtupleHelperTool>(
this);
67 m_hitX =
new std::vector<float>();
68 m_hitY =
new std::vector<float>();
69 m_hitZ =
new std::vector<float>();
70 m_hitRadius =
new std::vector<float>();
71 m_hitPhi =
new std::vector<float>();
72 m_hitLoc1 =
new std::vector<float>();
73 m_hitLoc2 =
new std::vector<float>();
74 m_hitSurfaceX =
new std::vector<float>();
75 m_hitSurfaceY =
new std::vector<float>();
76 m_hitSurfaceZ =
new std::vector<float>();
77 m_hitSurfaceRadius =
new std::vector<float>();
78 m_hitSurfacePhi =
new std::vector<float>();
79 m_hitSurfaceTheta =
new std::vector<float>();
81 return StatusCode::SUCCESS;
99 delete m_hitSurfaceRadius;
100 delete m_hitSurfacePhi;
101 delete m_hitSurfaceTheta;
104 return StatusCode::SUCCESS;
117 tree->Branch(
"HitX", &m_hitX);
118 tree->Branch(
"HitY", &m_hitY);
119 tree->Branch(
"HitZ", &m_hitZ);
120 tree->Branch(
"HitRadius", &m_hitRadius);
121 tree->Branch(
"HitPhi", &m_hitPhi);
122 tree->Branch(
"HitLocal1", &m_hitLoc1);
123 tree->Branch(
"HitLocal2", &m_hitLoc2);
124 tree->Branch(
"HitSurfaceX", &m_hitSurfaceX);
125 tree->Branch(
"HitSurfaceY", &m_hitSurfaceY);
126 tree->Branch(
"HitSurfaceZ", &m_hitSurfaceZ);
127 tree->Branch(
"HitSurfaceRadius", &m_hitSurfaceRadius);
128 tree->Branch(
"HitSurfacePhi", &m_hitSurfacePhi);
129 tree->Branch(
"HitSurfaceTheta", &m_hitSurfaceTheta);
133 return StatusCode::SUCCESS;
148 return StatusCode::FAILURE;
161 m_hitX->push_back(
float(gp.x()) );
162 m_hitY->push_back(
float(gp.y()) );
163 m_hitZ->push_back(
float(gp.z()) );
164 m_hitRadius->push_back(
float(gp.perp()) );
165 m_hitPhi->push_back(
float(gp.phi()) );
168 m_hitSurfaceX->push_back(
float(sfc.x()) );
169 m_hitSurfaceY->push_back(
float(sfc.y()) );
170 m_hitSurfaceZ->push_back(
float(sfc.z()) );
171 m_hitSurfaceRadius->push_back(
float(sfc.perp()) );
172 m_hitSurfacePhi->push_back(
float(sfc.phi()) );
173 m_hitSurfaceTheta->push_back(
float(sfc.theta()) );
177 m_hitLoc1->push_back(
float(lp[
Trk::loc1]) );
179 m_hitLoc1->push_back( s_errorEntry );
182 m_hitLoc2->push_back(
float(lp[
Trk::loc2]) );
184 m_hitLoc2->push_back( s_errorEntry );
186 return StatusCode::SUCCESS;
194 m_hitRadius->clear();
198 m_hitSurfaceX->clear();
199 m_hitSurfaceY->clear();
200 m_hitSurfaceZ->clear();
201 m_hitSurfaceRadius->clear();
202 m_hitSurfacePhi->clear();
203 m_hitSurfaceTheta->clear();
205 return StatusCode::SUCCESS;
214 return StatusCode::SUCCESS;
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
StatusCode initialize()
initialize
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
@ loc2
generic first and second local coordinate
#define ATH_MSG_VERBOSE(x)
const Amg::Vector3D & center() const
Returns the center position of the Surface.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode finalize()
finalize
~HitPositionNtupleHelper()
HitPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
represents the track state (measurement, material, fit parameters and quality) at a surface.
virtual const Surface & associatedSurface() const =0
Interface method to get the associated Surface.
virtual const Amg::Vector3D & globalPosition() const =0
Interface method to get the global Position.
Eigen::Matrix< double, 3, 1 > Vector3D
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
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...
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data