| 144 |
else if (!frame1.CompareTo("hbook", TString::kIgnoreCase)) ifroot1 =false; |
else if (!frame1.CompareTo("hbook", TString::kIgnoreCase)) ifroot1 =false; |
| 145 |
else throw -201; |
else throw -201; |
| 146 |
|
|
| 147 |
if(get1){ |
// if(get1){ |
| 148 |
|
// |
| 149 |
TString filety; |
// TString filety; |
| 150 |
if ( ifroot1) filety=".root"; |
// if ( ifroot1) filety=".root"; |
| 151 |
else if (!ifroot1) filety=".rz"; |
// else if (!ifroot1) filety=".rz"; |
| 152 |
else throw -200; |
// else throw -200; |
| 153 |
|
// |
| 154 |
// file1 = outdir + "/"+ gSystem->BaseName(pfolder) + "/" + file2(file2.Last('/')+1,file2.Last('.')) + ".Level1" + filety; |
// TString base = file2; |
| 155 |
TString base = file2; |
// if(base.Contains(".Level2.root"))base = base(0,base.Index(".Level2.root")); |
| 156 |
if(base.Contains(".Level2.root"))base = base(0,base.Index(".Level2.root")); |
// else base = base(0,base.Index(".root")); |
| 157 |
else base = base(0,base.Index(".root")); |
// base = gSystem->BaseName(base); |
| 158 |
base = gSystem->BaseName(base); |
// file1 = outdir + "/"+ gSystem->BaseName(pfolder) + "/" + base +".Level1"+filety; |
| 159 |
file1 = outdir + "/"+ gSystem->BaseName(pfolder) + "/" + base +".Level1"+filety; |
// // cout << "Requested Level1 output. "<< endl << "Level1 File: "<< file1 << endl; |
| 160 |
// cout << "Requested Level1 output. "<< endl << "Level1 File: "<< file1 << endl; |
// TString path = gSystem->DirName(file1); |
| 161 |
TString path = gSystem->DirName(file1); |
// FileStat_t t; |
| 162 |
FileStat_t t; |
// // check if processFolder directory exists, and possibly create it |
| 163 |
// check if processFolder directory exists, and possibly create it |
// if( gSystem->GetPathInfo(path.Data(),t) ) { |
| 164 |
if( gSystem->GetPathInfo(path.Data(),t) ) { |
// if( gSystem->MakeDirectory(path.Data()) == -1)throw -13; |
| 165 |
if( gSystem->MakeDirectory(path.Data()) == -1)throw -13; |
// }; |
| 166 |
}; |
// // if it does, open/create teh putput file |
| 167 |
// if it does, open/create teh putput file |
// |
| 168 |
|
// }; |
|
}; |
|
| 169 |
|
|
| 170 |
ostatus = 0; |
ostatus = 0; |
| 171 |
|
|