ATLAS Offline Software
BremPositionNtupleHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // BremPositionNtupleHelper.h
7 // Header file for BremPositionNtupleHelper
9 // (c) ATLAS Detector software
11 
12 #ifndef TRK_BREMPOSITIONNTUPLEHELPER_H
13 #define TRK_BREMPOSITIONNTUPLEHELPER_H
14 
16 
19 
20 class TTree;
21 
22 namespace Trk {
23 
24 class MeasurementBase;
25  class TrackStateOnSurface;
26 
41 public:
42 
43  // standard AlgToolmethods
44  BremPositionNtupleHelper(const std::string&,const std::string&,const IInterface*);
46 
47  // standard Athena methods
50 
51 
54  const Trk::MeasurementBase*,
55  const Trk::TrackParameters*,
56  //const NTuple::Item<long>& numberOfHits,
57  //const std::bitset<8>& detectorType
58  const int& detectorType,
59  const bool& isOutlier );
60 
62  virtual StatusCode fillHoleData (
64  const int&);
65 
66 
69  virtual StatusCode addNtupleItems (
70  TTree* tree,
71  const int& detectorType );
72 
74  virtual StatusCode resetVariables (
75  const int& detectorType );
76 
77 private:
78 
79  //bool m_trkParametersWarning;//!< warn only once if no track pars exist
80 
81  // --- ntuple variables ---
82  std::vector<float>* m_bremX;
83  std::vector<float>* m_bremY;
84  std::vector<float>* m_bremZ;
85  std::vector<float>* m_trkQoverP;
86  std::vector<float>* m_thicknessInX0;
87  std::vector<float>* m_dna;
88  std::vector<int>* m_dnaDirection;
89  std::vector<int>* m_trackStateIndices;
90 
91 };
92 
93 
94 } // end of namespace
95 
96 #endif // TRK_BREMPOSITIONNTUPLEHELPER_H
Trk::BremPositionNtupleHelper::m_bremY
std::vector< float > * m_bremY
global position Y of track at estimated brem surface UNIT:mm
Definition: BremPositionNtupleHelper.h:83
TrackParameters.h
IValidationNtupleHelperTool.h
Trk::BremPositionNtupleHelper::finalize
StatusCode finalize()
finalize
Definition: BremPositionNtupleHelper.cxx:80
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::BremPositionNtupleHelper::BremPositionNtupleHelper
BremPositionNtupleHelper(const std::string &, const std::string &, const IInterface *)
Definition: BremPositionNtupleHelper.cxx:34
Trk::BremPositionNtupleHelper::resetVariables
virtual StatusCode resetVariables(const int &detectorType)
reset ntuple variables
Definition: BremPositionNtupleHelper.cxx:129
Trk::BremPositionNtupleHelper::~BremPositionNtupleHelper
~BremPositionNtupleHelper()
Trk::BremPositionNtupleHelper::m_bremX
std::vector< float > * m_bremX
global position X of track at estimated brem surface UNIT:mm
Definition: BremPositionNtupleHelper.h:82
Trk::BremPositionNtupleHelper::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: BremPositionNtupleHelper.cxx:99
Trk::BremPositionNtupleHelper
Helper tool as module for the Trk::BasicValidationNtupleTool, writing information about track state w...
Definition: BremPositionNtupleHelper.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::BremPositionNtupleHelper::initialize
StatusCode initialize()
initialize
Definition: BremPositionNtupleHelper.cxx:62
Trk::BremPositionNtupleHelper::m_trackStateIndices
std::vector< int > * m_trackStateIndices
index of track state in full nHits vector
Definition: BremPositionNtupleHelper.h:89
Trk::BremPositionNtupleHelper::fillMeasurementData
virtual StatusCode fillMeasurementData(const Trk::MeasurementBase *, const Trk::TrackParameters *, const int &detectorType, const bool &isOutlier)
fill hit position data
Definition: BremPositionNtupleHelper.cxx:120
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::BremPositionNtupleHelper::m_thicknessInX0
std::vector< float > * m_thicknessInX0
thickness of material layer at brem UNIT:fraction of X0
Definition: BremPositionNtupleHelper.h:86
Trk::BremPositionNtupleHelper::m_trkQoverP
std::vector< float > * m_trkQoverP
curvature q/p of track at brem UNIT:1/MeV
Definition: BremPositionNtupleHelper.h:85
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::BremPositionNtupleHelper::m_bremZ
std::vector< float > * m_bremZ
global position Z of track at estimated brem surface UNIT:mm
Definition: BremPositionNtupleHelper.h:84
Trk::BremPositionNtupleHelper::m_dna
std::vector< float > * m_dna
DNA-value q*sigma2(q/p) as additional noise term UNIT:1.
Definition: BremPositionNtupleHelper.h:87
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::BremPositionNtupleHelper::fillHoleData
virtual StatusCode fillHoleData(const Trk::TrackStateOnSurface &, const int &)
fill special data about holes on track (here: do nothing)
Definition: BremPositionNtupleHelper.cxx:144
Trk::BremPositionNtupleHelper::m_dnaDirection
std::vector< int > * m_dnaDirection
DNA-direction along momentum (1) opposite (-1) or both (0) UNIT:alongP:1.
Definition: BremPositionNtupleHelper.h:88