| 157 |
TTree *otr8 = 0; |
TTree *otr8 = 0; |
| 158 |
// |
// |
| 159 |
pamela->var.fl0 = false; |
pamela->var.fl0 = false; |
| 160 |
|
Int_t i = 0; |
| 161 |
|
Int_t isOK = 0; |
| 162 |
// |
// |
| 163 |
restart: |
restart: |
| 164 |
// |
// |
| 206 |
gStyle->SetNdivisions(1,"X"); |
gStyle->SetNdivisions(1,"X"); |
| 207 |
gStyle->SetNdivisions(1,"Y"); |
gStyle->SetNdivisions(1,"Y"); |
| 208 |
// |
// |
| 209 |
Int_t i = 0; |
if ( i < 0 ){ |
| 210 |
Int_t isOK = 0; |
i = -i; |
| 211 |
|
} else { |
| 212 |
|
i = 0; |
| 213 |
|
}; |
| 214 |
|
isOK = 0; |
| 215 |
// |
// |
| 216 |
// from here to refresh |
// from here to refresh |
| 217 |
// |
// |
| 218 |
refresh: |
refresh: |
| 219 |
// |
// |
| 220 |
|
// reset pointers |
| 221 |
|
// |
| 222 |
|
TFile *headerFile = 0; |
| 223 |
|
TChain *otr = 0; |
| 224 |
|
TTree *L0 = 0; |
| 225 |
|
// |
| 226 |
|
// gROOT->Reset(); |
| 227 |
|
// |
| 228 |
// set selection file variables |
// set selection file variables |
| 229 |
// |
// |
| 230 |
if ( pamela->var.refresh ){ |
if ( pamela->var.refresh ){ |
| 301 |
carica.str(""); |
carica.str(""); |
| 302 |
carica << paminc.str().c_str() << "/feventvstruct.h"; |
carica << paminc.str().c_str() << "/feventvstruct.h"; |
| 303 |
gROOT->LoadMacro(carica.str().c_str()); |
gROOT->LoadMacro(carica.str().c_str()); |
| 304 |
|
// carica.str(""); |
| 305 |
|
// carica << paminc.str().c_str() << "/CaloNuclei.h"; |
| 306 |
|
// gROOT->LoadMacro(carica.str().c_str()); |
| 307 |
// |
// |
| 308 |
// load the selection macro |
// load the selection macro |
| 309 |
// |
// |
| 344 |
// LOAD FILES |
// LOAD FILES |
| 345 |
// |
// |
| 346 |
// |
// |
| 347 |
TFile *headerFile = 0; |
// if ( headerFile ) headerFile->Close(); |
| 348 |
TChain *otr = 0; |
// if ( otr ) otr->Delete(); |
| 349 |
TTree *L0 = 0; |
// if ( L0 ) L0->Delete(); |
| 350 |
|
|
| 351 |
// |
// |
| 352 |
// check if user has given as input a correct path |
// check if user has given as input a correct path |
| 353 |
// |
// |
| 626 |
// |
// |
| 627 |
pamela->var.goon = false; |
pamela->var.goon = false; |
| 628 |
if ( pamela->var.refresh || pamela->var.restart ){ |
if ( pamela->var.refresh || pamela->var.restart ){ |
| 629 |
headerFile->Close(); |
if ( pamela->GetL2() ) pamela->GetL2()->Reset(); |
| 630 |
|
if ( pamela->level.file != 2 ) pamela->GetChain()->Delete(); |
| 631 |
|
otr = NULL; |
| 632 |
|
if ( headerFile ) headerFile->Close("R"); |
| 633 |
if ( pamela->var.refresh ) goto refresh; |
if ( pamela->var.refresh ) goto refresh; |
| 634 |
if ( pamela->var.restart ){ |
if ( pamela->var.restart ){ |
| 635 |
filename = pamela->var.thefilename.Data(); |
filename = pamela->var.thefilename.Data(); |