]>
Commit | Line | Data |
---|---|---|
237c933d | 1 | // 0 = all |
e659e1d4 | 2 | // 1 = not pion |
3 | // 2 = not kaon | |
4 | // 3 = not proton | |
5 | // 4 = not muon | |
6 | // 5 = not electron | |
7 | // 6 = not neutron | |
237c933d | 8 | |
9 | ||
8a82cc0b | 10 | Int_t particle_type=0; |
237c933d | 11 | |
ddae0931 | 12 | #include "iostream.h" |
13 | ||
acfed080 | 14 | void RICHdigit (Int_t nEvents = 1,Int_t type = 0) |
ddae0931 | 15 | { |
16 | ///////////////////////////////////////////////////////////////////////// | |
17 | // This macro is a small example of a ROOT macro | |
18 | // illustrating how to read the output of GALICE | |
19 | // and do some analysis. | |
20 | // | |
21 | ///////////////////////////////////////////////////////////////////////// | |
22 | ||
23 | // Dynamically link some shared libs | |
24 | ||
acfed080 | 25 | if (gClassTable->GetID("AliRun") < 0) { |
ddae0931 | 26 | gROOT->LoadMacro("loadlibs.C"); |
27 | loadlibs(); | |
acfed080 | 28 | }else { |
e480e62b | 29 | delete gAlice; |
acfed080 | 30 | gAlice = 0; |
31 | } | |
32 | ||
33 | if(type) | |
34 | { | |
35 | AliRunDigitizer * manager = new AliRunDigitizer(2,1); | |
36 | manager->SetInputStream(0,"galice.root"); | |
37 | manager->SetInputStream(1,"bgr.root"); | |
38 | manager->SetOutputFile("galice.root"); | |
39 | AliRICHDigitizer *dRICH = new AliRICHDigitizer(manager); | |
40 | manager->Exec("deb"); | |
41 | } | |
42 | else | |
43 | { | |
44 | AliRunDigitizer * manager = new AliRunDigitizer(1,1); | |
45 | manager->SetInputStream(0,"galice.root"); | |
46 | manager->SetNrOfEventsToWrite(nEvents); | |
47 | AliRICHDigitizer *dRICH = new AliRICHDigitizer(manager); | |
48 | manager->Exec("deb"); | |
49 | } | |
e480e62b | 50 | |
51 | //delete gAlice; | |
acfed080 | 52 | printf("\nEnd of Macro *************************************\n"); |
ddae0931 | 53 | } |
54 | ||
55 | ||
56 |