]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/MUON/macros/DumpTriggerSource.C
Applying modification so that LUTs are generated from CDB, which also solves LUT...
[u/mrichter/AliRoot.git] / HLT / MUON / macros / DumpTriggerSource.C
CommitLineData
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 TriggerSource 'ts' to the screen.
9 */
10void DumpTriggerSource(AliMUONHLT::TriggerSource* ts)
11{
12 cout << "File : " << ts->FileName() << endl;
13 cout << "Folder: " << ts->FolderName() << endl;
14 if (ts->GetFirstEvent())
15 {
16 do
17 {
18 cout << "================= Event: " << ts->CurrentEvent() << " =================" << endl;
19 Int_t blocknum = 0;
20 if ( ! ts->GetFirstBlock() )
21 {
22 cout << "No blocks found." << endl;
23 continue;
24 };
25 do
26 {
27 cout << "Block: " << blocknum++ << endl;
28 if ( ts->GetFirstTrigger() == NULL )
29 {
30 cout << "\tNo trigger records found." << endl;
31 continue;
32 };
33 do
34 {
35 AliMUONHLT::TriggerRecord* data = ts->GetTrigger();
36
37 cout << "\tTrigger number = " << data->TriggerNumber()
38 << ", Sign = " << data->ParticleSign()
39 << ", Pt = " << data->Pt()
40 << ", ST1 x = " << data->Station1Point().fX
41 << ", ST1 y = " << data->Station1Point().fY
42 << ", ST2 x = " << data->Station2Point().fX
43 << ", ST2 y = " << data->Station2Point().fY
44 << endl;
45 } while (ts->GetNextTrigger());
46 } while (ts->GetNextBlock());
47 } while (ts->GetNextEvent());
48 }
49 else
50 {
51 cout << "No events found." << endl;
52 };
53};
54