Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrgTrackToTrack Class Reference

#include <TrgTrackToTrack.h>

List of all members.

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


Detailed Description

Do: Convert TrgTracks to Tracks Input: TrgTracks in a TrgContainer of the TrgData Tool Output: A list of Track in a container
Author:
Jose A. Hernando
Date:
2005-01-13

Definition at line 19 of file TrgTrackToTrack.h.


Member Typedef Documentation

typedef std::vector<TrgTrack*>::const_iterator TrgTrackToTrack::TrgTrackIterator [protected]
 

Definition at line 42 of file TrgTrackToTrack.h.


Constructor & Destructor Documentation

TrgTrackToTrack::TrgTrackToTrack const std::string &  name,
ISvcLocator *  pSvcLocator
 

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 }

TrgTrackToTrack::~TrgTrackToTrack  )  [virtual]
 

Algorithm initialization.

Definition at line 31 of file TrgTrackToTrack.cpp.

00031 {};


Member Function Documentation

StatusCode TrgTrackToTrack::execute  )  [virtual]
 

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 }

StatusCode TrgTrackToTrack::finalize  )  [virtual]
 

Definition at line 81 of file TrgTrackToTrack.cpp.

00081                                      {
00082   return StatusCode::SUCCESS;
00083 }

StatusCode TrgTrackToTrack::initialize  )  [virtual]
 

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 }


Member Data Documentation

std::string TrgTrackToTrack::m_trackLocation [protected]
 

location to store the score

Definition at line 50 of file TrgTrackToTrack.h.

Referenced by execute(), initialize(), and TrgTrackToTrack().

TrgTrackContainer* TrgTrackToTrack::m_trgContainer [protected]
 

the input track container

Definition at line 40 of file TrgTrackToTrack.h.

Referenced by execute(), and initialize().

std::string TrgTrackToTrack::m_trgTracksName [protected]
 

input tracks

Definition at line 47 of file TrgTrackToTrack.h.

Referenced by initialize(), and TrgTrackToTrack().


The documentation for this class was generated from the following files:
Generated on Thu Apr 7 22:43:32 2005 for New Track Event Model by doxygen 1.4.1