55 |
|
limit_args limargs={mceff,toterr,ibin,mcjzb,sigmas,plotfilename}; |
56 |
|
pthread_create( &limitthread, NULL, compute_one_upper_limit_wrapper, (void*) &limargs); |
57 |
|
int counter=0; |
58 |
+ |
int counterinterval=5; |
59 |
|
sleep(1); //waiting a second for the process to become active |
60 |
|
while(counter<limitpatience*60 && isThreadActive) { |
61 |
|
std::cout << "Limits are being calculated; Checking round " << counter << " ( corresponds to " << seconds_to_time(counter) << " ) , patience will end in " << seconds_to_time(60*limitpatience-counter) << std::endl; |
62 |
< |
counter++; |
63 |
< |
sleep(1); |
62 |
> |
counter+=counterinterval; |
63 |
> |
sleep(counterinterval); |
64 |
|
} |
65 |
|
|
66 |
|
if(!isThreadActive) { |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
+ |
write_warning(__FUNCTION__,"CURRENTLY SWITCHING AUTOMATIZED MODE OFF!");automatized=false; |
155 |
|
|
156 |
|
float rightmargin=gStyle->GetPadRightMargin(); |
157 |
|
gStyle->SetPadRightMargin(0.15); |