| 177 |
|
|
| 178 |
if(LOCAL_CONNECTION&&dbc){ |
if(LOCAL_CONNECTION&&dbc){ |
| 179 |
dbc->Close(); |
dbc->Close(); |
| 180 |
|
delete dbc; |
| 181 |
if(TrkParams::DebugMode()){ |
if(TrkParams::DebugMode()){ |
| 182 |
cout << " DB connection closed."<<endl; |
cout << " DB connection closed."<<endl; |
| 183 |
} |
} |
| 869 |
} |
} |
| 870 |
|
|
| 871 |
Bool_t TrkParams::Load( ){ |
Bool_t TrkParams::Load( ){ |
| 872 |
for(Int_t i=0 ; i<NTYPES; i++)if(!glload[i] && trkparamtype[i]>0 )if( !TrkParams::Load(trkparamtype[i]) )return false; |
Bool_t result = true; |
| 873 |
return true; |
for(Int_t i=0 ; i<NTYPES; i++) |
| 874 |
|
if(!glload[i] && trkparamtype[i]>0 ) |
| 875 |
|
if( !TrkParams::Load(trkparamtype[i]) ) |
| 876 |
|
result = false; |
| 877 |
|
return result; |
| 878 |
}; |
}; |
| 879 |
Bool_t TrkParams::IsLoaded( ){ |
Bool_t TrkParams::IsLoaded( ){ |
| 880 |
for(Int_t i=0 ; i<NTYPES; i++)if(!glload[i] && trkparamtype[i]>0 )return false; |
for(Int_t i=0 ; i<NTYPES; i++)if(!glload[i] && trkparamtype[i]>0 )return false; |