- fClusterFinder = new AliHLTTPCClusterFinder();
-
- // Int_t sigthresh = -1;
- // Double_t sigmathresh= -1;
- Float_t occulimit = 1.0;
- // Int_t oldRCUFormat=0;
- // Data Format version numbers:
- // 0: RCU Data format as delivered during TPC commissioning, pads/padrows are sorted, RCU trailer is one 32 bit word.
- // 1: As 0, but pads/padrows are delivered "as is", without sorting
- // 2: As 0, but RCU trailer is 3 32 bit words.
- // 3: As 1, but RCU trailer is 3 32 bit words.
- // -1: use offline raw reader
-
- Int_t i = 0;
- Char_t* cpErr;
-
- while ( i < argc ) {
-
-
-
- // -- deconvolute-time option
- if ( !strcmp( argv[i], "-deconvolute-time" ) ) {
- fDeconvTime = kTRUE;
- i++;
- continue;
- }
-
- // -- deconvolute-pad option
- if ( !strcmp( argv[i], "-deconvolute-pad" ) ) {
- fDeconvPad = kTRUE;
- i++;
- continue;
- }
-
- // -- number of timebins (default 1024)
- if (!strcmp( argv[i], "-timebins") || !strcmp( argv[i], "timebins" )){
- TString parameter(argv[i+1]);
- parameter.Remove(TString::kLeading, ' '); // remove all blanks
- if (parameter.IsDigit()) {
- AliHLTTPCTransform::SetNTimeBins(parameter.Atoi());
- HLTInfo("number of timebins set to %d, zbin=%f", AliHLTTPCTransform::GetNTimeBins(), AliHLTTPCTransform::GetZWidth());
- fClusterFinder->UpdateLastTimeBin();
- } else {
- HLTError("Cannot timebin specifier '%s'.", argv[i+1]);
- return EINVAL;
- }
- if(!strcmp( argv[i], "timebins")){
- HLTWarning("Argument 'timebins' is old, please switch to new argument naming convention (-timebins). The timebins argument will still work, but please change anyway.");
- }
- i+=2;
- continue;
- }
-
- // -first-timebin (default 0)
- if ( !strcmp( argv[i], "-first-timebin" ) ) {
- TString parameter(argv[i+1]);
- parameter.Remove(TString::kLeading, ' '); // remove all blanks
- if (parameter.IsDigit()){
- fFirstTimeBin=parameter.Atoi();
- HLTDebug("fFirstTimeBin set to %d",fFirstTimeBin);
- }
- else {
- HLTError("Cannot -first-timebin specifier '%s'. Not a number.", argv[i+1]);
- return EINVAL;
- }
- i+=2;
- continue;
- }
-
- // -last-timebin (default 1024)
- if ( !strcmp( argv[i], "-last-timebin" ) ) {
- TString parameter(argv[i+1]);
- parameter.Remove(TString::kLeading, ' '); // remove all blanks
- if (parameter.IsDigit()){
- fLastTimeBin=parameter.Atoi();
- HLTDebug("fLastTimeBin set to %d",fLastTimeBin);
- }
- else {
- HLTError("Cannot -last-timebin specifier '%s'. Not a number.", argv[i+1]);
- return EINVAL;
- }
- i+=2;
- continue;
- }
-
- // -- unsorted option
- if ( !strcmp( argv[i], "-sorted" ) ) {
- fUnsorted=0;
- i++;
- continue;
- }
-
-
- // -- checking for active pads, used in 2007 December run
- if ( !strcmp( argv[i], "-active-pads" ) || !strcmp( argv[i], "activepads" ) ) {
- if(!strcmp( argv[i], "activepads" )){
- HLTWarning("Please change to new component argument naming scheme and use '-active-pads' instead of 'active-pads'");
- }
- fGetActivePads = strtoul( argv[i+1], &cpErr ,0);
- if ( *cpErr ){
- HLTError("Cannot convert activepads specifier '%s'. Should be 0(off) or 1(on), must be integer", argv[i+1]);
- return EINVAL;
- }
- i+=2;
- continue;
- }
-
- // -- pad occupancy limit
- if ( !strcmp( argv[i], "-occupancy-limit" ) || !strcmp( argv[i], "occupancy-limit" ) ) {
- if(!strcmp( argv[i], "occupancy-limit" )){
- HLTWarning("Please switch to new component argument naming convention, use '-occupancy-limit' instead of 'occupancy-limit'");
- }
- occulimit = strtod( argv[i+1], &cpErr);
- if ( *cpErr ) {
- HLTError("Cannot convert occupancy specifier '%s'.", argv[i+1]);
- return EINVAL;
- }
- if(fModeSwitch!=kClusterFinderPacked){
- HLTWarning("Argument '-occupancy-limit' is only used with -sorted set and with the TPCClusterFinderPacked , argument is deprecated");
- }
- i+=2;
- continue;
- }
-
-
- // -- raw reader mode option
- if ( !strcmp( argv[i], "rawreadermode" ) ) {
- if ( argc <= i+1 ) {
- Logging( kHLTLogError, "HLT::TPCClusterFinder::DoInit", "Missing rawreadermode", "Raw Reader Mode not specified. rawreadermode is no longer a valid argument and will be deprecated even if rawreadermode is specified." );
- return ENOTSUP;
- }
-
- HLTWarning("Argument 'rawreadermode' is deprecated");
-
- i += 2;
- continue;
- }
-
-
- // -- pp-run option
- if ( !strcmp( argv[i], "pp-run") ) {
- HLTWarning("Argument 'pp-run' is obsolete, deconvolution is swiched off in both time and pad directions by default.");
- fClusterDeconv = false;
- i++;
- continue;
- }
-
- // -- zero suppression threshold
- if ( !strcmp( argv[i], "adc-threshold" ) ) {
- strtoul( argv[i+1], &cpErr ,0);
- if ( *cpErr ) {
- HLTError("Cannot convert threshold specifier '%s'.", argv[i+1]);
- return EINVAL;
- }
- HLTWarning("'adc-threshold' is no longer a valid argument, please use TPCZeroSuppression component if you want to zerosuppress data.");
- i+=2;
- continue;
- }