]>
Commit | Line | Data |
---|---|---|
20ea4dd1 | 1 | createTriggerDescriptor_pp() |
2 | { | |
3 | // create Trigger Descriptor for p-p interactions | |
4 | ||
5 | ||
6 | AliTriggerDescriptor descrip( "p-p", "Default p-p Descriptor" ); | |
7 | ||
8 | // Define a Cluster Detector | |
9 | //descrip.AddDetectorCluster( "ALL" ); | |
10 | descrip.AddDetectorCluster( "ITS START VZERO" ); // no CRT yet | |
11 | ||
12 | descrip.AddCondition( "VZERO_LEFT", "VZERO_LEFT", "VZERO A (Left)", (ULong64_t)0x1 ); | |
13 | descrip.AddCondition( "VZERO_RIGHT", "VZERO_RIGHT", "VZERO C (Right)", (ULong64_t)0x1 << 1 ); | |
14 | descrip.AddCondition( "VZERO_BEAMGAS", "VZERO_BEAMGAS", "VZERO beam gas rejection", (ULong64_t)0x1 << 2 ); | |
15 | descrip.AddCondition( "START_A_L0", "START_A_L0", "START A (Left)", (ULong64_t)0x1 << 3 ); | |
16 | descrip.AddCondition( "START_C_L0", "START_C_L0", "START C (Right)", (ULong64_t)0x1 << 4 ); | |
17 | descrip.AddCondition( "ITS_SPD_GFO_L0", "ITS_SPD_GFO_L0", "SPD global fast-or", (ULong64_t)0x1 << 5 ); | |
18 | descrip.AddCondition( "ITS_SPD_HMULT_L0","ITS_SPD_HMULT_L0","SPD high mult. 100 ", (ULong64_t)0x1 << 6 ); | |
19 | ||
20 | descrip.AddCondition( "ITS_SPD_GFO_L0 & VZERO_AND", "MB","Minimum Bias", (ULong64_t)0x1 << 7 ); | |
21 | ||
22 | cout << endl << endl; | |
23 | ||
24 | if( !descrip.CheckInputsConditions("Config.C") ) { | |
25 | cerr << "\n ERROR: There are some problems on descriptor definition..." << endl; | |
26 | return; | |
27 | } | |
28 | ||
29 | cout << endl << endl; | |
30 | ||
31 | cout << "************************************************************" << endl; | |
32 | cout << "New Trigger descriptor" << endl; | |
33 | cout << "************************************************************" << endl; | |
34 | descrip.Print(); | |
35 | ||
36 | // save the descriptor to file | |
37 | descrip.WriteDescriptor(); | |
38 | ||
39 | cout << endl << endl << endl; | |
40 | cout << "************************************************************" << endl; | |
41 | cout << "Available Trigger descriptors" << endl; | |
42 | cout << "************************************************************" << endl; | |
43 | ||
44 | // Get and print all available descriptors | |
45 | TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors(); | |
46 | ||
47 | if( !desc || !desc->GetEntriesFast() ) { | |
48 | cerr << "Not descriptors availables" << endl; | |
49 | return; | |
50 | } | |
51 | ||
52 | Int_t ndesc = desc->GetEntriesFast(); | |
53 | for( Int_t j=0; j<ndesc; j++ ) { | |
54 | AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j); | |
55 | de->Print(); | |
56 | } | |
57 | ||
58 | } | |
59 |