1 createTriggerDescriptor_PbPb()
3 // create Trigger Descriptor for Pb-Pb interactions
6 AliTriggerDescriptor descrip( "Pb-Pb", "Default Pb-Pb Descriptor" );
8 // Define a Cluster Detector
9 //descrip.AddDetectorCluster( "ALL" );
10 descrip.AddDetectorCluster( "ITS TRD PHOS EMCAL MUON ZDC T0 VZERO" ); // no ACORDE yet
12 // Define the trigger conditions form Table 4.2 TDR DAQ, Trigger pag 59
14 // TRD_pre_L0 input is not generated in simulation as it is a no busy signal, so, it is not
15 // include in the conditions.
18 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & ZDC_1_L1",// & TRD_pre_L0
22 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & ZDC_2_L1",// & TRD_pre_L0
24 (ULong64_t)0x1 << 1 );
26 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & ZDC_3_L1",// & TRD_pre_L0
28 (ULong64_t)0x1 << 2 );
30 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Unlike_HPt_L0 & ZDC_1_L1", // & TRD_pre_L0
31 "DMUnlikeHPt_TPC_MB", "Di Muon Unlike High Pt TPC Minimum Bias",
32 (ULong64_t)0x1 << 3 );
34 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & MUON_Unlike_HPt_L0 & ZDC_2_L1", // & TRD_pre_L0
35 "DMUnlikeHPt_TPC_SC", "Di Muon Unlike High Pt TPC Semi Central",
36 (ULong64_t)0x1 << 4 );
38 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Unlike_HPt_L0 & ZDC_1_L1",
39 "DMUnlikeHPt_noTPC_MB", "Di Muon Unlike High Pt no TPC Minimum Bias",
40 (ULong64_t)0x1 << 5 );
42 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Unlike_LPt_L0 & ZDC_1_L1",
43 "DMUnlikeLPt_noTPC_MB", "Di Muon Unlike Low Pt no TPC Minimum Bias",
44 (ULong64_t)0x1 << 6 );
46 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & MUON_Unlike_LPt_L0 & ZDC_2_L1",
47 "DMUnlikeLPt_noTPC_SC", "Di Muon Unlike Low Pt no TPC Semi Central",
48 (ULong64_t)0x1 << 7 );
50 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Like_HPt_L0 & ZDC_1_L1", // & TRD_pre_L0
51 "DMLikeHPt_TPC_MB", "Di Muon Like Low Pt TPC Minimum Bias",
52 (ULong64_t)0x1 << 8 );
54 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & MUON_Like_HPt_L0 & ZDC_2_L1", // & TRD_pre_L0
55 "DMLikeHPt_TPC_SC", "Di Muon Like High Pt TPC Semi Central",
56 (ULong64_t)0x1 << 9 );
58 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Like_HPt_L0 & ZDC_1_L1",
59 "DMLikeHPt_noTPC_MB", "Di Muon Like High Pt no TPC Minimum Bias",
60 (ULong64_t)0x1 << 10 );
62 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Like_LPt_L0 & ZDC_1_L1",
63 "DMLikeLPt_noTPC_MB", "Di Muon Like Low Pt no TPC Minimum Bias",
64 (ULong64_t)0x1 << 11 );
66 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & MUON_Like_LPt_L0 & ZDC_2_L1",
67 "DMLikeLPt_noTPC_SC", "Di Muon Like Low Pt no TPC Semi Central",
68 (ULong64_t)0x1 << 12 );
70 // the current implementation of MUON trigger class has to change the inputs to match the following conditions
71 // now they have 9 inputs instead of 1 for MUON single
72 // "MUON_SPlus_LPt_L0", "Single Plus Low Pt",
73 // "MUON_SPlus_HPt_L0", "Single Plus High Pt",
74 // "MUON_SPlus_All_L0", "Single Plus All",
75 // "MUON_SMinus_LPt_L0", "Single Minus Low Pt",
76 // "MUON_SMinus_HPt_L0", "Single Minus High Pt",
77 // "MUON_SMinus_All_L0", "Single Minus All",
78 // "MUON_SUndef_LPt_L0", "Single Undefined Low Pt",
79 // "MUON_SUndef_HPt_L0", "Single Undefined High Pt",
80 // "MUON_SUndef_All_L0", "Single Undefined All",
83 // descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & MUON_Single_L0 & TRD_Electron_L1 & ZDC_1_L1", // & TRD_pre_L0
84 // "DMSingleTDRe_MB", "Di Muon Single TDR electron Minimum Bias",
85 // (ULong64_t)0x1 << 13 );
87 // descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & MUON_Single_L0 & TRD_Electron_L1 & ZDC_2_L1", // & TRD_pre_L0
88 // "DMSingleTDRe_SC", "Di Muon Single TDR electron Semi Central",
89 // (ULong64_t)0x1 << 14 );
91 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_Electron_L1 & ZDC_1_L1", // & TRD_pre_L0
92 "TDRe_MB", "TDR electron Minimum Bias",
93 (ULong64_t)0x1 << 15 );
95 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_HadrLPt_L1 & ZDC_1_L1", // & TRD_pre_L0
96 "TDRLPt_MB", "TDR Low Pt Minimum Bias",
97 (ULong64_t)0x1 << 16 );
99 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_HadrHPt_L1 & ZDC_1_L1", // & TRD_pre_L0
100 "TDRHPt_MB", "TDR High Pt Minimum Bias",
101 (ULong64_t)0x1 << 17 );
103 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_Unlike_EPair_L1 & ZDC_1_L1", // & TRD_pre_L0
104 "TDRUnlikeHPt_MB", "TDR Unlike Electron Pair High Pt Minimum Bias",
105 (ULong64_t)0x1 << 18 );
107 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & TRD_Unlike_EPair_L1 & ZDC_2_L1", // & TRD_pre_L0
108 "TDRUnlikeHPt_SC", "TDR Unlike Electron Pair High Pt Semi Central",
109 (ULong64_t)0x1 << 19 );
111 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_Like_EPair_L1 & ZDC_1_L1", // & TRD_pre_L0
112 "TDRLikeHPt_MB", "TDR Like Electron Pair High Pt Minimum Bias",
113 (ULong64_t)0x1 << 20 );
115 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & TRD_Like_EPair_L1 & ZDC_2_L1", // & TRD_pre_L0
116 "TDRLikeHPt_SC", "TDR Like Electron Pair High Pt Semi Central",
117 (ULong64_t)0x1 << 21 );
120 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & TRD_Jet_HPt_L1 & ZDC_2_L1", // & TRD_pre_L0
121 "TDRJetHPt_SC", "TDR Jet High Pt Semi Central",
122 (ULong64_t)0x1 << 22 );
124 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & TRD_Jet_LPt_L1 & ZDC_1_L1", // & TRD_pre_L0
125 "TDRJetLPt_MB", "TDR Jet Low Pt Minimum Bias",
126 (ULong64_t)0x1 << 23 );
128 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & TRD_Jet_LPt_L1 & ZDC_2_L1", // & TRD_pre_L0
129 "TDRJetLPt_SC", "TDR Jet Low Pt Semi Central",
130 (ULong64_t)0x1 << 24 );
133 descrip.AddCondition( "(START_Vertex_L0 & VZERO_AND) & PHOS_JetHPt_L1 & ZDC_1_L1", // & TRD_pre_L0
134 "PHOSHPt_MB", "PHOS High Pt Minimum Bias",
135 (ULong64_t)0x1 << 25 );
137 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & PHOS_JetLPt_L1 & ZDC_1_L1", // & TRD_pre_L0
138 "PHOSLPt_MB", "PHOS Low Pt Minimum Bias",
139 (ULong64_t)0x1 << 26 );
141 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & PHOS_JetLPt_L1 & ZDC_2_L1", // & TRD_pre_L0
142 "PHOSLPt_SC", "PHOS Low Pt Semi Central",
143 (ULong64_t)0x1 << 27 );
145 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & PHOS_L0 & ZDC_1_L1",
146 "PHOSStand-along", "PHOS Stand-along Minimum Bias",
147 (ULong64_t)0x1 << 28 );
149 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & EMCAL_JetHPt_L1 & ZDC_1_L1",
150 "EMCALJetHPt_MB", "EMCAL Jet High Pt Minimum Bias",
151 (ULong64_t)0x1 << 29 );
153 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & EMCAL_JetMPt_L1 & ZDC_1_L1",
154 "EMCALJetMPt_MB", "EMCAL Jet Medium Pt Minimum Bias",
155 (ULong64_t)0x1 << 30 );
157 descrip.AddCondition( "START_Vertex_L0 & VZERO_AND & EMCAL_JetLPt_L1 & ZDC_1_L1",
158 "EMCALJetLPt_MB", "EMCAL Jet Low Pt Minimum Bias",
159 (ULong64_t)0x1 << 31 );
161 descrip.AddCondition( "START_Vertex_L0 & VZERO_OR & EMCAL_JetLPt_L1 & ZDC_2_L1",
162 "EMCALJetLPt_SC", "EMCAL Jet Low Pt Semi Central",
163 (ULong64_t)0x1 << 32 );
165 descrip.AddCondition( "ZDC_EMD_L1", // ACORDE_L0
166 "ZDC_diss", "ZDC EMD Event",
167 (ULong64_t)0x1 << 33 );
169 // descrip.AddCondition( "ACORDE_cosmic_L0",
170 // "ACORDE_cosmic", "ACORDE cosmic telescope",
171 // (ULong64_t)0x1 << 34 );
174 descrip.AddCondition( "!START_Vertex_L0",
175 "Beam-gas", "Beam Gas Event",
176 (ULong64_t)0x1 << 35 );
179 cout << endl << endl;
181 if( !descrip.CheckInputsConditions("Config.C") ) {
182 cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
186 cout << endl << endl;
188 cout << "************************************************************" << endl;
189 cout << "New Trigger descriptor" << endl;
190 cout << "************************************************************" << endl;
193 // save the descriptor to file
194 descrip.WriteDescriptor();
196 cout << endl << endl << endl;
197 cout << "************************************************************" << endl;
198 cout << "Available Trigger descriptors" << endl;
199 cout << "************************************************************" << endl;
201 // Get and print all available descriptors
202 TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
204 if( !desc || !desc->GetEntriesFast() ) {
205 cerr << "Not descriptors availables" << endl;
209 Int_t ndesc = desc->GetEntriesFast();
210 for( Int_t j=0; j<ndesc; j++ ) {
211 AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j);