1 createTriggerDescriptor_MUON()
3 // create Trigger Descriptor for MUON standalone
4 // macro inspired from STEER/createTriggerDescriptor_*.C
7 AliTriggerDescriptor descrip( "MUON", "Standalone Trigger for MUON" );
9 // Define a Cluster Detector
10 descrip.AddDetectorCluster( "MUON" ); // only MUON
13 descrip.AddCondition( "MUON_Single_LPt_L0",
14 "MUON_Single_LPt_L0", "Muon Single Low Pt",
18 descrip.AddCondition( "MUON_Single_HPt_L0",
19 "MUON_Single_HPt_L0", "Muon Single High Pt",
20 (ULong64_t)0x1 << 1 );
23 descrip.AddCondition( "MUON_Like_LPt_L0",
24 "MUON_Like_LPt_L0", "Di Muon Like sign Low Pt",
25 (ULong64_t)0x1 << 2 );
28 descrip.AddCondition( "MUON_Like_HPt_L0",
29 "MUON_Like_HPt_L0", "Di Muon Like sign High Pt",
30 (ULong64_t)0x1 << 3 );
33 descrip.AddCondition( "MUON_Unlike_LPt_L0",
34 "MUON_Unlike_LPt_L0", "Di Muon Unlike sign Low Pt",
35 (ULong64_t)0x1 << 4 );
38 descrip.AddCondition( "MUON_Unlike_HPt_L0",
39 "MUON_Unlike_HPt_L0", "Di Muon Unlike sign High Pt",
40 (ULong64_t)0x1 << 5 );
46 if( !descrip.CheckInputsConditions("Config.C") ) {
47 cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
53 cout << "************************************************************" << endl;
54 cout << "New Trigger descriptor" << endl;
55 cout << "************************************************************" << endl;
58 // save the descriptor to file
59 descrip.WriteDescriptor();
61 cout << endl << endl << endl;
62 cout << "************************************************************" << endl;
63 cout << "Available Trigger descriptors" << endl;
64 cout << "************************************************************" << endl;
66 // Get and print all available descriptors
67 TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
69 if( !desc || !desc->GetEntriesFast() ) {
70 cerr << "Not descriptors availables" << endl;
74 Int_t ndesc = desc->GetEntriesFast();
75 for( Int_t j=0; j<ndesc; j++ ) {
76 AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j);