Added methods for finding a given module in the DDL map (F. Prino)
[u/mrichter/AliRoot.git] / STEER / createTriggerDescriptor_MUON.C
CommitLineData
992f66f6 1createTriggerDescriptor_MUON()
2{
3 // create Trigger Descriptor for MUON standalone
4 // macro inspired from STEER/createTriggerDescriptor_*.C
5 // May 2006, Ch. Finck
433c34f3 6// modified in order to be compatible with AliMUONTrigger.cxx (Clermont)
992f66f6 7
8 AliTriggerDescriptor descrip( "MUON", "Standalone Trigger for MUON" );
9
10 // Define a Cluster Detector
11 descrip.AddDetectorCluster( "MUON" ); // only MUON
12
13 // 1
a95f103a 14 descrip.AddCondition( "MUON_Single_LPt_L0",
15 "MUON_Single_LPt_L0", "Muon Single Low Pt",
2a7fe927 16 (ULong64_t)0x1 );
992f66f6 17
2a7fe927 18 // 10
a95f103a 19 descrip.AddCondition( "MUON_Single_HPt_L0",
20 "MUON_Single_HPt_L0", "Muon Single High Pt",
2a7fe927 21 (ULong64_t)0x1 << 1 );
992f66f6 22
2a7fe927 23 // 100
433c34f3 24 descrip.AddCondition( "MUON_Unlike_LPt_L0",
25 "MUON_Unlike_LPt_L0", "Di Muon UnLike sign Low Pt",
2a7fe927 26 (ULong64_t)0x1 << 2 );
992f66f6 27
2a7fe927 28 // 1000
433c34f3 29 descrip.AddCondition( "MUON_Unlike_HPt_L0",
30 "MUON_Unlike_HPt_L0", "Di Muon UnLike sign High Pt",
2a7fe927 31 (ULong64_t)0x1 << 3 );
992f66f6 32
2a7fe927 33 // 10000
433c34f3 34 descrip.AddCondition( "MUON_Like_LPt_L0",
35 "MUON_Like_LPt_L0", "Di Muon Like sign Low Pt",
a95f103a 36 (ULong64_t)0x1 << 4 );
992f66f6 37
a95f103a 38 // 100000
433c34f3 39 descrip.AddCondition( "MUON_Like_HPt_L0",
40 "MUON_Like_HPt_L0", "Di Muon Like sign High Pt",
a95f103a 41 (ULong64_t)0x1 << 5 );
992f66f6 42
992f66f6 43
992f66f6 44
992f66f6 45 cout << endl << endl;
46
47 if( !descrip.CheckInputsConditions("Config.C") ) {
48 cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
49 return;
50 }
51
52 cout << endl << endl;
53
54 cout << "************************************************************" << endl;
55 cout << "New Trigger descriptor" << endl;
56 cout << "************************************************************" << endl;
57 descrip.Print();
58
59 // save the descriptor to file
60 descrip.WriteDescriptor();
61
62 cout << endl << endl << endl;
63 cout << "************************************************************" << endl;
64 cout << "Available Trigger descriptors" << endl;
65 cout << "************************************************************" << endl;
66
67 // Get and print all available descriptors
68 TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
69
70 if( !desc || !desc->GetEntriesFast() ) {
71 cerr << "Not descriptors availables" << endl;
72 return;
73 }
74
75 Int_t ndesc = desc->GetEntriesFast();
76 for( Int_t j=0; j<ndesc; j++ ) {
77 AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j);
78 de->Print();
79 }
80
81}
82
2a7fe927 83