ATLAS Offline Software
RefitSiOnlyTool.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 INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
6 #define INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
7 
9 // ================================================
10 // RefitSiOnly
11 // ================================================
12 //
13 // RefitSiOnlyTool.h
14 // Header file for RefitSiOnlyTool
15 //
16 // Namespace SiRobustAlign
17 //
18 // AlgTool to create refitted tracks with only silicon hits present
19 
20 
22 #include "GaudiKernel/ToolHandle.h"
24 #include "TrkEventUtils/TrkParametersComparisonFunction.h"//typedef, cannot fwd declare
26 
27 namespace Trk {
28  class Track;
29  class ITrackFitter;
30 }
31 
32 class AtlasDetectorID;
33 
34 namespace InDetAlignment {
36  public:
37  RefitSiOnlyTool (const std::string& type, const std::string& name, const IInterface* parent); //constructor
38  virtual ~RefitSiOnlyTool(); //destructor
39 
40  virtual StatusCode initialize();
41  virtual StatusCode finalize();
42 
44  //virtual void configure();
45  virtual StatusCode configure();
50 
52 
53  private:
55  Trk::Track* refit(const Trk::Track* tr) const;
56 
58  bool filterHit(const Identifier& id) const;
59 
60 
61  ToolHandle<Trk::ITrackFitter> m_ITrkFitter;
62 
64 
65  bool m_doCosmic;
67 
71 
75 
76 
77 
78  };
79 } //namespace
80 
81 #endif // INDETALIGNGENTOOLS_REFITSIONLYTOOL_H
InDetAlignment::RefitSiOnlyTool::dumpTrackCol
void dumpTrackCol(DataVector< Trk::Track > *tracks)
Definition: RefitSiOnlyTool.cxx:228
ICollectionProcessor.h
InDetAlignment::RefitSiOnlyTool::filterHit
bool filterHit(const Identifier &id) const
determines from flags, if this hit should be included in the fit or not
Definition: RefitSiOnlyTool.cxx:218
InDetAlignment::RefitSiOnlyTool::m_ParticleHypothesis
Trk::ParticleHypothesis m_ParticleHypothesis
Definition: RefitSiOnlyTool.h:73
InDetAlignment::RefitSiOnlyTool::~RefitSiOnlyTool
virtual ~RefitSiOnlyTool()
Definition: RefitSiOnlyTool.cxx:57
InDetAlignment::RefitSiOnlyTool::refit
Trk::Track * refit(const Trk::Track *tr) const
refits a track not using non-silicon hits
Definition: RefitSiOnlyTool.cxx:135
InDetAlignment::RefitSiOnlyTool::configure
virtual StatusCode configure()
does necessary configuration to the tool
Definition: RefitSiOnlyTool.cxx:99
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
InDetAlignment::RefitSiOnlyTool::m_stripSCTHits
bool m_stripSCTHits
flag to not consider SCT hits in the refit
Definition: RefitSiOnlyTool.h:68
InDetAlignment::RefitSiOnlyTool::finalize
virtual StatusCode finalize()
Athena Tool methods.
Definition: RefitSiOnlyTool.cxx:93
InDetAlignment
Definition: CreateMisalignAlg.cxx:68
InDetAlignment::RefitSiOnlyTool::m_ParticleNumber
int m_ParticleNumber
Definition: RefitSiOnlyTool.h:72
InDetAlignment::RefitSiOnlyTool
Definition: RefitSiOnlyTool.h:35
InDetAlignment::RefitSiOnlyTool::m_comPar
Trk::TrkParametersComparisonFunction * m_comPar
Definition: RefitSiOnlyTool.h:63
InDetAlignment::RefitSiOnlyTool::m_stripTRTHits
bool m_stripTRTHits
flag to not consider TRT hits in the refit
Definition: RefitSiOnlyTool.h:70
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:25
InDetAlignment::RefitSiOnlyTool::initialize
virtual StatusCode initialize()
Athena Tool methods.
Definition: RefitSiOnlyTool.cxx:60
InDetAlignment::RefitSiOnlyTool::m_OutlierRemoval
bool m_OutlierRemoval
flag for outlier removal
Definition: RefitSiOnlyTool.h:66
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
InDetAlignment::RefitSiOnlyTool::m_doCosmic
bool m_doCosmic
Flag for cosmics.
Definition: RefitSiOnlyTool.h:65
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DataVector< Trk::Track >
ParticleHypothesis.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
InDetAlignment::RefitSiOnlyTool::m_stripPixelHits
bool m_stripPixelHits
flag to not consider Pixel hits in the refit
Definition: RefitSiOnlyTool.h:69
InDetAlignment::RefitSiOnlyTool::m_idHelper
const AtlasDetectorID * m_idHelper
Definition: RefitSiOnlyTool.h:49
InDetAlignment::RefitSiOnlyTool::m_ITrkFitter
ToolHandle< Trk::ITrackFitter > m_ITrkFitter
Definition: RefitSiOnlyTool.h:61
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
InDetAlignment::RefitSiOnlyTool::m_trkindex
int m_trkindex
Definition: RefitSiOnlyTool.h:74
InDetAlignment::ICollectionProcessor
Definition: ICollectionProcessor.h:31
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
Trk::ComparisonFunction< TrackParameters >
AthAlgTool
Definition: AthAlgTool.h:26
InDetAlignment::RefitSiOnlyTool::RefitSiOnlyTool
RefitSiOnlyTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: RefitSiOnlyTool.cxx:37
AtlasDetectorID
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
Definition: AtlasDetectorID.h:57
InDetAlignment::RefitSiOnlyTool::processTrackCollection
virtual const DataVector< Trk::Track > * processTrackCollection(const DataVector< Trk::Track > *trks)
main processing of track collection - refits a track using only filtered hits (e.g.
Definition: RefitSiOnlyTool.cxx:105
TrkParametersComparisonFunction.h