]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/createTriggerDescriptor_pp.C
Important bugfix which affects the raw data events written without the common data...
[u/mrichter/AliRoot.git] / STEER / createTriggerDescriptor_pp.C
CommitLineData
20ea4dd1 1createTriggerDescriptor_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" );
1c06c8d0 10 descrip.AddDetectorCluster( "ITS START VZERO TOF" ); // no CRT yet
20ea4dd1 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
1c06c8d0 20 descrip.AddCondition( "ITS_SPD_GFO_L0 & VZERO_AND",
21 "MB",
22 "Minimum Bias",
23 (ULong64_t)0x1 << 7 );
24 descrip.AddCondition( "ITS_SPD_GFO_L0 & VZERO_AND | TOF_pp_MB_L0",
25 "MB-TOF",
26 "Minimum Bias with TOF",
27 (ULong64_t)0x1 << 8 );
20ea4dd1 28
29 cout << endl << endl;
30
31 if( !descrip.CheckInputsConditions("Config.C") ) {
32 cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
33 return;
34 }
35
36 cout << endl << endl;
37
38 cout << "************************************************************" << endl;
39 cout << "New Trigger descriptor" << endl;
40 cout << "************************************************************" << endl;
41 descrip.Print();
42
43 // save the descriptor to file
44 descrip.WriteDescriptor();
45
46 cout << endl << endl << endl;
47 cout << "************************************************************" << endl;
48 cout << "Available Trigger descriptors" << endl;
49 cout << "************************************************************" << endl;
50
51 // Get and print all available descriptors
52 TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
53
54 if( !desc || !desc->GetEntriesFast() ) {
55 cerr << "Not descriptors availables" << endl;
56 return;
57 }
58
59 Int_t ndesc = desc->GetEntriesFast();
60 for( Int_t j=0; j<ndesc; j++ ) {
61 AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j);
62 de->Print();
63 }
64
65}
66