/************************************************************************** * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // $Id$ //----------------------------------------------------------------------------- /// \class AliMUONRecoParam /// /// Class with MUON reconstruction parameters /// /// \author Philippe Pillot //----------------------------------------------------------------------------- #include "AliMUONRecoParam.h" #include "AliLog.h" #include "AliMUONPadStatusMaker.h" #include ClassImp(AliMUONRecoParam) //_____________________________________________________________________________ AliMUONRecoParam::AliMUONRecoParam() : AliDetectorRecoParam(), fClusteringMode("MLEM"), fTrackingMode("KALMAN"), fMinBendingMomentum(0.), fMaxBendingMomentum(0.), fMaxNonBendingSlope(0.), fMaxBendingSlope(0.), fNonBendingVertexDispersion(0.), fBendingVertexDispersion(0.), fMaxNonBendingDistanceToTrack(0.), fMaxBendingDistanceToTrack(0.), fSigmaCutForTracking(0.), fSigmaCutForImprovement(0.), fSigmaCutForTrigger(0.), fStripCutForTrigger(0.), fMaxStripAreaForTrigger(0.), fMaxNormChi2MatchTrigger(0.), fPercentOfFullClusterInESD(10.), fCombinedClusterTrackReco(kFALSE), fTrackAllTracks(kFALSE), fRecoverTracks(kFALSE), fMakeTrackCandidatesFast(kFALSE), fMakeMoreTrackCandidates(kFALSE), fComplementTracks(kFALSE), fImproveTracks(kFALSE), fUseSmoother(kFALSE), fSaveFullClusterInESD(kTRUE), fCalibrationMode("NOGAIN"), fBypassSt45(0), fPadGoodnessMask(0), fChargeSigmaCut(4.0) { /// Constructor SetNameTitle("MUON","MUON"); SetDefaultLimits(); // use the default parameters for low flux environment SetLowFluxParam(); } //_____________________________________________________________________________ AliMUONRecoParam::~AliMUONRecoParam() { /// Destructor } //_____________________________________________________________________________ void AliMUONRecoParam::BypassSt45(Bool_t st4, Bool_t st5) { /// Set the bypass status if ( st4 && st5 ) fBypassSt45 = 45; else if ( st4 ) fBypassSt45 = 4; else if ( st5 ) fBypassSt45 = 5; else fBypassSt45 = 0; } //_____________________________________________________________________________ Option_t* AliMUONRecoParam::GetCalibrationMode() const { /// Return the calibration mode. Can be : /// NOGAIN : only do pedestal subtraction /// GAIN : do pedestal subtraction, and apply gain correction, but with a /// single capacitance value for all channels /// GAINCONSTANTCAPA : as GAIN, but with a channel-dependent capacitance value return fCalibrationMode.Data(); } //_____________________________________________________________________________ AliMUONRecoParam *AliMUONRecoParam::GetLowFluxParam() { /// Return default reconstruction parameters for low flux environment AliMUONRecoParam *param = new AliMUONRecoParam(); param->SetLowFluxParam(); return param; } //_____________________________________________________________________________ AliMUONRecoParam *AliMUONRecoParam::GetHighFluxParam() { /// Return default reconstruction parameters for high flux environment AliMUONRecoParam *param = new AliMUONRecoParam(); param->SetHighFluxParam(); return param; } //_____________________________________________________________________________ AliMUONRecoParam *AliMUONRecoParam::GetCosmicParam() { /// Return default reconstruction parameters for high flux environment AliMUONRecoParam *param = new AliMUONRecoParam(); param->SetCosmicParam(); return param; } //_____________________________________________________________________________ void AliMUONRecoParam::SetLowFluxParam() { /// Set reconstruction parameters for low flux environment fMinBendingMomentum = 1.; fMaxBendingMomentum = 3000.; fMaxNonBendingSlope = 0.3; fMaxBendingSlope = 0.4; fNonBendingVertexDispersion = 10.; fBendingVertexDispersion = 10.; fMaxNonBendingDistanceToTrack = 1.; fMaxBendingDistanceToTrack = 1.; fSigmaCutForTracking = 6.; fSigmaCutForImprovement = 5.; fSigmaCutForTrigger = 8.; fStripCutForTrigger = 1.; fMaxStripAreaForTrigger = 3.; fMaxNormChi2MatchTrigger = 16.; fCombinedClusterTrackReco = kFALSE; fTrackAllTracks = kTRUE; fRecoverTracks = kTRUE; fMakeTrackCandidatesFast = kFALSE; fMakeMoreTrackCandidates = kFALSE; fComplementTracks = kTRUE; fImproveTracks = kTRUE; fUseSmoother = kTRUE; for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE; for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE; fBypassSt45 = 0; } //_____________________________________________________________________________ void AliMUONRecoParam::SetHighFluxParam() { /// Set reconstruction parameters for high flux environment fMinBendingMomentum = 1.; fMaxBendingMomentum = 3000.; fMaxNonBendingSlope = 0.3; fMaxBendingSlope = 0.4; fNonBendingVertexDispersion = 10.; fBendingVertexDispersion = 10.; fMaxNonBendingDistanceToTrack = 1.; fMaxBendingDistanceToTrack = 1.; fSigmaCutForTracking = 6.; fSigmaCutForImprovement = 5.; fSigmaCutForTrigger = 8.; fStripCutForTrigger = 1.; fMaxStripAreaForTrigger = 3.; fMaxNormChi2MatchTrigger = 16.; fCombinedClusterTrackReco = kFALSE; fTrackAllTracks = kTRUE; fRecoverTracks = kTRUE; fMakeTrackCandidatesFast = kFALSE; fMakeMoreTrackCandidates = kFALSE; fComplementTracks = kTRUE; fImproveTracks = kTRUE; fUseSmoother = kTRUE; for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE; for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE; fBypassSt45 = 0; } //_____________________________________________________________________________ UInt_t AliMUONRecoParam::RequestedStationMask() const { /// Get the mask of the requested station, i.e. an integer where /// bit n is set to one if the station n was requested UInt_t m(0); for ( Int_t i = 0; i < 5; ++i ) { if ( RequestStation(i) ) m |= ( 1 << i ); } return m; } //_____________________________________________________________________________ void AliMUONRecoParam::SetCosmicParam() { /// Set reconstruction parameters for high flux environment fMinBendingMomentum = 1.; fMaxBendingMomentum = 10000000.; fMaxNonBendingSlope = 0.3; fMaxBendingSlope = 0.4; fNonBendingVertexDispersion = 10.; fBendingVertexDispersion = 10.; fMaxNonBendingDistanceToTrack = 10.; fMaxBendingDistanceToTrack = 10.; fSigmaCutForTracking = 20.; fSigmaCutForImprovement = 20.; fSigmaCutForTrigger = 8.; fMaxNormChi2MatchTrigger = 16.; fPercentOfFullClusterInESD = 100.; fCombinedClusterTrackReco = kFALSE; fTrackAllTracks = kTRUE; fRecoverTracks = kTRUE; fMakeTrackCandidatesFast = kFALSE; fMakeMoreTrackCandidates = kFALSE; fComplementTracks = kTRUE; fImproveTracks = kTRUE; fUseSmoother = kTRUE; fSaveFullClusterInESD = kTRUE; for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE; for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE; fBypassSt45 = 0; } //_____________________________________________________________________________ void AliMUONRecoParam::Print(Option_t *option) const { /// print reconstruction parameters /// if option = FULL then print also unused parameters cout<= %7.2f x ( pedestal sigma ) ",ChargeSigmaCut()) << endl; cout<<"\t-------------------------------------"<