| 394 |
return(false); |
return(false); |
| 395 |
} else { |
} else { |
| 396 |
// |
// |
| 397 |
|
// Target = TFile::Open((this->GetFilename()).Data(), "RECREATE" ); |
| 398 |
|
Target = TFile::Open((this->GetFilename()).Data(), "NEW" ); |
| 399 |
|
// |
| 400 |
printf(" Output file does not exist, creating it\n"); |
printf(" Output file does not exist, creating it\n"); |
| 401 |
// |
// |
| 402 |
Long64_t maxsize = 99900000000LL; |
Long64_t maxsize = 99900000000LL; |
| 403 |
// |
// |
| 404 |
Target = TFile::Open((this->GetFilename()).Data(), "RECREATE" ); |
if ( !Target || Target->IsZombie()) { |
| 405 |
|
printf("Error opening target file (does %s exist? are the permissions ok?)\n",(this->GetFilename()).Data()); |
| 406 |
|
// exit(1); |
| 407 |
|
return(false); |
| 408 |
|
} |
| 409 |
|
// |
| 410 |
|
Target->Write(); |
| 411 |
|
// |
| 412 |
//fastMethod = kTRUE; |
//fastMethod = kTRUE; |
| 413 |
fastMethod = kFALSE; |
fastMethod = kFALSE; |
| 414 |
// |
// |
|
// |
|
|
if ( !Target || Target->IsZombie()) { |
|
|
printf("Error opening target file (does %s exist?)\n",(this->GetFilename()).Data()); |
|
|
exit(1); |
|
|
} |
|
| 415 |
// |
// |
| 416 |
TTree::SetMaxTreeSize(maxsize); |
TTree::SetMaxTreeSize(maxsize); |
| 417 |
// Target->SetCompressionLevel(2); |
// Target->SetCompressionLevel(2); |