Protection needed to reconstruct data without beam type info
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Jul 2009 07:07:22 +0000 (07:07 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 21 Jul 2009 07:07:22 +0000 (07:07 +0000)
ZDC/AliZDCReconstructor.cxx

index 5f950f8..12e2895 100644 (file)
@@ -113,11 +113,16 @@ void AliZDCReconstructor::Init()
     }
     
     TString beamType = grpData->GetBeamType();
-    if(beamType==AliGRPObject::GetInvalidString()){
-      AliWarning("GRP/GRP/Data entry:  missing value for the beam energy !");
+    // This is a temporary solution to allow reconstruction in tests without beam
+    if(((beamType.CompareTo("UNKNOWN"))==0) && ((runType.CompareTo("PHYSICS")) == 0)){
+      fRecoMode=1;
+    }
+    else if(beamType==AliGRPObject::GetInvalidString()){
+      AliWarning("GRP/GRP/Data entry:  missing value for the beam type !");
       AliError("\t ZDC does not reconstruct event 4 UNKNOWN beam type\n");
       return;
     }
+    //
     if(((beamType.CompareTo("pp"))==0) || ((beamType.CompareTo("p-p"))==0)
      ||((beamType.CompareTo("PP"))==0) || ((beamType.CompareTo("P-P"))==0)) fRecoMode=1;
     else if((beamType.CompareTo("A-A")) == 0){