]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - RICH/RICHdigit.C
unused vars removed
[u/mrichter/AliRoot.git] / RICH / RICHdigit.C
... / ...
CommitLineData
1// 0 = all
2// 1 = not pion
3// 2 = not kaon
4// 3 = not proton
5// 4 = not muon
6// 5 = not electron
7// 6 = not neutron
8
9
10Int_t particle_type=0;
11
12#include "iostream.h"
13
14void RICHdigit (Int_t nEvents = 1,Int_t type = 0)
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
25 if (gClassTable->GetID("AliRun") < 0) {
26 gROOT->LoadMacro("loadlibs.C");
27 loadlibs();
28 }else {
29 delete gAlice;
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 }
50
51 //delete gAlice;
52 printf("\nEnd of Macro *************************************\n");
53}
54
55
56