ATLAS Offline Software
ConstrainedTrackProvider.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRKALIGNGENTOOLS_CONSTRAINEDTRACKPROVIDER_H
6 #define TRKALIGNGENTOOLS_CONSTRAINEDTRACKPROVIDER_H
7 
9 #include "GaudiKernel/ToolHandle.h"
10 #include "muonEvent/Muon.h"
13 
14 
15 
16 class TFile;
17 class TH2F;
28 namespace Trk {
29  class IGlobalTrackFitter;
30 
32 
33  public:
34  ConstrainedTrackProvider(const std::string & type, const std::string & name, const IInterface * parent);
36 
37  virtual StatusCode initialize();
38  virtual StatusCode finalize();
39 
40  virtual StatusCode trackCollection(const TrackCollection*& tracks);
41 
42  virtual void printSummary();
43 
44  private :
45 
46  void getCorrectedValues_P(const Trk::Perigee* mp, double& correctedQoverP,double& correctedQoverPError);
47  void getCorrectedValues_d0(const Trk::Perigee* mp, double& corrected_d0,double& corrected_d0Error);
48  void getCorrectedValues_z0(const Trk::Perigee* mp, double& corrected_z0,double& corrected_z0Error);
49  bool passTrackSelection(const Trk::Track *track);
50 
51  ToolHandle<IGlobalTrackFitter> m_trackFitter;
52 
65 
69  double m_maxd0;
70  double m_maxz0;
71  double m_minPt;
72  double m_maxPt;
73 
74 
76 
77 
79  std::string m_constraintFileName_P;
81  std::string m_constraintHistName_P;
83  // Corrections expected to be in GeV-1
84 
89  // Corrections expected to be in mm
90 
95  // Corrections expected to be in mm
96 
98 
101 
104 
105 
106  }; // end class
107 
108 } // end namespace
109 
110 #endif // TRKALIGNGENTOOLS_CONSTRAINEDTRACKPROVIDER_H
Trk::ConstrainedTrackProvider::m_minSCTHits
int m_minSCTHits
Definition: ConstrainedTrackProvider.h:67
Trk::ConstrainedTrackProvider::m_minTRTHits
int m_minTRTHits
Definition: ConstrainedTrackProvider.h:68
Trk::ConstrainedTrackProvider
Definition: ConstrainedTrackProvider.h:31
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::ITrackCollectionProvider
Definition: ITrackCollectionProvider.h:33
Trk::ConstrainedTrackProvider::m_constraintInputFile_d0
TFile * m_constraintInputFile_d0
Definition: ConstrainedTrackProvider.h:86
Trk::ConstrainedTrackProvider::m_constraintInputFile_P
TFile * m_constraintInputFile_P
Definition: ConstrainedTrackProvider.h:80
Trk::ParametersT
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
Definition: EMErrorDetail.h:25
Trk::ConstrainedTrackProvider::m_doTrackSelection
bool m_doTrackSelection
Definition: ConstrainedTrackProvider.h:55
Trk::ConstrainedTrackProvider::m_minPIXHits
int m_minPIXHits
Definition: ConstrainedTrackProvider.h:66
Trk::ConstrainedTrackProvider::m_deltaScaling
double m_deltaScaling
Definition: ConstrainedTrackProvider.h:64
Trk::ConstrainedTrackProvider::~ConstrainedTrackProvider
virtual ~ConstrainedTrackProvider()
Trk::ConstrainedTrackProvider::m_trackFitter
ToolHandle< IGlobalTrackFitter > m_trackFitter
normal track fitter
Definition: ConstrainedTrackProvider.h:51
Trk::ConstrainedTrackProvider::finalize
virtual StatusCode finalize()
Definition: ConstrainedTrackProvider.cxx:171
Trk::ConstrainedTrackProvider::getCorrectedValues_z0
void getCorrectedValues_z0(const Trk::Perigee *mp, double &corrected_z0, double &corrected_z0Error)
Definition: ConstrainedTrackProvider.cxx:529
Trk::ConstrainedTrackProvider::getCorrectedValues_P
void getCorrectedValues_P(const Trk::Perigee *mp, double &correctedQoverP, double &correctedQoverPError)
Definition: ConstrainedTrackProvider.cxx:454
FitterTypes.h
Trk::ConstrainedTrackProvider::m_CorrectZ0
bool m_CorrectZ0
Definition: ConstrainedTrackProvider.h:91
Trk::ConstrainedTrackProvider::passTrackSelection
bool passTrackSelection(const Trk::Track *track)
Definition: ConstrainedTrackProvider.cxx:380
Trk::ConstrainedTrackProvider::m_maxz0
double m_maxz0
Definition: ConstrainedTrackProvider.h:70
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:45
Trk::ConstrainedTrackProvider::m_runOutlierRemoval
RunOutlierRemoval m_runOutlierRemoval
run outlier removal in the GX2 fitter
Definition: ConstrainedTrackProvider.h:53
Trk::ConstrainedTrackProvider::m_reduceConstraintUncertainty
double m_reduceConstraintUncertainty
Definition: ConstrainedTrackProvider.h:62
Trk::RunOutlierRemoval
bool RunOutlierRemoval
switch to toggle quality processing after fit
Definition: FitterTypes.h:22
Trk::ConstrainedTrackProvider::m_minPt
double m_minPt
Definition: ConstrainedTrackProvider.h:71
Trk::ConstrainedTrackProvider::m_maxd0
double m_maxd0
Definition: ConstrainedTrackProvider.h:69
Trk::ConstrainedTrackProvider::m_CorrectMeanD0
bool m_CorrectMeanD0
Definition: ConstrainedTrackProvider.h:100
Trk::ConstrainedTrackProvider::m_maxRetrievalErrors
int m_maxRetrievalErrors
maximum allowed number of retrieval errors at the beginning of the job (-1 for infinite)
Definition: ConstrainedTrackProvider.h:56
Trk::ConstrainedTrackProvider::m_constraintFileName_P
std::string m_constraintFileName_P
Definition: ConstrainedTrackProvider.h:79
Trk::ConstrainedTrackProvider::m_CorrectMomentum
bool m_CorrectMomentum
Definition: ConstrainedTrackProvider.h:78
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Trk::ConstrainedTrackProvider::getCorrectedValues_d0
void getCorrectedValues_d0(const Trk::Perigee *mp, double &corrected_d0, double &corrected_d0Error)
Definition: ConstrainedTrackProvider.cxx:493
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Trk::ConstrainedTrackProvider::m_constraintHistName_d0
std::string m_constraintHistName_d0
Definition: ConstrainedTrackProvider.h:87
Trk::ConstrainedTrackProvider::m_reduceConstraintUncert_z0
double m_reduceConstraintUncert_z0
Definition: ConstrainedTrackProvider.h:63
Trk::ConstrainedTrackProvider::m_CorrectD0
bool m_CorrectD0
Definition: ConstrainedTrackProvider.h:99
Trk::ConstrainedTrackProvider::m_constraintHistName_z0
std::string m_constraintHistName_z0
Definition: ConstrainedTrackProvider.h:94
DataVector< Trk::Track >
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
Trk::ConstrainedTrackProvider::m_useConstrainedTrkOnly
bool m_useConstrainedTrkOnly
Definition: ConstrainedTrackProvider.h:57
Trk::ConstrainedTrackProvider::m_passconstrainedRequirements
int m_passconstrainedRequirements
Definition: ConstrainedTrackProvider.h:59
ITrackCollectionProvider.h
Trk::ConstrainedTrackProvider::m_etaphiMap_P
TH2F * m_etaphiMap_P
Definition: ConstrainedTrackProvider.h:82
Trk::ConstrainedTrackProvider::ConstrainedTrackProvider
ConstrainedTrackProvider(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ConstrainedTrackProvider.cxx:22
Trk::ConstrainedTrackProvider::trackCollection
virtual StatusCode trackCollection(const TrackCollection *&tracks)
Definition: ConstrainedTrackProvider.cxx:192
Trk::ConstrainedTrackProvider::m_maxPt
double m_maxPt
Definition: ConstrainedTrackProvider.h:72
Trk::ConstrainedTrackProvider::m_constraintFileName_d0
std::string m_constraintFileName_d0
Definition: ConstrainedTrackProvider.h:85
Trk::ConstrainedTrackProvider::m_scalepmaptogev
bool m_scalepmaptogev
Definition: ConstrainedTrackProvider.h:54
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
Trk::ConstrainedTrackProvider::m_constrainedTracks
int m_constrainedTracks
Definition: ConstrainedTrackProvider.h:58
Muon.h
Trk::ConstrainedTrackProvider::m_SelectPositive
bool m_SelectPositive
Definition: ConstrainedTrackProvider.h:103
Trk::ConstrainedTrackProvider::m_etaphiMap_z0
TH2F * m_etaphiMap_z0
Definition: ConstrainedTrackProvider.h:97
Trk::ConstrainedTrackProvider::m_constraintHistName_P
std::string m_constraintHistName_P
Definition: ConstrainedTrackProvider.h:81
Trk::ConstrainedTrackProvider::m_etaphiMap_d0
TH2F * m_etaphiMap_d0
Definition: ConstrainedTrackProvider.h:88
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
Trk::ConstrainedTrackProvider::m_constraintInputFile_z0
TFile * m_constraintInputFile_z0
Definition: ConstrainedTrackProvider.h:93
AthAlgTool
Definition: AthAlgTool.h:26
Trk::ConstrainedTrackProvider::m_constraintFileName_z0
std::string m_constraintFileName_z0
Definition: ConstrainedTrackProvider.h:92
Trk::ConstrainedTrackProvider::m_useConstraintError
bool m_useConstraintError
Definition: ConstrainedTrackProvider.h:61
Trk::ConstrainedTrackProvider::m_unconstrainedTracks
int m_unconstrainedTracks
Definition: ConstrainedTrackProvider.h:60
Trk::ConstrainedTrackProvider::m_SelectByCharge
bool m_SelectByCharge
Definition: ConstrainedTrackProvider.h:102
Trk::ConstrainedTrackProvider::printSummary
virtual void printSummary()
Print statistical summary to logfile.
Definition: ConstrainedTrackProvider.cxx:566
Trk::ConstrainedTrackProvider::initialize
virtual StatusCode initialize()
Definition: ConstrainedTrackProvider.cxx:82
Trk::ConstrainedTrackProvider::m_inputTrackCollection
std::string m_inputTrackCollection
Definition: ConstrainedTrackProvider.h:75