+
+//_____________________________________________________________________________
+void AliTRDReconstructor::SetOption(Option_t *opt)
+{
+ //
+ // Read option string into the steer param.
+ //
+ // The following string options are available during reconstruction.
+ // In square brackets the default values are given.
+ // "dc" : digits conversion [false]
+ // "cw" : write clusters [true]
+ // "tw" : write online tracklets [false]
+ // "sa" : track seeding (stand alone tracking) [true]
+ // "hlt" : HLT reconstruction [false]
+ // "tp" : also use online tracklets for reconstruction [false]
+ // "deb" : Write debug stream [false]
+ // "cc" : Cluster radial correction during reconstruction [false]
+ //
+ // To check the actual options used during reconstruction include the following line in your rec.C script
+ // AliLog::SetClassDebugLevel("AliTRDReconstructor", 1);
+
+ AliReconstructor::SetOption(opt);
+
+ TString s(opt);
+ TObjArray *opar = s.Tokenize(",");
+ for(Int_t ipar=0; ipar<opar->GetEntriesFast(); ipar++){
+ Bool_t processed = kFALSE;
+ TString sopt(((TObjString*)(*opar)[ipar])->String());
+ for(Int_t iopt=0; iopt<kNsteer; iopt++){
+ if(!sopt.Contains(fgSteerFlags[iopt])) continue;
+ SETFLG(fSteerParam, BIT(iopt));
+ if(sopt.Contains("!")) CLRFLG(fSteerParam, BIT(iopt));
+ processed = kTRUE;
+ break;
+ }
+ if(processed) continue;
+
+ AliWarning(Form("Unknown option flag %s.", sopt.Data()));
+ }
+}
+
+//_____________________________________________________________________________
+void AliTRDReconstructor::Options(UInt_t steer)
+{
+ //
+ // Print the options
+ //
+
+ for(Int_t iopt=0; iopt<kNsteer; iopt++){
+ AliDebugGeneral("AliTRDReconstructor", 1, Form(" %s[%s]%s", fgSteerNames[iopt], fgSteerFlags[iopt], steer ?(((steer>>iopt)&1)?" : ON":" : OFF"):""));
+ }
+}
+