ATLAS Offline Software
ExtrapolationValidation.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 // ExtrapolationValidation.h, (c) ATLAS Detector software
8 
9 #ifndef TRKEXALGS_EXTRAPOLATIONVALIDATION_H
10 #define TRKEXALGS_EXTRAPOLATIONVALIDATION_H
11 
12 // Gaudi includes
14 #include "GaudiKernel/MsgStream.h"
15 #include "GaudiKernel/ToolHandle.h"
16 #include "GaudiKernel/IRndmGenSvc.h"
17 #include "GaudiKernel/RndmGenerators.h"
20 #include <string>
21 
22 
23 class TTree;
24 
25 #ifndef TRKEXALGS_MAXPARAMETERS
26 #define TRKEXALGS_MAXPARAMETERS 10
27 #endif
28 
29 namespace Trk
30 {
31 
32  class IExtrapolator;
33  class Surface;
34  class TrackingGeometry;
35  class TrackingVolume;
36 
56  {
57  public:
58 
60  ExtrapolationValidation(const std::string& name, ISvcLocator* pSvcLocator);
63 
70 
71  private:
73  static Amg::Transform3D createTransform(double x, double y, double z, double phi=0., double theta=0., double alphaZ=0.);
74 
77 
79  ToolHandle<IExtrapolator> m_extrapolator;
80 
82  Rndm::Numbers* m_gaussDist;
83  Rndm::Numbers* m_flatDist;
84 
86 
87  bool m_direct; //extrapolate directly
88 
90 
91  std::string m_validationTreeName;
93  std::string m_validationTreeFolder;
94 
95  double m_maximumR;
96  double m_maximumZ;
97 
98  double m_sigmaLoc;
99  double m_sigmaR;
100  double m_sigmaZ;
101  double m_minEta;
102  double m_maxEta;
103  double m_minP;
104  double m_maxP;
105 
107 
115 
122 
124  float m_startX;
125  float m_startY;
126  float m_startR;
127  float m_startZ;
128  float m_startP;
129 
134 
139 
140  // ---- output statistics
141  unsigned int m_triesFront;
142  unsigned int m_breaksFront;
143  unsigned int m_triesBack;
144  unsigned int m_breaksBack;
145 
146  unsigned int m_collectedLayerFront;
147  unsigned int m_collectedLayerBack;
148 
149  //AmgSymMatrix(5) * m_covariance;
150 
151 
152  };
153 } // end of namespace
154 
155 #endif
Trk::y
@ y
Definition: ParamDefs.h:56
Trk::ExtrapolationValidation::m_sigmaR
double m_sigmaR
r sigma of start value
Definition: ExtrapolationValidation.h:99
Trk::ExtrapolationValidation::m_direct
bool m_direct
Definition: ExtrapolationValidation.h:87
Trk::z
@ z
global position (cartesian)
Definition: ParamDefs.h:57
Trk::ExtrapolationValidation::m_covariancePhi
float m_covariancePhi[TRKEXALGS_MAXPARAMETERS]
start phi
Definition: ExtrapolationValidation.h:118
Trk::ExtrapolationValidation::m_estimationX
float m_estimationX
estimation in X
Definition: ExtrapolationValidation.h:130
Trk::ExtrapolationValidation::m_triesBack
unsigned int m_triesBack
events back
Definition: ExtrapolationValidation.h:143
Trk::ExtrapolationValidation::m_covarianceDeterminant
float m_covarianceDeterminant[TRKEXALGS_MAXPARAMETERS]
start qOverP
Definition: ExtrapolationValidation.h:121
Trk::ExtrapolationValidation::m_parameterLoc2
float m_parameterLoc2[TRKEXALGS_MAXPARAMETERS]
start local 2
Definition: ExtrapolationValidation.h:110
Trk::ExtrapolationValidation::m_collectedLayerFront
unsigned int m_collectedLayerFront
collected material layers forward
Definition: ExtrapolationValidation.h:146
Trk::ExtrapolationValidation::m_estimationR
float m_estimationR
estimation in R
Definition: ExtrapolationValidation.h:132
Surface
Definition: Trigger/TrigAccel/TrigCudaFitter/src/Surface.h:8
Trk::ExtrapolationValidation::m_minEta
double m_minEta
Minimal eta value.
Definition: ExtrapolationValidation.h:101
Trk::ExtrapolationValidation::m_destinationX
float m_destinationX
destination in X
Definition: ExtrapolationValidation.h:135
Trk::ExtrapolationValidation::m_parameterPhi
float m_parameterPhi[TRKEXALGS_MAXPARAMETERS]
start phi
Definition: ExtrapolationValidation.h:111
Trk::ExtrapolationValidation::m_triesFront
unsigned int m_triesFront
events front
Definition: ExtrapolationValidation.h:141
Trk::ExtrapolationValidation::m_highestVolume
const TrackingVolume * m_highestVolume
the highest volume
Definition: ExtrapolationValidation.h:76
Trk::ExtrapolationValidation::m_flatDist
Rndm::Numbers * m_flatDist
Definition: ExtrapolationValidation.h:83
Trk::ExtrapolationValidation::~ExtrapolationValidation
~ExtrapolationValidation()
Default Destructor.
Definition: ExtrapolationValidation.cxx:108
Trk::ExtrapolationValidation::m_validationTree
TTree * m_validationTree
Root Validation Tree.
Definition: ExtrapolationValidation.h:89
Trk::ExtrapolationValidation::m_parameterTheta
float m_parameterTheta[TRKEXALGS_MAXPARAMETERS]
start theta
Definition: ExtrapolationValidation.h:112
Trk::ExtrapolationValidation::m_destinationY
float m_destinationY
destination in Y
Definition: ExtrapolationValidation.h:136
Trk::ExtrapolationValidation::finalize
StatusCode finalize()
standard Athena-Algorithm method
Definition: ExtrapolationValidation.cxx:184
Trk::ExtrapolationValidation::m_destinationR
float m_destinationR
destination in R
Definition: ExtrapolationValidation.h:137
Trk::ExtrapolationValidation
Definition: ExtrapolationValidation.h:56
Trk::ExtrapolationValidation::m_minP
double m_minP
Minimal p value.
Definition: ExtrapolationValidation.h:103
Trk::ExtrapolationValidation::createTransform
static Amg::Transform3D createTransform(double x, double y, double z, double phi=0., double theta=0., double alphaZ=0.)
private helper method to create a HepTransform
Definition: ExtrapolationValidation.cxx:566
AthAlgorithm.h
Trk::ExtrapolationValidation::m_estimationZ
float m_estimationZ
estimation in Z
Definition: ExtrapolationValidation.h:133
Trk::ExtrapolationValidation::m_destinationSurfaceType
int m_destinationSurfaceType
destination surface type
Definition: ExtrapolationValidation.h:123
Trk::ExtrapolationValidation::m_sigmaZ
double m_sigmaZ
Z sigma of start value.
Definition: ExtrapolationValidation.h:100
Trk::theta
@ theta
Definition: ParamDefs.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::ExtrapolationValidation::m_maximumZ
double m_maximumZ
maximum halfZ of the highest tracking volume
Definition: ExtrapolationValidation.h:96
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::ExtrapolationValidation::m_covarianceLoc2
float m_covarianceLoc2[TRKEXALGS_MAXPARAMETERS]
start local 2
Definition: ExtrapolationValidation.h:117
Trk::ExtrapolationValidation::m_validationTreeDescription
std::string m_validationTreeDescription
validation tree description - second argument in TTree
Definition: ExtrapolationValidation.h:92
Trk::ExtrapolationValidation::m_gaussDist
Rndm::Numbers * m_gaussDist
Random Number setup.
Definition: ExtrapolationValidation.h:82
Trk::ExtrapolationValidation::m_breaksFront
unsigned int m_breaksFront
breaks front
Definition: ExtrapolationValidation.h:142
Trk::ExtrapolationValidation::m_sigmaLoc
double m_sigmaLoc
local sigma of start value
Definition: ExtrapolationValidation.h:98
Trk::ExtrapolationValidation::m_validationTreeFolder
std::string m_validationTreeFolder
stream/folder to for the TTree to be written out
Definition: ExtrapolationValidation.h:93
Trk::ExtrapolationValidation::ExtrapolationValidation
ExtrapolationValidation(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
Definition: ExtrapolationValidation.cxx:29
Trk::ExtrapolationValidation::m_parameterQoverP
float m_parameterQoverP[TRKEXALGS_MAXPARAMETERS]
start qOverP
Definition: ExtrapolationValidation.h:114
Trk::ExtrapolationValidation::m_maxP
double m_maxP
Maximal p value.
Definition: ExtrapolationValidation.h:104
TRKEXALGS_MAXPARAMETERS
#define TRKEXALGS_MAXPARAMETERS
Definition: ExtrapolationValidation.h:26
AthAlgorithm
Definition: AthAlgorithm.h:47
Trk::ExtrapolationValidation::m_startX
float m_startX
startX
Definition: ExtrapolationValidation.h:124
Trk::ExtrapolationValidation::m_parameters
int m_parameters
maximum 3 : start - destination - backward
Definition: ExtrapolationValidation.h:108
Trk::ExtrapolationValidation::m_startR
float m_startR
startX
Definition: ExtrapolationValidation.h:126
EventPrimitives.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::ExtrapolationValidation::m_covarianceTheta
float m_covarianceTheta[TRKEXALGS_MAXPARAMETERS]
start theta
Definition: ExtrapolationValidation.h:119
Trk::ExtrapolationValidation::m_covarianceQoverP
float m_covarianceQoverP[TRKEXALGS_MAXPARAMETERS]
start qOverP
Definition: ExtrapolationValidation.h:120
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Trk::ExtrapolationValidation::m_startP
float m_startP
startP
Definition: ExtrapolationValidation.h:128
Trk::ExtrapolationValidation::m_particleType
int m_particleType
the particle typre for the extrap.
Definition: ExtrapolationValidation.h:106
Trk::ExtrapolationValidation::m_breaksBack
unsigned int m_breaksBack
breaks
Definition: ExtrapolationValidation.h:144
Trk::ExtrapolationValidation::m_destinationZ
float m_destinationZ
destination in Z
Definition: ExtrapolationValidation.h:138
Trk::ExtrapolationValidation::initialize
StatusCode initialize()
standard Athena-Algorithm method
Definition: ExtrapolationValidation.cxx:118
Trk::ExtrapolationValidation::m_maximumR
double m_maximumR
maximum R of the highest
Definition: ExtrapolationValidation.h:95
Trk::ExtrapolationValidation::m_materialCollectionValidation
bool m_materialCollectionValidation
run the material collection
Definition: ExtrapolationValidation.h:85
Trk::ExtrapolationValidation::m_collectedLayerBack
unsigned int m_collectedLayerBack
collected material layers backwards
Definition: ExtrapolationValidation.h:147
Trk::ExtrapolationValidation::m_startY
float m_startY
startX
Definition: ExtrapolationValidation.h:125
GeoPrimitivesHelpers.h
Trk::phi
@ phi
Definition: ParamDefs.h:75
Trk::ExtrapolationValidation::m_covarianceLoc1
float m_covarianceLoc1[TRKEXALGS_MAXPARAMETERS]
start local 1
Definition: ExtrapolationValidation.h:116
Trk::ExtrapolationValidation::m_validationTreeName
std::string m_validationTreeName
validation tree name - to be acessed by this from root
Definition: ExtrapolationValidation.h:91
Trk::x
@ x
Definition: ParamDefs.h:55
Trk::ExtrapolationValidation::execute
StatusCode execute()
standard Athena-Algorithm method
Definition: ExtrapolationValidation.cxx:206
Trk::TrackingVolume
Definition: TrackingVolume.h:121
Trk::ExtrapolationValidation::m_startZ
float m_startZ
startX
Definition: ExtrapolationValidation.h:127
Trk::ExtrapolationValidation::m_maxEta
double m_maxEta
Maximal eta value.
Definition: ExtrapolationValidation.h:102
Trk::ExtrapolationValidation::m_estimationY
float m_estimationY
estimation in Y
Definition: ExtrapolationValidation.h:131
Trk::ExtrapolationValidation::m_parameterEta
float m_parameterEta[TRKEXALGS_MAXPARAMETERS]
start eta
Definition: ExtrapolationValidation.h:113
Trk::ExtrapolationValidation::m_extrapolator
ToolHandle< IExtrapolator > m_extrapolator
The Extrapolator to be retrieved.
Definition: ExtrapolationValidation.h:79
Trk::ExtrapolationValidation::m_parameterLoc1
float m_parameterLoc1[TRKEXALGS_MAXPARAMETERS]
start local 1
Definition: ExtrapolationValidation.h:109