#include <TrgTrackToTrack.h>
Public Member Functions | |
TrgTrackToTrack (const std::string &name, ISvcLocator *pSvcLocator) | |
Destructor. | |
virtual | ~TrgTrackToTrack () |
Algorithm initialization. | |
virtual StatusCode | initialize () |
Algorithm execution. | |
virtual StatusCode | execute () |
Algorithm finalization. | |
virtual StatusCode | finalize () |
Protected Types | |
typedef std::vector< TrgTrack * >::const_iterator | TrgTrackIterator |
Protected Attributes | |
TrgTrackContainer * | m_trgContainer |
the input track container | |
std::string | m_trgTracksName |
input tracks | |
std::string | m_trackLocation |
location to store the score |
Definition at line 19 of file TrgTrackToTrack.h.
|
Definition at line 42 of file TrgTrackToTrack.h. |
|
Destructor.
Definition at line 18 of file TrgTrackToTrack.cpp. References m_trackLocation, and m_trgTracksName. 00020 : GaudiAlgorithm ( name , pSvcLocator ) 00021 , m_trgContainer() 00022 { 00023 declareProperty( "TrgTracksName" , 00024 m_trgTracksName = TrgTrackLocation::SpaceVelo ); 00025 00026 declareProperty( "TrackLocation" , 00027 m_trackLocation = "/Event/Tracks" ); 00028 00029 }
|
|
Algorithm initialization.
Definition at line 31 of file TrgTrackToTrack.cpp. 00031 {};
|
|
Algorithm finalization.
Definition at line 56 of file TrgTrackToTrack.cpp. References m_trackLocation, m_trgContainer, TrgTrackConverter::str(), and TrgTrackConverter::toTrack(). 00056 { 00057 00058 size_t ntracks = m_trgContainer->size(); 00059 info() << " ================= HHH ============= " << std::endl; 00060 info() << " # of TrgTracks " << ntracks << std::endl; 00061 00062 Tracks* tracks = new Tracks(); 00063 00064 for (TrgTrackIterator it = m_trgContainer->begin(); 00065 it != m_trgContainer->end(); it++) { 00066 const TrgTrack& gtrack = *(*it); 00067 Track* track = TrgTrackConverter::toTrack(gtrack); 00068 tracks->insert(track); 00069 TrgTrackConverter::str(*track); 00070 } 00071 00072 // locate the tracks in the TES 00073 put( tracks, m_trackLocation); 00074 info() << " ================= HHH ============= " << std::endl; 00075 00076 return StatusCode::SUCCESS; 00077 00078 }
|
|
Definition at line 81 of file TrgTrackToTrack.cpp. 00081 {
00082 return StatusCode::SUCCESS;
00083 }
|
|
Algorithm execution. get the pointers to the tracks containers release the tool Definition at line 33 of file TrgTrackToTrack.cpp. References m_trackLocation, m_trgContainer, and m_trgTracksName. 00033 { 00034 00035 // initialize the gaudi-algorithm 00036 StatusCode sc = GaudiAlgorithm::initialize(); 00037 if ( sc.isFailure() ) return sc; 00038 00039 // get the dataProvider 00040 TrgDataProvider* trgData = tool<TrgDataProvider>( "TrgDataProvider" ); 00041 00043 m_trgContainer = trgData->tracks(m_trgTracksName); 00044 00046 release(trgData); 00047 00048 info() << " -- parameters of TrgTrackToTrack -- " << endreq; 00049 info() << " TrgTrack input container " << m_trgTracksName << endreq; 00050 info() << " Track output contaner " << m_trackLocation << endreq; 00051 info() << " --------------------------------------- " << endreq; 00052 00053 return StatusCode::SUCCESS; 00054 }
|
|
location to store the score
Definition at line 50 of file TrgTrackToTrack.h. Referenced by execute(), initialize(), and TrgTrackToTrack(). |
|
the input track container
Definition at line 40 of file TrgTrackToTrack.h. Referenced by execute(), and initialize(). |
|
input tracks
Definition at line 47 of file TrgTrackToTrack.h. Referenced by initialize(), and TrgTrackToTrack(). |