}
} else {
if ( !InitRunLoader() ) {
- AliError("Problems in getting the Run Loader") ;
+ AliError("Run Loader not found") ;
return kFALSE ;
} else {
if (fRunLoader->GetAliRun())
// Fill QA data in event loop
for (UInt_t iEvent = 0 ; iEvent < fNumberOfEvents ; iEvent++) {
// Get the event
- AliInfo(Form("processing event %d", iEvent));
+ AliDebug(1, Form("processing event %d", iEvent));
if ( taskIndex == AliQA::kRAWS ) {
if ( !fRawReader->NextEvent() )
break ;
fRunLoader->GetEvent(iEvent);
}
// loop over detectors
- TObjArray* detArray = fRunLoader->GetAliRun()->Detectors() ;
+ TObjArray* detArray = NULL ;
+ if (fRunLoader) // check if RunLoader exists
+ if ( fRunLoader->GetAliRun() ) // check if AliRun exists in gAlice.root
+ detArray = fRunLoader->GetAliRun()->Detectors() ;
for (UInt_t iDet = 0 ; iDet < fgkNDetectors ; iDet++) {
- AliModule* det = static_cast<AliModule*>(detArray->FindObject(AliQA::GetDetName(iDet))) ;
- if (!det || !det->IsActive())
- continue;
+ if (detArray) {
+ AliModule* det = static_cast<AliModule*>(detArray->FindObject(AliQA::GetDetName(iDet))) ;
+ if (!det || !det->IsActive())
+ continue;
+ }
AliQADataMaker * qadm = GetQADataMaker(iDet) ;
if (!qadm) {
rv = kFALSE ;