return 0;
}
-//____________________________________________________________________________
-void AliConfig::Add (char *list)
-{
- // Adds space separated list of objects to the
- // configuration macro (?)
- char *path;
-
- const char *confPath = gSystem->Getenv ("ALICE_CONFIG_PATH");
- if (confPath) {
- path = new char[strlen (confPath)+1];
- strcpy (path, confPath);
- } else {
- const char *alice = gSystem->Getenv ("ALICE_ROOT");
- path = new char[strlen (alice) + 32];
-
- strcpy (path, ".:");
- if (alice) {
- strcat (path, alice);
- }
- strcat (path, "/macros/config");
- }
-
- char *token = strtok (path, ":");
-
- TList dirlist;
-
- dirlist.SetOwner(kTRUE);
-
- while (token != NULL)
- {
- dirlist.Add (new TObjString(token));
- token = strtok (NULL, ":");
- }
-
- token = strtok (list, " ");
-
- while (token != NULL)
- {
- AliInfo(Form("Configuring token=%s",token));
-
- TObject *obj;
- TIter next (&dirlist);
- TString found = "\0";
-
- while ((obj = next ()))
- {
- TString dir(obj->GetName());
- TString apath = dir + "/" + token;
- TString macro = apath + ".C";
- if (!gSystem->AccessPathName (macro.Data()))
- {
- gInterpreter->ExecuteMacro (macro.Data());
- found = "(" + macro + ")";
- if (macro.Contains("/"))
- {
- TString dirname = gSystem->DirName(macro.Data());
- TString macroConfigure = dirname + "/Configure.C";
- if (!gSystem->AccessPathName (macroConfigure.Data()))
- {
- gInterpreter->ExecuteMacro (macroConfigure.Data());
- found += " => Configured";
- }
- }
- break;
- }
- else
- {
- TString macroDefault = apath + "/Default.C";
- if (!gSystem->AccessPathName (macroDefault.Data()))
- {
- gInterpreter->ExecuteMacro (macroDefault.Data());
- found = "(" + macro + ")";
- TString macroConfigure = apath + "/Configure.C";
- if (!gSystem->AccessPathName (macroConfigure.Data()))
- {
- gInterpreter->ExecuteMacro (macroConfigure.Data());
- found += " => Configured";
- }
- break;
- }
- }
- }
-
- if (strlen(found.Data()))
- {
- AliInfo(Form("found=%s => OK",found.Data()));
- }
- else
- {
- AliError(" => FAILED.");
- exit(1);
- }
-
- token = strtok (NULL," ");
- }
-
-}
-
/*****************************************************************************/
TFolder* AliConfig::BuildEventFolder(const char* name,const char* title)
if (iEvent >= fRunLoader->GetNumberOfEvents()) {
fRunLoader->SetEventNumber(iEvent);
- fRunLoader->GetHeader()->Reset(fRawReader->GetRunNumber(),
- iEvent, iEvent);
+ if (fRawReader)
+ fRunLoader->GetHeader()->Reset(fRawReader->GetRunNumber(),
+ iEvent, iEvent);
fRunLoader->TreeE()->Fill();
if (fRawReader && fRawReader->UseAutoSaveESD())
fRunLoader->TreeE()->AutoSave("SaveSelf");
}
if (fRunGlobalQA) {
AliQADataMaker *qadm = AliQAManager::QAManager()->GetQADataMaker(AliQAv1::kGLOBAL);
+ if (qadm)
qadm->SetEventSpecie(fRecoParam.GetEventSpecie()) ;
if (qadm && IsInTasks(AliQAv1::kESDS))
qadm->Exec(AliQAv1::kESDS, fesd);