| 146 |
TString name = questo->GetName(); |
TString name = questo->GetName(); |
| 147 |
if( name.EndsWith(".so") || name.EndsWith(".o") ){ |
if( name.EndsWith(".so") || name.EndsWith(".o") ){ |
| 148 |
npl++; |
npl++; |
| 149 |
char *fullpath = gSystem->ConcatFileName(gSystem->DirName(plugindir),gSystem->BaseName(name)); |
// char *fullpath = gSystem->ConcatFileName(gSystem->DirName(plugindir),gSystem->BaseName(name)); |
| 150 |
gSystem->Load(fullpath); |
char *fullpath = gSystem->ConcatFileName(plugindir.Data(),gSystem->BaseName(name)); |
| 151 |
printf(" %i -> %s plugin loaded \n",npl,name.Data()); |
if ( !gSystem->Load(fullpath) ) printf(" %i -> %s plugin loaded (%s)\n",npl,name.Data(),fullpath); |
| 152 |
delete fullpath; |
delete fullpath; |
| 153 |
}; |
}; |
| 154 |
} |
} |
| 155 |
|
gSystem->cd(wdir.Data()); |
| 156 |
delete temp; |
delete temp; |
| 157 |
delete datadir; |
delete datadir; |
| 158 |
}; |
}; |
| 219 |
// |
// |
| 220 |
// check if we have an input filename |
// check if we have an input filename |
| 221 |
// |
// |
| 222 |
if ( filename.Data() == "" || !strcmp(filename.Data(),"help") ){ |
// if ( filename.Data() == "" || !strcmp(filename.Data(),"help") ){ |
| 223 |
|
if ( !strcmp(gSystem->BaseName(filename),"") || filename.Contains("help") ){ |
| 224 |
pamela->var.waitforever = true; |
pamela->var.waitforever = true; |
| 225 |
}; |
}; |
| 226 |
// // |
// // |
| 291 |
// |
// |
| 292 |
if ( firsttime ){ |
if ( firsttime ){ |
| 293 |
firsttime = false; |
firsttime = false; |
| 294 |
if ( filename == "" ) pamgui->DIALOG(0," Insert the filename and press load to start "); |
if ( !strcmp(gSystem->BaseName(filename),"") || filename.Contains("help") ) pamgui->DIALOG(3," - Insert the filename and press load to start \n - To unload selection file clean the line and press the \"Load\" button \n - run with \"-v\" option to have STDOUT on the screen \n - select a detector and press \"Show Data\" to print data event by event on the screen "); |
| 295 |
|
// if ( filename.Contains("help") ) pamgui->DIALOG(3," - Insert the filename and press load to start \n - To unload selection file clean the line and press the \"Load\" button \n - run with \"-v\" option to have STDOUT on the screen \n - select a detector and press \"Show Data\" to print data event by event on the screen "); |
| 296 |
|
// printf(" - %s - %s =\n",gSystem->BaseName(filename),filename.Data()); |
| 297 |
}; |
}; |
| 298 |
// |
// |
| 299 |
// WAIT for an input filename |
// WAIT for an input filename |
| 302 |
if ( !gROOT->GetListOfCanvases()->FindObject(figure) ) { |
if ( !gROOT->GetListOfCanvases()->FindObject(figure) ) { |
| 303 |
pamgui->Terminate(); |
pamgui->Terminate(); |
| 304 |
}; |
}; |
| 305 |
|
pamgui->Refresh(); |
| 306 |
gSystem->ProcessEvents(); |
gSystem->ProcessEvents(); |
| 307 |
gSystem->Sleep(10); |
gSystem->Sleep(10); |
| 308 |
}; |
}; |
| 324 |
// |
// |
| 325 |
// LOAD SELECTION FILE |
// LOAD SELECTION FILE |
| 326 |
// |
// |
| 327 |
if ( selfile == "" ){ |
if ( !strcmp(gSystem->BaseName(selfile),"") ){ //selfile == "" ){ |
| 328 |
//if ( !pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded "); |
//if ( !pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded "); |
| 329 |
if ( pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded "); |
if ( pamela->var.selex ) pamgui->DIALOG(0," Selection file unloaded "); |
| 330 |
pamela->var.selex = false; |
pamela->var.selex = false; |
| 625 |
// |
// |
| 626 |
// prepare the string for the figure filename |
// prepare the string for the figure filename |
| 627 |
// |
// |
| 628 |
char *bw; |
const char *bw; |
| 629 |
if ( pamela->var.bw ){ |
if ( pamela->var.bw ){ |
| 630 |
bw = "_bw"; |
bw = "_bw"; |
| 631 |
} else { |
} else { |