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