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 **************************************************************************/
12 void MUON_trigger_info(Int_t label) {
14 AliRunLoader* rl = AliEveEventManager::AssertRunLoader();
16 TTree* tt = rl->GetTreeT("MUON", false);
18 TClonesArray *tracks = 0;
19 tt->SetBranchAddress("AliEveMUONTrack",&tracks);
22 Int_t ntracks = tracks->GetEntriesFast();
24 if (ntracks <= label) return;
26 AliMUONTrack *mt = tracks->At(label);
28 TTree* tr = rl->GetTreeR("MUON", false);
30 TClonesArray *lotrig = 0;
31 tr->SetBranchAddress("MUONLocalTrigger",&lotrig);
34 Int_t nlotrig = lotrig->GetEntriesFast();
37 cout << ">>>>>#########################################################################################################################" << endl;
39 cout << " TEveTrack number " << label << endl;
41 AliMUONTrackParam *mtp = (AliMUONTrackParam*)mt->GetTrackParamAtVertex();
42 Float_t pt = TMath::Sqrt(mtp->Px()*mtp->Px()+mtp->Py()*mtp->Py());
45 setw(8) << setprecision(3) <<
46 pt << " GeV/c" << endl;
50 if (mt->GetLoTrgNum() >= 0) {
51 AliMUONLocalTrigger *lo = (AliMUONLocalTrigger*)lotrig->At(mt->GetLoTrgNum());
52 cout << " Local trigger information" << endl;
53 cout << " -----------------------------------------------------" << endl;
54 cout << " Circuit " << lo->LoCircuit() << endl;
55 cout << " StripX " << lo->LoStripX() << endl;
56 cout << " StripY " << lo->LoStripY() << endl;
57 cout << " Dev " << lo->LoDev() << endl;
58 cout << " LoLpt " << lo->LoLpt() << endl;
59 cout << " LoHpt " << lo->LoHpt() << endl;
60 cout << " Pattern X:" << endl;
61 printf(" %016b \n",lo->GetX1Pattern());
62 printf(" %016b \n",lo->GetX2Pattern());
63 printf(" %016b \n",lo->GetX3Pattern());
64 printf(" %016b \n",lo->GetX4Pattern());
65 cout << " Pattern Y:" << endl;
66 printf(" %016b \n",lo->GetY1Pattern());
67 printf(" %016b \n",lo->GetY2Pattern());
68 printf(" %016b \n",lo->GetY3Pattern());
69 printf(" %016b \n",lo->GetY4Pattern());
70 cout << " Decision:" << endl;
71 printf(" %04b \n",lo->GetLoDecision());
73 cout << " The track has no trigger information!" << endl;
76 cout << "#########################################################################################################################<<<<<" << endl;