Don't misalign geometry when creating snapshot.
authorrgrosso <Raffaele.Grosso@cern.ch>
Wed, 13 Aug 2014 13:08:42 +0000 (15:08 +0200)
committerrgrosso <Raffaele.Grosso@cern.ch>
Wed, 13 Aug 2014 13:08:42 +0000 (15:08 +0200)
STEER/STEER/AliReconstruction.cxx

index cd48030..9fcf821 100644 (file)
@@ -1641,9 +1641,11 @@ void AliReconstruction::Begin(TTree *)
          snapshotFileOut="OCDB.root";
   }
 
-  if (!MisalignGeometry(fLoadAlignData)) {
-    Abort("MisalignGeometry", TSelector::kAbortProcess);
-    return;
+  if(!toCDBSnapshot) {
+    if (!MisalignGeometry(fLoadAlignData)) {
+      Abort("MisalignGeometry", TSelector::kAbortProcess);
+      return;
+    }
   }
 
   const TMap* cdbCache = AliCDBManager::Instance()->GetEntryCache();