}
-//______________________________________________________________________________
-AliDataLoader::AliDataLoader(const AliDataLoader& source) :
- TNamed(source),
- fFileName(source.fFileName),
- fFile(source.fFile),
- fDirectory(source.fDirectory),
- fFileOption(source.fFileOption),
- fCompressionLevel(source.fCompressionLevel),
- fNEventsPerFile(source.fNEventsPerFile),
- fBaseLoaders(source.fBaseLoaders),
- fHasTask(source.fHasTask),
- fTaskName(source.fTaskName),
- fParentalTask(source.fParentalTask),
- fEventFolder(source.fEventFolder),
- fFolder(source.fFolder)
-{
- //
- // copy constructor
- //
- AliFatal("Copy constructor not implemented");
-}
-
-
-//______________________________________________________________________________
-AliDataLoader& AliDataLoader::operator=(const AliDataLoader& /*source*/)
-{
- //
- // Assignment operator
- //
- AliFatal("Assignment operator not implemented");
- return *this;
-}
-
-
//______________________________________________________________________________
AliDataLoader::~AliDataLoader()
{
{
if(fFile->IsOpen() == kTRUE)
{
- AliWarning(Form("File %s already opened by sombody else. First close it.",
- fFile->GetName()));
- return 0;
+ TString option1 = fFile->GetOption();
+ if (option1.CompareTo("read",TString::kIgnoreCase) == 0)
+ {
+ AliInfo(Form("File %s already opened in read mode.",fFile->GetName()));
+ }
+ else
+ {
+ TString option2 = opt;
+ if (option2.CompareTo("read",TString::kIgnoreCase) == 0)
+ {
+ AliInfo(Form("Open already opened file %s in read mode.",fFile->GetName()));
+ }
+ else {
+ AliWarning(Form("File %s already opened by sombody else. First close it.",
+ fFile->GetName()));
+ return 0;
+ }
+ }
}
}
AliDebug(1, Form("suffix=%s",suffix.Data()));
AliDebug(1, Form(" Digits File Name before: %s",fFileName.Data()));
- static TString dotroot(".root");
+ static const TString dotroot(".root");
const TString& suffixdotroot = suffix + dotroot;
fFileName = fFileName.ReplaceAll(dotroot,suffixdotroot);
AliDebug(10, Form("Slash found on pos %d",n));
if (n > 0) fFileName = fFileName.Remove(0,n+1);
AliDebug(10, Form("Core FileName %s",fFileName.Data()));
- fFileName = dirname + "/" + fFileName;
+ fFileName = dirname + fFileName;
AliDebug(10, Form("FileName after %s",fFileName.Data()));
}