Temporary protections, to be investigated in more details by the detector experts
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 09:06:53 +0000 (09:06 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 May 2009 09:06:53 +0000 (09:06 +0000)
PHOS/AliPHOSQADataMakerRec.cxx
VZERO/AliVZEROQADataMakerRec.cxx

index b89d83d..c05a209 100644 (file)
@@ -449,16 +449,16 @@ void AliPHOSQADataMakerRec::MakeRaws(AliRawReader* rawReader)
   delete decoder;
   GetRawsData(kEtotLG)->Fill(lgEtot) ; 
   TParameter<double> * p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kEtotLG)->GetName()))) ; 
-  p->SetVal(lgEtot) ; 
+  if (p) p->SetVal(lgEtot) ; 
   GetRawsData(kEtotHG)->Fill(hgEtot) ;  
   p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kEtotHG)->GetName()))) ; 
-  p->SetVal(hgEtot) ; 
+  if (p) p->SetVal(hgEtot) ; 
   GetRawsData(kNtotLG)->Fill(lgNtot) ;
   p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kNtotLG)->GetName()))) ; 
-  p->SetVal(lgNtot) ; 
+  if (p) p->SetVal(lgNtot) ; 
   GetRawsData(kNtotHG)->Fill(hgNtot) ;
   p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kNtotHG)->GetName()))) ; 
-  p->SetVal(hgNtot) ; 
+  if (p) p->SetVal(hgNtot) ; 
 }
 //____________________________________________________________________________
 void AliPHOSQADataMakerRec::MakeRecPoints(TTree * clustersTree)
index 3a1bde7..d4b6730 100644 (file)
@@ -682,37 +682,37 @@ void AliVZEROQADataMakerRec::MakeESDs(AliESDEvent * esd)
        
        fEvent++; 
        TParameter<double> * p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kMultiV0A)->GetName()))) ; 
-       p->SetVal((double)mulV0A) ; 
+       if (p) p->SetVal((double)mulV0A) ; 
 
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kMultiV0C)->GetName()))) ; 
-       p->SetVal((double)mulV0C) ;                     
+       if (p) p->SetVal((double)mulV0C) ;                     
 
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0A)->GetName()))) ; 
-       p->SetVal((double)chargeV0A) ; 
+       if (p) p->SetVal((double)chargeV0A) ; 
 
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0C)->GetName()))) ; 
-       p->SetVal((double)chargeV0C) ;                     
+       if (p) p->SetVal((double)chargeV0C) ;                     
 
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kChargeV0)->GetName()))) ; 
-       p->SetVal((double)(chargeV0A + chargeV0C)) ;                     
+       if (p) p->SetVal((double)(chargeV0A + chargeV0C)) ;                     
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0A)->GetName()))) ; 
-       p->SetVal((double)mipV0A) ; 
+       if (p) p->SetVal((double)mipV0A) ; 
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0C)->GetName()))) ; 
-       p->SetVal((double)mipV0C) ;                     
+       if (p) p->SetVal((double)mipV0C) ;                     
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kRawMIPV0)->GetName()))) ; 
-       p->SetVal((double)(mipV0A + mipV0C)) ;                     
+       if (p) p->SetVal((double)(mipV0A + mipV0C)) ;                     
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kV0ATime)->GetName()))) ; 
-       p->SetVal((double)timeV0A) ; 
+       if (p) p->SetVal((double)timeV0A) ; 
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kV0CTime)->GetName()))) ; 
-       p->SetVal((double)timeV0C) ;                     
+       if (p) p->SetVal((double)timeV0C) ;                     
        
        p = dynamic_cast<TParameter<double>*>(GetParameterList()->FindObject(Form("%s_%s_%s", GetName(), AliQAv1::GetTaskName(AliQAv1::kRAWS).Data(), GetRawsData(kDiffTime)->GetName()))) ; 
-       p->SetVal((double)diffTime) ;                     
+       if (p) p->SetVal((double)diffTime) ;                     
        
        delete rawStream; rawStream = 0x0;