|
ATLAS Offline Software
|
Go to the documentation of this file.
41 if (
msgLvl(MSG::WARNING))
msg(MSG::WARNING)<<
"Could not retrieve InDetTrackSplitterTool" <<
endmsg;
47 return StatusCode::SUCCESS;
58 return StatusCode::SUCCESS;
72 if (splittedTracks.
record( std::make_unique<TrackCollection>() ).isFailure()){
74 return StatusCode::FAILURE;
83 std::pair<Trk::Track*, Trk::Track*> splitTracks = std::pair<Trk::Track*, Trk::Track*> (0,0);
86 if(splitTracks.first && splitTracks.second){
88 ATH_MSG_DEBUG(
"** InDetSplittedTracksCreator ** Accept upper segment ");
89 splittedTracks->
push_back( splitTracks.first );
92 ATH_MSG_DEBUG(
"** InDetSplittedTracksCreator ** Accept lower segment ");
93 splittedTracks->
push_back( splitTracks.second );
96 delete splitTracks.first;
delete splitTracks.second;
103 return StatusCode::SUCCESS;
108 return StatusCode::SUCCESS;
StatusCode finalize()
standard Athena-Algorithm method
Const iterator class for DataVector/DataList.
bool m_takeUpperSegment
flag to accept the upper segment
SG::ReadHandleKey< TrackCollection > m_TrackCol
holds the name of the track coll to be used
bool m_makeSiOnlyTracks
flag for using TRT standalone tracks
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool msgLvl(const MSG::Level lvl) const
SG::WriteHandleKey< TrackCollection > m_OutputTrackCol
holds the names the output track collection written to store gate
bool m_takeLowerSegment
flag to accept the lower segment
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
StatusCode initialize()
standard Athena-Algorithm method
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< InDet::IInDetTrackSplitterTool > m_trackSplitterTool
instances of IInDet
~InDetSplittedTracksCreator()
Default Destructor.
StatusCode execute(const EventContext &ctx) const
standard Athena-Algorithm method
virtual bool isValid() override final
Can the handle be successfully dereferenced?
InDetSplittedTracksCreator(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
size_type size() const noexcept
Returns the number of elements in the collection.