Blame |
Last modification |
View Log
| RSS feed
void script
(int runNumber
){
char path
[0xFF];
TFile
* data
;
gROOT
->ProcessLine
(".L ./base.c+");
gROOT
->ProcessLine
(".L ./savetoroot.c+");
gROOT
->ProcessLine
(".L ./info.c+");
gROOT
->ProcessLine
(".L ./gain.c+");
gROOT
->ProcessLine
(".L ./treshold.c+");
gROOT
->ProcessLine
(".L ./projection.c+");
//~ char c; printf("Compilation complete, PRESS ENTER to continue..."); scanf("%c",&c);
gROOT
->SetBatch
(kTRUE
);
info
(runNumber
, 2);
gain
(runNumber
, 2);
charge
(runNumber
, 2);
treshold
(runNumber
, 2);
sprintf(path
,"../modules/%04d/%04d_2_2DX.root",runNumber
,runNumber
);
if (file_exists
(path
)){
data
= new TFile
(path
); //Zvezno po X
projection
(runNumber
, 2);
delete data
;
} else printf("File '%s' with continous scan in direction x does not exist.\n",path
);
sprintf(path
,"../modules/%04d/%04d_3_2DY.root",runNumber
,runNumber
);
if (file_exists
(path
)){
data
= new TFile
(path
); //Zvezno po Y
projection
(runNumber
, 2);
delete data
;
} else printf("File '%s' with continous scan in direction y does not exist.\n",path
);
charge
(runNumber
, 4);
treshold
(runNumber
, 4);
gROOT
->ProcessLine
(".q");
}