1 createTriggerDescriptor_MUON()
3 // create Trigger Descriptor for MUON standalone
4 // macro inspired from STEER/createTriggerDescriptor_*.C
6 // modified in order to be compatible with AliMUONTrigger.cxx (Clermont)
8 AliTriggerDescriptor descrip( "MUON", "Standalone Trigger for MUON" );
10 // Define a Cluster Detector
11 descrip.AddDetectorCluster( "MUON" ); // only MUON
14 descrip.AddCondition( "MUON_Single_LPt_L0",
15 "MUON_Single_LPt_L0", "Muon Single Low Pt",
19 descrip.AddCondition( "MUON_Single_HPt_L0",
20 "MUON_Single_HPt_L0", "Muon Single High Pt",
21 (ULong64_t)0x1 << 1 );
24 descrip.AddCondition( "MUON_Unlike_LPt_L0",
25 "MUON_Unlike_LPt_L0", "Di Muon UnLike sign Low Pt",
26 (ULong64_t)0x1 << 2 );
29 descrip.AddCondition( "MUON_Unlike_HPt_L0",
30 "MUON_Unlike_HPt_L0", "Di Muon UnLike sign High Pt",
31 (ULong64_t)0x1 << 3 );
34 descrip.AddCondition( "MUON_Like_LPt_L0",
35 "MUON_Like_LPt_L0", "Di Muon Like sign Low Pt",
36 (ULong64_t)0x1 << 4 );
39 descrip.AddCondition( "MUON_Like_HPt_L0",
40 "MUON_Like_HPt_L0", "Di Muon Like sign High Pt",
41 (ULong64_t)0x1 << 5 );
47 if( !descrip.CheckInputsConditions("Config.C") ) {
48 cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
54 cout << "************************************************************" << endl;
55 cout << "New Trigger descriptor" << endl;
56 cout << "************************************************************" << endl;
59 // save the descriptor to file
60 descrip.WriteDescriptor();
62 cout << endl << endl << endl;
63 cout << "************************************************************" << endl;
64 cout << "Available Trigger descriptors" << endl;
65 cout << "************************************************************" << endl;
67 // Get and print all available descriptors
68 TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
70 if( !desc || !desc->GetEntriesFast() ) {
71 cerr << "Not descriptors availables" << endl;
75 Int_t ndesc = desc->GetEntriesFast();
76 for( Int_t j=0; j<ndesc; j++ ) {
77 AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j);