]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Mar 2008 11:35:45 +0000 (11:35 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Mar 2008 11:35:45 +0000 (11:35 +0000)
STEER/AliQADataMakerSteer.cxx

index 8e94fb58b3046f754fd0e702c687fce70c205fbb..d2eeb5fb078cf2c375f89e104c5d991f10ec8485 100644 (file)
@@ -664,7 +664,7 @@ TString AliQADataMakerSteer::Run(const char * detectors, const AliQA::TASKINDEX
        fDetectors  = detectors ; 
        fDetectorsW = detectors ; 
 
-       char * mode ; 
+       TString mode ; 
        if ( (taskIndex == AliQA::kHITS) || (taskIndex == AliQA::kSDIGITS) || (taskIndex == AliQA::kDIGITS) ) 
                mode = "sim" ; 
        else if ( (taskIndex == AliQA::kRAWS) || (taskIndex == AliQA::kRECPOINTS) || (taskIndex == AliQA::kESDS) )
@@ -674,10 +674,10 @@ TString AliQADataMakerSteer::Run(const char * detectors, const AliQA::TASKINDEX
                return "" ;
        }
 
-       if ( !Init(taskIndex, mode, fileName) ) 
+       if ( !Init(taskIndex, mode.Data(), fileName) ) 
                return kFALSE ; 
 
-       DoIt(taskIndex, mode) ;
+       DoIt(taskIndex, mode.Data()) ;
        
        return fDetectorsW ;