]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/createTriggerDescriptor_MUON.C
1) Storing of files to the Grid is now done _after_ your preprocessors succeeded...
[u/mrichter/AliRoot.git] / STEER / createTriggerDescriptor_MUON.C
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_Single_LPt_L0", 
14                          "MUON_Single_LPt_L0",    "Muon Single Low Pt",
15                          (ULong64_t)0x1 );
16
17    // 10
18    descrip.AddCondition( "MUON_Single_HPt_L0", 
19                          "MUON_Single_HPt_L0",    "Muon Single High Pt",
20                          (ULong64_t)0x1 << 1 );
21
22    // 100
23    descrip.AddCondition( "MUON_Like_LPt_L0", 
24                          "MUON_Like_LPt_L0",    "Di Muon Like sign Low Pt",
25                          (ULong64_t)0x1 << 2 );
26
27    // 1000
28    descrip.AddCondition( "MUON_Like_HPt_L0", 
29                          "MUON_Like_HPt_L0",    "Di Muon Like sign High Pt",
30                          (ULong64_t)0x1 << 3 );
31
32    // 10000
33    descrip.AddCondition( "MUON_Unlike_LPt_L0", 
34                          "MUON_Unlike_LPt_L0",    "Di Muon Unlike sign Low Pt",
35                          (ULong64_t)0x1 << 4 );
36
37    // 100000
38    descrip.AddCondition( "MUON_Unlike_HPt_L0", 
39                          "MUON_Unlike_HPt_L0",    "Di Muon Unlike sign High Pt",
40                          (ULong64_t)0x1 << 5 );
41
42
43
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
82