1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Artur Szostak
4 // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
6 ////////////////////////////////////////////////////////////////////////////////
8 /* Dumps the contents of the ClusterSource 'cs' to the screen.
10 void DumpClusterSource(AliMUONHLT::ClusterSource* cs)
12 cout << "File : " << cs->FileName() << endl;
13 cout << "Folder: " << cs->FolderName() << endl;
14 if (cs->GetFirstEvent())
18 cout << "================= Event: " << cs->CurrentEvent() << " =================" << endl;
19 if ( ! cs->GetFirstBlock() )
21 cout << "No blocks found." << endl;
26 cout << "Block for chamber: " << cs->Chamber() << endl;
27 if ( cs->GetFirstCluster() == NULL )
29 cout << "\tNo cluster points found." << endl;
35 cs->FetchCluster(x, y);
36 cout << "\tx = " << x << ", y = " << y << endl;
37 } while (cs->GetNextCluster());
38 } while (cs->GetNextBlock());
39 } while (cs->GetNextEvent());
43 cout << "No events found." << endl;