+ //
+ // reconstruct clusters from digits
+ //
+
+ AliDebug(2,Form("Global Event loop mode: Creating Recpoints from Digits Tree"));
+
+ TString optionString = GetOption();
+ // use V1 cluster finder if selected
+ if (optionString.Contains("ClusterizerV1")) {
+ static AliTOFClusterFinderV1 tofClus(fTOFcalib);
+
+ // decoder version option
+ if (optionString.Contains("DecoderV1"))
+ tofClus.SetDecoderVersion(1);
+ else
+ tofClus.SetDecoderVersion(0);
+
+ tofClus.Digits2RecPoints(digitsTree, clustersTree);
+ }
+ else {
+ static AliTOFClusterFinder tofClus(fTOFcalib);
+
+ // decoder version option
+ if (optionString.Contains("DecoderV1"))
+ tofClus.SetDecoderVersion(1);
+ else
+ tofClus.SetDecoderVersion(0);
+
+ tofClus.Digits2RecPoints(digitsTree, clustersTree);
+ }