+
+ fTryRecover = kFALSE;
+}
+
+
+//-----------------------------------------------------------------------
+TObjArray*
+AliMUONRecoParam::Create(const char* settings)
+{
+ /// Create pre-defined recoparam array, according to settings.
+ /// settings is case-insensitive.
+ ///
+ /// Currently defined are :
+ ///
+ /// "cosmics" :
+ /// Cosmic (default)
+ /// Calibration
+ /// "ppideal"
+ /// LowFlux (default)
+ /// Calibration
+ /// "ppreal"
+ /// LowFlux (modified to reconstruct real p-p data)
+ /// Calibration
+ /// "pprealsim"
+ /// LowFlux (modified to reconstruct realistic p-p simulation)
+ /// Calibration
+
+ AliMUONRecoParam* param(0x0);
+
+ AliRecoParam::EventSpecie_t defaultParam = AliRecoParam::kLowMult;
+
+ TString stype(settings);
+ stype.ToLower();
+
+ if ( stype == "cosmics" )
+ {
+ // set parameters for cosmic runs
+ param = AliMUONRecoParam::GetCosmicParam();
+ defaultParam = AliRecoParam::kCosmic;
+ }
+ else if ( stype == "ppideal" )
+ {
+ // set default lowFlux parameters
+ param = AliMUONRecoParam::GetLowFluxParam();
+ }
+ else if ( stype == "ppreal" || stype == "pprealsim" || "pprealnofield" )
+ {
+ // common parameters for p-p data and realistic p-p simu
+ param = AliMUONRecoParam::GetLowFluxParam();
+ param->SaveFullClusterInESD(kTRUE, 100.);
+ for (Int_t iCh=0; iCh<10; iCh++)
+ {
+ param->SetDefaultNonBendingReso(iCh,0.4);
+ param->SetDefaultBendingReso(iCh,0.4);
+ }
+ param->SetSigmaCutForTracking(7.);
+ param->SetStripCutForTrigger(1.5);
+ param->SetSigmaCutForTrigger(6.);
+ param->ImproveTracks(kTRUE, 6.);
+ param->SetPedMeanLimits(20, 700);
+ param->SetManuOccupancyLimits(-1.,0.01);
+ param->SetBuspatchOccupancyLimits(-1.,0.01);
+ param->SetFractionOfBuspatchOutsideOccupancyLimit(0.05); // 5 %
+
+ // specific parameters for p-p data or realistic p-p simu
+ if ( stype == "ppreal" || stype == "pprealnofield" )
+ {
+ param->SetPadGoodnessMask(0x400BE80);
+ }
+ else
+ {
+ param->SetPadGoodnessMask(0x8080);
+ }
+
+ if ( stype == "pprealnofield" )
+ {
+ param->TryRecover(kTRUE);
+ }
+ }
+ else
+ {
+ AliErrorClass("Unknown settings !");
+ return 0x0;
+ }
+
+ TObjArray* recoParams = new TObjArray;
+
+ recoParams->AddLast(param);
+
+ // set (dummy) parameters for calibration runs
+ param = AliMUONRecoParam::GetCalibrationParam();
+ recoParams->AddLast(param);
+
+ // set parameters for Pb-Pb runs
+ // param = AliMUONRecoParam::GetHighFluxParam();
+ // recoParams.AddLast(param);
+
+ // identify default parameters (exit if identification failed)
+ Bool_t defaultIsSet = kFALSE;
+ TIter next(recoParams);
+ while ( (param = static_cast<AliMUONRecoParam*>(next())) )
+ {
+ if (param->GetEventSpecie() == defaultParam)
+ {
+ param->SetAsDefault();
+ defaultIsSet = kTRUE;
+ }
+ param->Print("FULL");
+ }
+
+ if (!defaultIsSet)
+ {
+ AliErrorClass("The default reconstruction parameters are not set! Exiting...");
+ return 0x0;
+ }
+
+ return recoParams;