]>
Commit | Line | Data |
---|---|---|
a897a37a | 1 | #include "iostream.h" |
2 | ||
a9e2aefa | 3 | void MUONdigit (Int_t evNumber1=0, Int_t evNumber2=9, Int_t ibg=1, Int_t bgr=10) |
fe4da5cc | 4 | { |
fe4da5cc | 5 | // Dynamically link some shared libs |
6 | ||
7 | if (gClassTable->GetID("AliRun") < 0) { | |
a897a37a | 8 | gROOT->LoadMacro("loadlibs.C"); |
9 | loadlibs(); | |
fe4da5cc | 10 | } |
11 | ||
12 | // Connect the Root Galice file containing Geometry, Kine and Hits | |
13 | ||
14 | TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root"); | |
15 | if (file) file->Close(); | |
16 | file = new TFile("galice.root","UPDATE"); | |
fe4da5cc | 17 | |
18 | // Get AliRun object from file or create it if not on file | |
19 | ||
20 | if (!gAlice) { | |
21 | gAlice = (AliRun*)file->Get("gAlice"); | |
a897a37a | 22 | if (gAlice) printf("AliRun object found on file\n"); |
fe4da5cc | 23 | if (!gAlice) gAlice = new AliRun("gAlice","Alice test program"); |
24 | } | |
66f93042 | 25 | AliMUON *pMUON = (AliMUON*) gAlice->GetModule("MUON"); |
26 | if (pMUON) { | |
27 | // creation | |
28 | AliMUONMerger* merger = new AliMUONMerger(); | |
29 | // configuration | |
30 | merger->SetMode(1); | |
31 | merger->SetSignalEventNumber(0); | |
32 | merger->SetBackgroundEventNumber(0); | |
33 | merger->SetBackgroundFileName("bg.root"); | |
a9e2aefa | 34 | |
66f93042 | 35 | // pass |
36 | pMUON->SetMerger(merger); | |
37 | } | |
38 | // Action ! | |
39 | gAlice->SDigits2Digits(); | |
a897a37a | 40 | } |
fe4da5cc | 41 | |
fe4da5cc | 42 | |
fe4da5cc | 43 | |
fe4da5cc | 44 | |
fe4da5cc | 45 | |
fe4da5cc | 46 | |
fe4da5cc | 47 | |
fe4da5cc | 48 | |
fe4da5cc | 49 | |
fe4da5cc | 50 | |
fe4da5cc | 51 | |
52 | ||
fe4da5cc | 53 | |
fe4da5cc | 54 |