3 void MUON_trigger_info(Int_t label) {
5 AliRunLoader* rl = Alieve::Event::AssertRunLoader();
7 TTree* tt = rl->GetTreeT("MUON", false);
9 TClonesArray *tracks = 0;
10 tt->SetBranchAddress("MUONTrack",&tracks);
13 Int_t ntracks = tracks->GetEntriesFast();
15 if (ntracks <= label) return;
17 AliMUONTrack *mt = tracks->At(label);
19 TTree* tr = rl->GetTreeR("MUON", false);
21 TClonesArray *lotrig = 0;
22 tr->SetBranchAddress("MUONLocalTrigger",&lotrig);
25 Int_t nlotrig = lotrig->GetEntriesFast();
28 cout << ">>>>>#########################################################################################################################" << endl;
30 cout << " Track number " << label << endl;
32 AliMUONTrackParam *mtp = (AliMUONTrackParam*)mt->GetTrackParamAtVertex();
33 Float_t pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
36 setw(8) << setprecision(3) <<
37 pt << " GeV/c" << endl;
41 if (mt->GetLoTrgNum() >= 0) {
42 AliMUONLocalTrigger *lo = (AliMUONLocalTrigger*)lotrig->At(mt->GetLoTrgNum());
43 cout << " Local trigger information" << endl;
44 cout << " -----------------------------------------------------" << endl;
45 cout << " Circuit " << lo->LoCircuit() << endl;
46 cout << " StripX " << lo->LoStripX() << endl;
47 cout << " StripY " << lo->LoStripY() << endl;
48 cout << " Dev " << lo->LoDev() << endl;
49 cout << " LoLpt " << lo->LoLpt() << endl;
50 cout << " LoHpt " << lo->LoHpt() << endl;
51 cout << " Pattern X:" << endl;
52 printf(" %016b \n",lo->GetX1Pattern());
53 printf(" %016b \n",lo->GetX2Pattern());
54 printf(" %016b \n",lo->GetX3Pattern());
55 printf(" %016b \n",lo->GetX4Pattern());
56 cout << " Pattern Y:" << endl;
57 printf(" %016b \n",lo->GetY1Pattern());
58 printf(" %016b \n",lo->GetY2Pattern());
59 printf(" %016b \n",lo->GetY3Pattern());
60 printf(" %016b \n",lo->GetY4Pattern());
61 cout << " Decision:" << endl;
62 printf(" %04b \n",lo->GetLoDecision());
64 cout << " The track has no trigger information!" << endl;
67 cout << "#########################################################################################################################<<<<<" << endl;