2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
11 void MUON_trigger_info(Int_t label) {
13 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
15 TTree* tt = rl->GetTreeT("MUON", false);
17 TClonesArray *tracks = 0;
18 tt->SetBranchAddress("AliEveMUONTrack",&tracks);
21 Int_t ntracks = tracks->GetEntriesFast();
23 if (ntracks <= label) return;
25 AliMUONTrack *mt = tracks->At(label);
27 TTree* tr = rl->GetTreeR("MUON", false);
29 TClonesArray *lotrig = 0;
30 tr->SetBranchAddress("MUONLocalTrigger",&lotrig);
33 Int_t nlotrig = lotrig->GetEntriesFast();
36 cout << ">>>>>#########################################################################################################################" << endl;
38 cout << " TEveTrack number " << label << endl;
40 AliMUONTrackParam *mtp = (AliMUONTrackParam*)mt->GetTrackParamAtVertex();
41 Float_t pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
44 setw(8) << setprecision(3) <<
45 pt << " GeV/c" << endl;
49 if (mt->GetLoTrgNum() >= 0) {
50 AliMUONLocalTrigger *lo = (AliMUONLocalTrigger*)lotrig->At(mt->GetLoTrgNum());
51 cout << " Local trigger information" << endl;
52 cout << " -----------------------------------------------------" << endl;
53 cout << " Circuit " << lo->LoCircuit() << endl;
54 cout << " StripX " << lo->LoStripX() << endl;
55 cout << " StripY " << lo->LoStripY() << endl;
56 cout << " Dev " << lo->LoDev() << endl;
57 cout << " LoLpt " << lo->LoLpt() << endl;
58 cout << " LoHpt " << lo->LoHpt() << endl;
59 cout << " Pattern X:" << endl;
60 printf(" %016b \n",lo->GetX1Pattern());
61 printf(" %016b \n",lo->GetX2Pattern());
62 printf(" %016b \n",lo->GetX3Pattern());
63 printf(" %016b \n",lo->GetX4Pattern());
64 cout << " Pattern Y:" << endl;
65 printf(" %016b \n",lo->GetY1Pattern());
66 printf(" %016b \n",lo->GetY2Pattern());
67 printf(" %016b \n",lo->GetY3Pattern());
68 printf(" %016b \n",lo->GetY4Pattern());
69 cout << " Decision:" << endl;
70 printf(" %04b \n",lo->GetLoDecision());
72 cout << " The track has no trigger information!" << endl;
75 cout << "#########################################################################################################################<<<<<" << endl;