//
//Retrieving the TOF calibration info
- fTOFcalib = new AliTOFcalib();
+ fTOFcalib = new AliTOFcalib();
+ fTOFcalib->Init();
+
+#if 0
fTOFcalib->CreateCalObjects();
if(!fTOFcalib->ReadParOnlineDelayFromCDB("TOF/Calib",-1)) {AliFatal("Exiting, no CDB object found!!!");exit(0);}
if(!fTOFcalib->ReadDeltaBCOffsetFromCDB("TOF/Calib",-1)) {AliFatal("Exiting, no CDB object found!!!");exit(0);}
if(!fTOFcalib->ReadCTPLatencyFromCDB("TOF/Calib",-1)) {AliFatal("Exiting, no CDB object found!!!");exit(0);}
if(!fTOFcalib->ReadT0FillFromCDB("TOF/Calib",-1)) {AliFatal("Exiting, no CDB object found!!!");exit(0);}
+ if(!fTOFcalib->ReadRunParamsFromCDB("TOF/Calib",-1)) {AliFatal("Exiting, no CDB object found!!!");exit(0);}
+#endif
+
}
//_____________________________________________________________________________
//
TString optionString = GetOption();
+
// use V1 cluster finder if selected
if (optionString.Contains("ClusterizerV1")) {
static AliTOFClusterFinderV1 tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Digits2RecPoints(rawReader, clustersTree);
}
static AliTOFClusterFinder tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Digits2RecPoints(rawReader, clustersTree);
}
static AliTOFClusterFinderV1 tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Digits2RecPoints(digitsTree, clustersTree);
}
static AliTOFClusterFinder tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Digits2RecPoints(digitsTree, clustersTree);
}
static AliTOFClusterFinderV1 tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Raw2Digits(reader, digitsTree);
}
static AliTOFClusterFinder tofClus(fTOFcalib);
// decoder version option
- if (optionString.Contains("DecoderV0"))
+ if (optionString.Contains("DecoderV0")) {
tofClus.SetDecoderVersion(0);
- else
+ }
+ else if (optionString.Contains("DecoderV1")) {
tofClus.SetDecoderVersion(1);
+ }
+ else {
+ tofClus.SetDecoderVersion(2);
+ }
tofClus.Raw2Digits(reader, digitsTree);
}