]>
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 | |
13 | descrip.AddCondition( "MUON_SPlus_LPt_L0", | |
14 | "MUON_SPlus_LPt_L0", "Muon Plus Low Pt", | |
2a7fe927 | 15 | (ULong64_t)0x1 ); |
992f66f6 | 16 | |
2a7fe927 | 17 | // 10 |
992f66f6 | 18 | descrip.AddCondition( "MUON_SPlus_HPt_L0", |
19 | "MUON_SPlus_HPt_L0", "Muon Plus High Pt", | |
2a7fe927 | 20 | (ULong64_t)0x1 << 1 ); |
992f66f6 | 21 | |
2a7fe927 | 22 | // 100 |
992f66f6 | 23 | descrip.AddCondition( "MUON_SPlus_All_L0", |
24 | "MUON_SPlus_All_L0", "Muon Plus All Pt", | |
2a7fe927 | 25 | (ULong64_t)0x1 << 2 ); |
992f66f6 | 26 | |
2a7fe927 | 27 | // 1000 |
992f66f6 | 28 | descrip.AddCondition( "MUON_SMinus_LPt_L0", |
29 | "MUON_SMinus_LPt_L0", "Muon Minus Low Pt", | |
2a7fe927 | 30 | (ULong64_t)0x1 << 3 ); |
992f66f6 | 31 | |
2a7fe927 | 32 | // 10000 |
992f66f6 | 33 | descrip.AddCondition( "MUON_SMinus_HPt_L0", |
34 | "MUON_SMinus_HPt_L0", "Muon Minus High Pt", | |
2a7fe927 | 35 | (ULong64_t)0x1 << 4 ); |
36 | ||
37 | // 100000 | |
38 | descrip.AddCondition( "MUON_SMinus_All_L0", | |
39 | "MUON_SMinus_All_L0", "Muon Minus All Pt", | |
992f66f6 | 40 | (ULong64_t)0x1 << 5 ); |
41 | ||
2a7fe927 | 42 | // 1000000 |
992f66f6 | 43 | descrip.AddCondition( "MUON_SUndef_LPt_L0", |
44 | "MUON_SUndef_LPt_L0", "Muon Undefined sign Low Pt", | |
45 | (ULong64_t)0x1 << 6 ); | |
46 | ||
2a7fe927 | 47 | // 10000000 |
992f66f6 | 48 | descrip.AddCondition( "MUON_SUndef_HPt_L0", |
49 | "MUON_SUndef_HPt_L0", "Muon Undefined sign High Pt", | |
50 | (ULong64_t)0x1 << 7 ); | |
51 | ||
2a7fe927 | 52 | // 100000000 |
992f66f6 | 53 | descrip.AddCondition( "MUON_SUndef_All_L0", |
54 | "MUON_SUndef_All_L0", "Muon Undefined sign All Pt", | |
55 | (ULong64_t)0x1 << 8 ); | |
56 | ||
2a7fe927 | 57 | // 1000000000 |
992f66f6 | 58 | descrip.AddCondition( "MUON_Unlike_LPt_L0", |
59 | "MUON_Unlike_LPt_L0", "Di Muon Unlike sign Low Pt", | |
60 | (ULong64_t)0x1 << 9 ); | |
61 | ||
2a7fe927 | 62 | // 10000000000 |
992f66f6 | 63 | descrip.AddCondition( "MUON_Unlike_HPt_L0", |
64 | "MUON_Unlike_HPt_L0", "Di Muon Unlike sign High Pt", | |
65 | (ULong64_t)0x1 << 10 ); | |
66 | ||
2a7fe927 | 67 | // 100000000000 |
992f66f6 | 68 | descrip.AddCondition( "MUON_Unlike_All_L0", |
69 | "MUON_Unlike_All_L0", "Di Muon Unlike sign All Pt", | |
70 | (ULong64_t)0x1 << 11 ); | |
71 | ||
2a7fe927 | 72 | // 1000000000000 |
992f66f6 | 73 | descrip.AddCondition( "MUON_Like_LPt_L0", |
74 | "MUON_Like_LPt_L0", "Di Muon Like sign Low Pt", | |
75 | (ULong64_t)0x1 << 12 ); | |
76 | ||
2a7fe927 | 77 | // 10000000000000 |
992f66f6 | 78 | descrip.AddCondition( "MUON_Like_HPt_L0", |
79 | "MUON_Like_HPt_L0", "Di Muon Like sign High Pt", | |
80 | (ULong64_t)0x1 << 13 ); | |
81 | ||
2a7fe927 | 82 | // 100000000000000 |
992f66f6 | 83 | descrip.AddCondition( "MUON_Like_All_L0", |
84 | "MUON_Like_All_L0", "Di Muon Like sign All Pt", | |
85 | (ULong64_t)0x1 << 14 ); | |
86 | cout << endl << endl; | |
87 | ||
88 | if( !descrip.CheckInputsConditions("Config.C") ) { | |
89 | cerr << "\n ERROR: There are some problems on descriptor definition..." << endl; | |
90 | return; | |
91 | } | |
92 | ||
93 | cout << endl << endl; | |
94 | ||
95 | cout << "************************************************************" << endl; | |
96 | cout << "New Trigger descriptor" << endl; | |
97 | cout << "************************************************************" << endl; | |
98 | descrip.Print(); | |
99 | ||
100 | // save the descriptor to file | |
101 | descrip.WriteDescriptor(); | |
102 | ||
103 | cout << endl << endl << endl; | |
104 | cout << "************************************************************" << endl; | |
105 | cout << "Available Trigger descriptors" << endl; | |
106 | cout << "************************************************************" << endl; | |
107 | ||
108 | // Get and print all available descriptors | |
109 | TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors(); | |
110 | ||
111 | if( !desc || !desc->GetEntriesFast() ) { | |
112 | cerr << "Not descriptors availables" << endl; | |
113 | return; | |
114 | } | |
115 | ||
116 | Int_t ndesc = desc->GetEntriesFast(); | |
117 | for( Int_t j=0; j<ndesc; j++ ) { | |
118 | AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j); | |
119 | de->Print(); | |
120 | } | |
121 | ||
122 | } | |
123 | ||
2a7fe927 | 124 |