set eventespie for ESD and Recpoints data maker
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 15:35:50 +0000 (15:35 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 15:35:50 +0000 (15:35 +0000)
STEER/AliQAManager.cxx

index dd5496c..a017c1a 100644 (file)
@@ -1196,6 +1196,10 @@ void AliQAManager::RunOneEvent(AliESDEvent *& esd)
       AliQADataMaker *qadm = GetQADataMaker(iDet);  
       if (!qadm) 
         continue;
+      if ( qadm->GetRecoParam() ) 
+        qadm->SetEventSpecie(qadm->GetRecoParam()->GetEventSpecie()) ; 
+      else 
+        qadm->SetEventSpecie(fEventSpecie) ;  
       if ( qadm->IsCycleDone() ) {
         qadm->EndOfCycle() ;
       }
@@ -1215,6 +1219,10 @@ void AliQAManager::RunOneEventInOneDetector(Int_t det, TTree * tree)
     if (IsSelected(AliQAv1::GetDetName(det))) {
       AliQADataMaker *qadm = GetQADataMaker(det);  
       if (qadm) { 
+        if ( qadm->GetRecoParam() ) 
+          qadm->SetEventSpecie(qadm->GetRecoParam()->GetEventSpecie()) ; 
+        else 
+          qadm->SetEventSpecie(fEventSpecie) ;  
         if ( qadm->IsCycleDone() ) {
           qadm->EndOfCycle() ;
         }