Switching of the decoder version used in reconstruction
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Oct 2009 13:31:33 +0000 (13:31 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 Oct 2009 13:31:33 +0000 (13:31 +0000)
TOF/AliTOFReconstructor.cxx

index a1fff1d..bdbf7e1 100644 (file)
@@ -84,10 +84,10 @@ void AliTOFReconstructor::Reconstruct(AliRawReader *rawReader,
     static AliTOFClusterFinderV1 tofClus(fTOFcalib);
 
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
     
     tofClus.Digits2RecPoints(rawReader, clustersTree);
   }
@@ -95,10 +95,10 @@ void AliTOFReconstructor::Reconstruct(AliRawReader *rawReader,
     static AliTOFClusterFinder tofClus(fTOFcalib);
     
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
 
     tofClus.Digits2RecPoints(rawReader, clustersTree);
   }
@@ -121,10 +121,10 @@ void AliTOFReconstructor::Reconstruct(TTree *digitsTree,
     static AliTOFClusterFinderV1 tofClus(fTOFcalib);
 
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
     
     tofClus.Digits2RecPoints(digitsTree, clustersTree);
   }
@@ -132,10 +132,10 @@ void AliTOFReconstructor::Reconstruct(TTree *digitsTree,
     static AliTOFClusterFinder tofClus(fTOFcalib);
 
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
     
     tofClus.Digits2RecPoints(digitsTree, clustersTree);
   }
@@ -154,10 +154,10 @@ void AliTOFReconstructor::Reconstruct(TTree *digitsTree,
     static AliTOFClusterFinderV1 tofClus(fTOFcalib);
 
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
     
     tofClus.Raw2Digits(reader, digitsTree);
   }
@@ -165,10 +165,10 @@ void AliTOFReconstructor::Reconstruct(TTree *digitsTree,
     static AliTOFClusterFinder tofClus(fTOFcalib);
 
     // decoder version option
-    if (optionString.Contains("DecoderV1"))
-      tofClus.SetDecoderVersion(1);
-    else
+    if (optionString.Contains("DecoderV0"))
       tofClus.SetDecoderVersion(0);
+    else
+      tofClus.SetDecoderVersion(1);
     
     tofClus.Raw2Digits(reader, digitsTree);
   }