#include "AliMUONRecoParam.h"
+#include "AliMUONPadStatusMaker.h"
+#include "AliRecoParam.h"
#include "AliLog.h"
-#include "AliMUONPadStatusMaker.h"
#include <Riostream.h>
: AliDetectorRecoParam(),
fClusteringMode("MLEM"),
fTrackingMode("KALMAN"),
- fMostProbBendingMomentum(0.),
fMinBendingMomentum(0.),
fMaxBendingMomentum(0.),
fMaxNonBendingSlope(0.),
fCalibrationMode("NOGAIN"),
fBypassSt45(0),
fPadGoodnessMask(0),
- fChargeSigmaCut(4.0)
+ fChargeSigmaCut(4.0),
+ fRemoveConnectedTracksInSt12(kFALSE),
+ fMaxTriggerTracks(0),
+ fMaxTrackCandidates(0),
+ fSelectTrackOnSlope(kFALSE)
{
/// Constructor
- SetNameTitle("MUON","MUON");
- SetDefaultLimits();
-
- // use the default parameters for low flux environment
- SetLowFluxParam();
+ SetNameTitle("Dummy","Dummy");
+ SetDefaultLimits();
}
//_____________________________________________________________________________
{
/// Set reconstruction parameters for low flux environment
- fMostProbBendingMomentum = 2.;
+ SetNameTitle("Low Flux","Low Flux");
+ SetEventSpecie(AliRecoParam::kLowMult);
fMinBendingMomentum = 1.;
fMaxBendingMomentum = 3000.;
fMaxNonBendingSlope = 0.3;
fMaxBendingSlope = 0.4;
- fNonBendingVertexDispersion = 10.;
- fBendingVertexDispersion = 10.;
+ fSelectTrackOnSlope = kFALSE;
+ fNonBendingVertexDispersion = 70.;
+ fBendingVertexDispersion = 70.;
fMaxNonBendingDistanceToTrack = 1.;
fMaxBendingDistanceToTrack = 1.;
fSigmaCutForTracking = 6.;
fMakeMoreTrackCandidates = kFALSE;
fComplementTracks = kTRUE;
fImproveTracks = kTRUE;
+ fRemoveConnectedTracksInSt12 = kTRUE;
fUseSmoother = kTRUE;
- for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE;
+ for (Int_t iCh = 0; iCh < 10; iCh++) {
+ fUseChamber[iCh] = kTRUE;
+ fDefaultNonBendingReso[iCh] = 0.144;
+ fDefaultBendingReso[iCh] = 0.01;
+ }
for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE;
fBypassSt45 = 0;
+ fMaxTriggerTracks = 100;
+ fMaxTrackCandidates = 10000;
}
{
/// Set reconstruction parameters for high flux environment
- fMostProbBendingMomentum = 2.;
+ SetNameTitle("High Flux","High Flux");
+ SetEventSpecie(AliRecoParam::kHighMult);
fMinBendingMomentum = 1.;
fMaxBendingMomentum = 3000.;
fMaxNonBendingSlope = 0.3;
fMaxBendingSlope = 0.4;
- fNonBendingVertexDispersion = 10.;
- fBendingVertexDispersion = 10.;
+ fSelectTrackOnSlope = kFALSE;
+ fNonBendingVertexDispersion = 70.;
+ fBendingVertexDispersion = 70.;
fMaxNonBendingDistanceToTrack = 1.;
fMaxBendingDistanceToTrack = 1.;
fSigmaCutForTracking = 6.;
fMakeMoreTrackCandidates = kFALSE;
fComplementTracks = kTRUE;
fImproveTracks = kTRUE;
+ fRemoveConnectedTracksInSt12 = kFALSE;
fUseSmoother = kTRUE;
- for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE;
+ for (Int_t iCh = 0; iCh < 10; iCh++) {
+ fUseChamber[iCh] = kTRUE;
+ fDefaultNonBendingReso[iCh] = 0.144;
+ fDefaultBendingReso[iCh] = 0.01;
+ }
for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE;
fBypassSt45 = 0;
+ fMaxTriggerTracks = 100;
+ fMaxTrackCandidates = 10000;
}
{
/// Set reconstruction parameters for high flux environment
- fMostProbBendingMomentum = 2.;
+ SetNameTitle("Cosmic","Cosmic");
+ SetEventSpecie(AliRecoParam::kCosmic);
fMinBendingMomentum = 1.;
fMaxBendingMomentum = 10000000.;
- fMaxNonBendingSlope = 0.3;
- fMaxBendingSlope = 0.4;
- fNonBendingVertexDispersion = 10.;
- fBendingVertexDispersion = 10.;
- fMaxNonBendingDistanceToTrack = 10.;
- fMaxBendingDistanceToTrack = 10.;
- fSigmaCutForTracking = 20.;
- fSigmaCutForImprovement = 20.;
+ fMaxNonBendingSlope = 0.4;
+ fMaxBendingSlope = 0.5;
+ fSelectTrackOnSlope = kTRUE;
+ fNonBendingVertexDispersion = 200.;
+ fBendingVertexDispersion = 200.;
+ fMaxNonBendingDistanceToTrack = 1.;
+ fMaxBendingDistanceToTrack = 1.;
+ fSigmaCutForTracking = 7.;
+ fSigmaCutForImprovement = 7.;
fSigmaCutForTrigger = 8.;
+ fStripCutForTrigger = 1.5;
+ fMaxStripAreaForTrigger = 3.;
fMaxNormChi2MatchTrigger = 16.;
fPercentOfFullClusterInESD = 100.;
fCombinedClusterTrackReco = kFALSE;
fMakeMoreTrackCandidates = kFALSE;
fComplementTracks = kTRUE;
fImproveTracks = kTRUE;
+ fRemoveConnectedTracksInSt12 = kTRUE;
fUseSmoother = kTRUE;
fSaveFullClusterInESD = kTRUE;
- for (Int_t iCh = 0; iCh < 10; iCh++) fUseChamber[iCh] = kTRUE;
+ for (Int_t iCh = 0; iCh < 10; iCh++) {
+ fUseChamber[iCh] = kTRUE;
+ fDefaultNonBendingReso[iCh] = 0.4;
+ fDefaultBendingReso[iCh] = 0.4;
+ }
for (Int_t iSt = 0; iSt < 5; iSt++) fRequestStation[iSt] = kTRUE;
fBypassSt45 = 0;
+ fPadGoodnessMask = 0xC00BE80;
+ fMaxTriggerTracks = 100;
+ fMaxTrackCandidates = 10000;
+
+}
+
+//_____________________________________________________________________________
+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;
}
//_____________________________________________________________________________
/// print reconstruction parameters
/// if option = FULL then print also unused parameters
- cout<<endl<<"\t------Reconstruction parameters------"<<endl;
+ cout<<endl<<"\t------MUON Reconstruction parameters ("<<GetName()<<")------"<<endl;
+
+ if (IsDefault()) cout<<"\t\t*** Parameters used by default ***"<<endl;
cout<<Form("Calibration mode = %s",fCalibrationMode.Data())<<endl;
cout<<Form("Clustering mode = %s",fClusteringMode.Data())<<endl;
if (fSaveFullClusterInESD) cout<<Form("Save all cluster info in ESD for %5.2f %% of events",fPercentOfFullClusterInESD)<<endl;
else cout<<"Save partial cluster info in ESD"<<endl;
+
+ cout<<"Selection of track candidates:"<<endl;
+ if (fSelectTrackOnSlope) cout<<Form("\t- Non-bending slope < %5.2f",fMaxNonBendingSlope)<<endl;
+ else cout<<"\t- Impact parameter < 3 * vertex dispersion in the non-bending direction"<<endl;
+ cout<<Form("\t- if B!=0: Bending momentum > %5.2f",fMinBendingMomentum)<<endl;
+ if (fSelectTrackOnSlope) cout<<Form("\t if B==0: Bending slope < %5.2f",fMaxBendingSlope)<<endl;
+ else cout<<"\t if B==0: Impact parameter < 3 * vertex dispersion in the bending direction"<<endl;
- cout<<Form("Most probable bending momentum (used only if B=0) = %5.2f",fMostProbBendingMomentum)<<endl;
-
- cout<<Form("Bending momentum range = [%5.2f,%5.2f]",fMinBendingMomentum,fMaxBendingMomentum)<<endl;
-
- cout<<Form("Maximum non bending slope = %5.2f",fMaxNonBendingSlope)<<endl;
-
- cout<<Form("Maximum bending slope (used only if B=0) = %5.2f",fMaxBendingSlope)<<endl;
-
- if (strstr(fTrackingMode,"ORIGINAL"))
- cout<<Form("Vertex dispertion = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
- else if (strstr(option,"FULL"))
- cout<<Form("Vertex dispertion (used for original tracking only) = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
+ cout<<Form("Vertex dispersion (used to estimate initial bending momentum resolution) = (%5.2f,%5.2f)",fNonBendingVertexDispersion,fBendingVertexDispersion)<<endl;
cout<<Form("Maximum distance to track = (%5.2f,%5.2f)",fMaxNonBendingDistanceToTrack,fMaxBendingDistanceToTrack)<<endl;
} else if (fImproveTracks)
cout<<Form("Try to improve the reconstructed tracks by removing bad clusters (sigma cut = %5.2f)",fSigmaCutForImprovement)<<endl;
+ if (fRemoveConnectedTracksInSt12) cout<<"Remove tracks sharing one cluster or more in any station"<<endl;
+ else cout<<"Remove tracks sharing one cluster or more in stations 3, 4 and 5"<<endl;
+
if (strstr(option,"FULL")) {
cout<<"Use smoother to compute final track parameters, etc, at each cluster (used for Kalman tracking only): ";
if (fUseSmoother) cout<<"ON"<<endl;
} while (++st < 5);
if (discardedSt) cout<<endl;
- cout << Form("Pad goodness policy mask is 0x%x",PadGoodnessMask()) << endl;
- cout << "Which means we reject pads having the condition = " <<
- AliMUONPadStatusMaker::AsCondition(PadGoodnessMask()).Data() << endl;
-
- cout << "The pad limits we are using are :" << endl;
-
- cout << Form("%5.0f <= HVSt12 <= %5.0f Volts",HVSt12LowLimit(),HVSt12HighLimit()) << endl;
- cout << Form("%5.0f <= HVSt345 <= %5.0f Volts",HVSt345LowLimit(),HVSt345HighLimit()) << endl;
- cout << Form("%7.2f <= Pedestal mean <= %7.2f",PedMeanLowLimit(),PedMeanHighLimit()) << endl;
- cout << Form("%7.2f <= Pedestal sigma <= %7.2f",PedSigmaLowLimit(),PedSigmaHighLimit()) << endl;
- cout << Form("%e <= Gain linear term <= %e",GainA1LowLimit(),GainA1HighLimit()) << endl;
- cout << Form("%e <= Gain quadratic term <= %e",GainA2LowLimit(),GainA2HighLimit()) << endl;
- cout << Form("%5.0f <= Gain threshold term <= %5.0f",GainThresLowLimit(),GainThresHighLimit()) << endl;
+ cout << Form("Pad goodness policy mask is 0x%x",PadGoodnessMask()) << endl;
+ cout << "Which means we reject pads having the condition = " <<
+ AliMUONPadStatusMaker::AsCondition(PadGoodnessMask()).Data() << endl;
+
+ cout << "The pad limits we are using are :" << endl;
+
+ cout << Form("%5.0f <= HVSt12 <= %5.0f Volts",HVSt12LowLimit(),HVSt12HighLimit()) << endl;
+ cout << Form("%5.0f <= HVSt345 <= %5.0f Volts",HVSt345LowLimit(),HVSt345HighLimit()) << endl;
+ cout << Form("%7.2f <= Pedestal mean <= %7.2f",PedMeanLowLimit(),PedMeanHighLimit()) << endl;
+ cout << Form("%7.2f <= Pedestal sigma <= %7.2f",PedSigmaLowLimit(),PedSigmaHighLimit()) << endl;
+ cout << Form("%e <= Gain linear term <= %e",GainA1LowLimit(),GainA1HighLimit()) << endl;
+ cout << Form("%e <= Gain quadratic term <= %e",GainA2LowLimit(),GainA2HighLimit()) << endl;
+ cout << Form("%5.0f <= Gain threshold term <= %5.0f",GainThresLowLimit(),GainThresHighLimit()) << endl;
cout << Form("And we cut on charge >= %7.2f x ( pedestal sigma ) ",ChargeSigmaCut()) << endl;
- cout<<"\t-------------------------------------"<<endl<<endl;
+ cout << "chamber non bending resolution = |";
+ for (Int_t iCh = 0; iCh < 10; iCh++) cout << Form(" %6.3f |",fDefaultNonBendingReso[iCh]);
+ cout << endl;
+ cout << "chamber bending resolution = |";
+ for (Int_t iCh = 0; iCh < 10; iCh++) cout << Form(" %6.3f |",fDefaultBendingReso[iCh]);
+ cout << endl;
+ cout<<Form("maximum number of trigger tracks above which the tracking is cancelled = %d",fMaxTriggerTracks)<<endl;
+ cout<<Form("maximum number of track candidates above which the tracking is abandonned = %d",fMaxTrackCandidates)<<endl;
+
+ cout<<"\t-----------------------------------------------------"<<endl<<endl;
}
fPedMeanLimits[0] = 50;
fPedMeanLimits[1] = 1024;
- fPedSigmaLimits[0] = 0.1;
+ fPedSigmaLimits[0] = 0.6;
fPedSigmaLimits[1] = 100;
fGainA1Limits[0] = 0.1;
fGainThresLimits[0] = 0;
fGainThresLimits[1] = 4095;
- fPadGoodnessMask = 0x8080;
+ fPadGoodnessMask = 0x8008080; // Ped is missing | HV is missing | killed
+
fChargeSigmaCut = 4.0;
}