]>
Commit | Line | Data |
---|---|---|
8356cc1d | 1 | //////////////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // Author: Artur Szostak | |
4 | // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com | |
5 | // | |
6 | //////////////////////////////////////////////////////////////////////////////// | |
7 | ||
8 | /* Dumps the contents of the ClusterSource 'cs' to the screen. | |
9 | */ | |
10 | void DumpClusterSource(AliMUONHLT::ClusterSource* cs) | |
11 | { | |
12 | cout << "File : " << cs->FileName() << endl; | |
13 | cout << "Folder: " << cs->FolderName() << endl; | |
14 | if (cs->GetFirstEvent()) | |
15 | { | |
16 | do | |
17 | { | |
18 | cout << "================= Event: " << cs->CurrentEvent() << " =================" << endl; | |
19 | if ( ! cs->GetFirstBlock() ) | |
20 | { | |
21 | cout << "No blocks found." << endl; | |
22 | continue; | |
23 | }; | |
24 | do | |
25 | { | |
26 | cout << "Block for chamber: " << cs->Chamber() << endl; | |
27 | if ( cs->GetFirstCluster() == NULL ) | |
28 | { | |
29 | cout << "\tNo cluster points found." << endl; | |
30 | continue; | |
31 | }; | |
32 | do | |
33 | { | |
34 | Float_t x, y; | |
35 | cs->FetchCluster(x, y); | |
36 | cout << "\tx = " << x << ", y = " << y << endl; | |
37 | } while (cs->GetNextCluster()); | |
38 | } while (cs->GetNextBlock()); | |
39 | } while (cs->GetNextEvent()); | |
40 | } | |
41 | else | |
42 | { | |
43 | cout << "No events found." << endl; | |
44 | }; | |
45 | }; | |
46 |