| 129 |
Float_t winy = (float)hw*0.80; // 95 |
Float_t winy = (float)hw*0.80; // 95 |
| 130 |
Float_t winrap = winx/winy; |
Float_t winrap = winx/winy; |
| 131 |
// |
// |
| 132 |
|
// |
| 133 |
|
// |
| 134 |
|
TString plugindir = (TString)gSystem->ExpandPathName("$FEV_PLUGIN"); |
| 135 |
|
if ( strcmp(plugindir,"$FEV_PLUGIN") ){ |
| 136 |
|
TString wdir = gSystem->WorkingDirectory(); |
| 137 |
|
printf("\n\n Plugin directory is %s \n",plugindir.Data()); |
| 138 |
|
printf(" Loading plugins: \n"); |
| 139 |
|
// |
| 140 |
|
TSystemDirectory *datadir = new TSystemDirectory(gSystem->BaseName(plugindir),plugindir); |
| 141 |
|
TList *temp = datadir->GetListOfFiles(); |
| 142 |
|
TIter next(temp); |
| 143 |
|
TSystemFile *questo = 0; |
| 144 |
|
Int_t npl = 0; |
| 145 |
|
while ( (questo = (TSystemFile*) next()) ) { |
| 146 |
|
TString name = questo->GetName(); |
| 147 |
|
if( name.EndsWith(".so") || name.EndsWith(".o") ){ |
| 148 |
|
npl++; |
| 149 |
|
char *fullpath = gSystem->ConcatFileName(gSystem->DirName(plugindir),gSystem->BaseName(name)); |
| 150 |
|
gSystem->Load(fullpath); |
| 151 |
|
printf(" %i -> %s plugin loaded \n",npl,name.Data()); |
| 152 |
|
delete fullpath; |
| 153 |
|
}; |
| 154 |
|
} |
| 155 |
|
delete temp; |
| 156 |
|
delete datadir; |
| 157 |
|
}; |
| 158 |
|
// |
| 159 |
// book the canvas |
// book the canvas |
| 160 |
// |
// |
| 161 |
TCanvas *figure = new TCanvas("PAMELA event viewer", "PAMELA event viewer",(int)winx,(int)winy); |
TCanvas *figure = new TCanvas("PAMELA event viewer", "PAMELA event viewer",(int)winx,(int)winy); |
| 325 |
// |
// |
| 326 |
// load the structure header |
// load the structure header |
| 327 |
// |
// |
| 328 |
carica.str(""); |
carica.str(""); |
| 329 |
carica << paminc.str().c_str() << "/feventvstruct.h"; |
carica << paminc.str().c_str() << "/feventvstruct.h"; |
| 330 |
gROOT->LoadMacro(carica.str().c_str()); |
gROOT->LoadMacro(carica.str().c_str()); |
| 331 |
// carica.str(""); |
// carica.str(""); |
| 332 |
// carica << paminc.str().c_str() << "/CaloNuclei.h"; |
// carica << paminc.str().c_str() << "/CaloNuclei.h"; |
| 333 |
// gROOT->LoadMacro(carica.str().c_str()); |
// gROOT->LoadMacro(carica.str().c_str()); |