]>
Commit | Line | Data |
---|---|---|
919162e6 | 1 | void AliTOFtestPID(TString fileNameMatch, TString fileNameCuts) |
2 | { | |
3 | ///////////////////////////////////////////////////////////////////////// | |
4 | // | |
5 | // Test macro for TOF PID | |
6 | // Author: F. Pierella | |
7 | // Report problems to pierella@bo.infn.it | |
8 | // input filenames: | |
9 | // fileNameMatch -> file with the result of matching | |
10 | // fileNameCuts -> file containing the graphical cuts | |
11 | // | |
12 | // Use case: | |
13 | // start root | |
14 | // // load the macro | |
15 | // root[0] .L AliTOFtestPID.C | |
16 | // root[1] AliTOFtestPID("match-6KevPYTHIA-0.2T.root","stdCutspp.root") | |
17 | ///////////////////////////////////////////////////////////////////////// | |
18 | ||
19 | // Dynamically link some shared libs | |
20 | if (gClassTable->GetID("AliRun") < 0) { | |
21 | gROOT->LoadMacro("loadlibs.C"); | |
22 | loadlibs(); | |
23 | cout << "Loaded shared libraries" << endl; | |
24 | } | |
25 | ||
26 | AliTOFPID* tofpid=new AliTOFPID(fileNameMatch.Data(),fileNameCuts.Data()); | |
27 | // make a choice: uncomment one of these lines and try | |
28 | // tofpid->Exec("pp","visual","asC"); | |
29 | // tofpid->Exec("pp","novisual","asC"); | |
30 | // tofpid->Exec("Pb-Pb","visual","asC"); | |
31 | // e.g. for p-p events | |
32 | tofpid->Exec("pp","visual","asC"); | |
33 | //tofpid->Exec("pp","novisual","asEPS"); | |
34 | } |