#include <TrackDumper.h>
Collaboration diagram for Atlfast::TrackDumper:
Public Methods | |
TrackDumper (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~TrackDumper () |
virtual StatusCode | initialize () |
virtual StatusCode | execute () |
virtual StatusCode | finalize () |
Private Attributes | |
TesIO * | m_tesIO |
std::string | m_inputLocation |
|
Definition at line 37 of file TrackDumper.cxx. References m_inputLocation.
00039 : Algorithm( name, pSvcLocator ){ 00040 00041 // Default paths for entities in the TES 00042 m_inputLocation = "/Event/AtlfastTracks"; 00043 declareProperty( "InputLocation", m_inputLocation ) ; 00044 } |
|
Definition at line 49 of file TrackDumper.cxx. References m_tesIO.
00049 { 00050 delete m_tesIO; 00051 } |
|
Definition at line 58 of file TrackDumper.cxx. References m_inputLocation, and m_tesIO.
00058 { 00059 MsgStream log( messageService(), name() ) ; 00060 00061 m_tesIO = new TesIO(); 00062 00063 HeaderPrinter hp("Atlfast TrackDumper:", log); 00064 hp.add("Input Location ", m_inputLocation); 00065 hp.print(); 00066 log << MSG::INFO << "Initialised successfully " << endreq ; 00067 return StatusCode::SUCCESS ; 00068 } |
|
Definition at line 99 of file TrackDumper.cxx. References m_inputLocation, and m_tesIO.
00099 { 00100 00101 //................................ 00102 // make a message logging stream 00103 00104 MsgStream log( messageService(), name() ) ; 00105 log << MSG::DEBUG << "Execute() " << endreq; 00106 cerr<<"TrackDumper execute"<<endl; 00107 00108 00109 //......................................................... 00110 // We now need to access the HepMC event record(s) in the event store 00111 // and iterate over them to extract HepMC::GenParticles. 00112 // This method will only select the particles which are required 00113 // and add them to a local store (mcParticles) 00114 00115 std::vector<Track*> tracks; 00116 00117 m_tesIO->copy<TrackCollection>( tracks, m_inputLocation ); 00118 TrackPrinter printer(log); 00119 HeaderPrinter hp("TrackDump:", log); 00120 std::for_each(tracks.begin(), tracks.end(), printer); 00121 return StatusCode::SUCCESS; 00122 } |
|
Definition at line 74 of file TrackDumper.cxx.
00074 { 00075 00076 MsgStream log( messageService(), name() ) ; 00077 00078 log << MSG::INFO << "Finalised successfully " << endreq ; 00079 00080 return StatusCode::SUCCESS ; 00081 } |
|
Definition at line 66 of file TrackDumper.h. Referenced by execute(), initialize(), and ~TrackDumper(). |
|
Definition at line 74 of file TrackDumper.h. Referenced by execute(), initialize(), and TrackDumper(). |