ATLAS Offline Software
SeedToTrackConversionTool.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 /*
4  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5 */
6 
8 // SeedToTrackConversionTool.h
9 // Version 0.0 01/02/2016 Weiming Yao(LBNL)
11 
12 #ifndef INDETSEEDTOTRACKCONVERSIONTOOL_H
13 #define INDETSEEDTOTRACKCONVERSIONTOOL_H
14 
21 
22 #include "GaudiKernel/ToolHandle.h"
23 
24 #include <atomic>
25 #include <list>
26 
27 class MsgStream;
28 
29 namespace InDet
30 {
31 
46  class SeedToTrackConversionTool : public extends<AthAlgTool, ISeedToTrackConversionTool>
47  {
48  public:
51  SeedToTrackConversionTool(const std::string&,const std::string&,const IInterface*);
53 
56  virtual ~SeedToTrackConversionTool() = default;
58 
61  virtual StatusCode initialize() override;
63 
66  virtual StatusCode finalize() override;
68 
71  virtual void executeSiSPSeedSegments(SeedToTrackConversionData& data, const Trk::TrackParameters*, const int&, const std::vector<const Trk::SpacePoint*>&) const override;
73  virtual void newEvent(SeedToTrackConversionData& data, const Trk::TrackInfo&, const std::string&) const override;
74  virtual void endEvent(SeedToTrackConversionData& data) const override;
76 
79  virtual MsgStream& dump(SeedToTrackConversionData& data, MsgStream& out) const override;
81 
82  private:
85  PublicToolHandle<Trk::IExtrapolator> m_extrapolator
86  {this, "Extrapolator","Trk::Extrapolator", "extrapolator"};
87  ToolHandle<Trk::IRIO_OnTrackCreator > m_rotcreator
88  {this, "RIO_OnTrackCreator", "Trk::RIO_OnTrackCreator/InDetRotCreator", "Creator ROT"};
90 
93  SG::WriteHandleKey<TrackCollection> m_seedsegmentsOutput{this, "OutputName", "SiSPSeedSegments", "SiSpSeedSegments Output Collection"};
95 
98  mutable std::atomic_int m_nprint{0};
99  mutable std::atomic_int m_totseed{0};
100  mutable std::atomic_int m_survived{0};
101 
102 
105  MsgStream& dumpconditions(SeedToTrackConversionData& data, MsgStream& out) const;
106  MsgStream& dumpevent (SeedToTrackConversionData& data, MsgStream& out) const;
108 
109  };
110 } // end of namespace
111 
112 #endif
data
char data[hepevt_bytes_allocation_ATLAS]
Definition: HepEvt.cxx:11
Trk::TrackInfo
Contains information about the 'fitter' of this track.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:32
ISeedToTrackConversionTool.h
InDet::SeedToTrackConversionTool::dump
virtual MsgStream & dump(SeedToTrackConversionData &data, MsgStream &out) const override
Definition: SeedToTrackConversionTool.cxx:147
InDet::SeedToTrackConversionTool::dumpconditions
MsgStream & dumpconditions(SeedToTrackConversionData &data, MsgStream &out) const
Definition: SeedToTrackConversionTool.cxx:157
InDet
Primary Vertex Finder.
Definition: VP1ErrorUtils.h:36
IRIO_OnTrackCreator.h
InDet::SeedToTrackConversionTool::executeSiSPSeedSegments
virtual void executeSiSPSeedSegments(SeedToTrackConversionData &data, const Trk::TrackParameters *, const int &, const std::vector< const Trk::SpacePoint * > &) const override
seed trackparameters, number of tracks found:m_track.size(), list of spacepoints
Definition: SeedToTrackConversionTool.cxx:95
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
IExtrapolator.h
InDet::SeedToTrackConversionTool::m_survived
std::atomic_int m_survived
number of survived seeds
Definition: SeedToTrackConversionTool.h:100
InDet::SeedToTrackConversionTool::m_nprint
std::atomic_int m_nprint
Kind output information.
Definition: SeedToTrackConversionTool.h:98
InDet::SeedToTrackConversionTool::m_rotcreator
ToolHandle< Trk::IRIO_OnTrackCreator > m_rotcreator
Definition: SeedToTrackConversionTool.h:88
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
InDet::SeedToTrackConversionTool::dumpevent
MsgStream & dumpevent(SeedToTrackConversionData &data, MsgStream &out) const
Definition: SeedToTrackConversionTool.cxx:173
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
TrackCollection.h
InDet::SeedToTrackConversionTool::m_totseed
std::atomic_int m_totseed
number of total seeds in the pass
Definition: SeedToTrackConversionTool.h:99
Trk::ParametersBase
Definition: ParametersBase.h:55
InDet::SeedToTrackConversionTool::endEvent
virtual void endEvent(SeedToTrackConversionData &data) const override
Definition: SeedToTrackConversionTool.cxx:78
InDet::SeedToTrackConversionTool::m_extrapolator
PublicToolHandle< Trk::IExtrapolator > m_extrapolator
Definition: SeedToTrackConversionTool.h:86
InDet::SeedToTrackConversionTool::~SeedToTrackConversionTool
virtual ~SeedToTrackConversionTool()=default
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
InDet::SeedToTrackConversionData
Definition: SeedToTrackConversionData.h:28
InDet::SeedToTrackConversionTool
Definition: SeedToTrackConversionTool.h:47
InDet::SeedToTrackConversionTool::m_seedsegmentsOutput
SG::WriteHandleKey< TrackCollection > m_seedsegmentsOutput
Definition: SeedToTrackConversionTool.h:93
InDet::SeedToTrackConversionTool::initialize
virtual StatusCode initialize() override
Definition: SeedToTrackConversionTool.cxx:32
InDet::SeedToTrackConversionTool::SeedToTrackConversionTool
SeedToTrackConversionTool(const std::string &, const std::string &, const IInterface *)
Definition: SeedToTrackConversionTool.cxx:23
InDet::SeedToTrackConversionTool::newEvent
virtual void newEvent(SeedToTrackConversionData &data, const Trk::TrackInfo &, const std::string &) const override
Definition: SeedToTrackConversionTool.cxx:65
InDet::SeedToTrackConversionTool::finalize
virtual StatusCode finalize() override
Definition: SeedToTrackConversionTool.cxx:60