]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/createTriggerDescriptor_MUON.C
- Compute parameter covariances including absorber dispersion effects
[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 // modified in order to be compatible with AliMUONTrigger.cxx (Clermont)
7
8    AliTriggerDescriptor descrip( "MUON", "Standalone Trigger for MUON" );
9
10    // Define a Cluster Detector
11    descrip.AddDetectorCluster( "MUON" ); // only MUON
12
13    // 1
14    descrip.AddCondition( "MUON_Single_LPt_L0", 
15                          "MUON_Single_LPt_L0",    "Muon Single Low Pt",
16                          (ULong64_t)0x1 );
17
18    // 10
19    descrip.AddCondition( "MUON_Single_HPt_L0", 
20                          "MUON_Single_HPt_L0",    "Muon Single High Pt",
21                          (ULong64_t)0x1 << 1 );
22
23    // 100
24    descrip.AddCondition( "MUON_Unlike_LPt_L0", 
25                          "MUON_Unlike_LPt_L0",    "Di Muon UnLike sign Low Pt",
26                          (ULong64_t)0x1 << 2 );
27
28    // 1000
29    descrip.AddCondition( "MUON_Unlike_HPt_L0", 
30                          "MUON_Unlike_HPt_L0",    "Di Muon UnLike sign High Pt",
31                          (ULong64_t)0x1 << 3 );
32
33    // 10000
34    descrip.AddCondition( "MUON_Like_LPt_L0", 
35                          "MUON_Like_LPt_L0",    "Di Muon Like sign Low Pt",
36                          (ULong64_t)0x1 << 4 );
37
38    // 100000
39    descrip.AddCondition( "MUON_Like_HPt_L0", 
40                          "MUON_Like_HPt_L0",    "Di Muon Like sign High Pt",
41                          (ULong64_t)0x1 << 5 );
42
43
44
45    cout << endl << endl;
46
47    if( !descrip.CheckInputsConditions("Config.C") ) {
48       cerr << "\n ERROR: There are some problems on descriptor definition..." << endl;
49       return;
50    }
51
52    cout << endl << endl;
53
54    cout << "************************************************************" << endl;
55    cout << "New Trigger descriptor" << endl;
56    cout << "************************************************************" << endl;
57    descrip.Print();
58
59    // save the descriptor to file
60    descrip.WriteDescriptor();
61
62    cout << endl << endl << endl;
63    cout << "************************************************************" << endl;
64    cout << "Available Trigger descriptors" << endl;
65    cout << "************************************************************" << endl;
66
67    // Get and print all available descriptors
68    TObjArray* desc = AliTriggerDescriptor::GetAvailableDescriptors();
69
70    if( !desc || !desc->GetEntriesFast() ) {
71       cerr << "Not descriptors availables" << endl;
72       return;
73    }
74
75    Int_t ndesc = desc->GetEntriesFast();
76    for( Int_t j=0; j<ndesc; j++ ) {  
77       AliTriggerDescriptor* de = (AliTriggerDescriptor*)desc->At(j); 
78       de->Print();
79    }
80
81 }
82
83