1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Artur Szostak
4 // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
6 ////////////////////////////////////////////////////////////////////////////////
8 /* Dumps the contents of the TrackSink 'ts' to the screen.
10 void DumpTrackSink(AliMUONHLT::TrackSink* ts)
12 cout << "File : " << ts->FileName() << endl;
13 cout << "Folder: " << ts->FolderName() << endl;
14 if ( ! ts->GetFirstEvent() )
16 cout << "No events found." << endl;
20 while (ts->MoreEvents())
22 cout << "================= Event: " << ts->CurrentEvent() << " =================" << endl;
25 if ( ! ts->GetFirstBlock() )
27 cout << "No blocks found." << endl;
32 while (ts->MoreBlocks())
34 cout << "Block: " << blocknum++ << endl;
35 if ( ts->GetFirstTrack() == NULL )
37 cout << "\tNo tracks found." << endl;
42 while (ts->MoreTracks())
44 const AliMUONHLT::Track* data = ts->GetTrack();
46 cout << "\tTrigger ID = " << data->TriggerID()
47 << ", Sign = " << data->ParticleSign()
48 << ", P = " << data->P()
49 << ", Pt = " << data->Pt()
51 cout << "\t\tX\tY\tLeft\tRight\tBottom\tTop" << endl;
52 for (Int_t i = 0; i < 10; i++)
54 cout << "\t\t" << data->Hit(i).fX
55 << "\t" << data->Hit(i).fY
56 << "\t" << data->RegionOfInterest(i).Left()
57 << "\t" << data->RegionOfInterest(i).Right()
58 << "\t" << data->RegionOfInterest(i).Bottom()
59 << "\t" << data->RegionOfInterest(i).Top()