Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
326 | f9daq | 1 | void script(int runNumber){ |
2 | char path[0xFF]; |
||
3 | TFile * data; |
||
4 | |||
5 | gROOT->ProcessLine(".L ./base.c+"); |
||
6 | gROOT->ProcessLine(".L ./savetoroot.c+"); |
||
7 | gROOT->ProcessLine(".L ./info.c+"); |
||
8 | gROOT->ProcessLine(".L ./gain.c+"); |
||
9 | gROOT->ProcessLine(".L ./treshold.c+"); |
||
10 | gROOT->ProcessLine(".L ./projection.c+"); |
||
11 | |||
12 | //~ char c; printf("Compilation complete, PRESS ENTER to continue..."); scanf("%c",&c); |
||
13 | |||
14 | gROOT->SetBatch(kTRUE); |
||
15 | |||
16 | info(runNumber, 2); |
||
17 | |||
18 | gain(runNumber, 2); |
||
19 | |||
20 | charge(runNumber, 2); |
||
21 | |||
22 | treshold(runNumber, 2); |
||
23 | |||
24 | sprintf(path,"../modules/%04d/%04d_2_2DX.root",runNumber,runNumber); |
||
25 | if (file_exists(path)){ |
||
26 | data = new TFile(path); //Zvezno po X |
||
27 | projection(runNumber, 2); |
||
28 | delete data; |
||
29 | } else printf("File '%s' with continous scan in direction x does not exist.\n",path); |
||
30 | |||
31 | sprintf(path,"../modules/%04d/%04d_3_2DY.root",runNumber,runNumber); |
||
32 | if (file_exists(path)){ |
||
33 | data = new TFile(path); //Zvezno po Y |
||
34 | projection(runNumber, 2); |
||
35 | delete data; |
||
36 | } else printf("File '%s' with continous scan in direction y does not exist.\n",path); |
||
37 | |||
38 | charge(runNumber, 4); |
||
39 | |||
40 | treshold(runNumber, 4); |
||
41 | |||
42 | gROOT->ProcessLine(".q"); |
||
43 | } |