AliPhysics  ced2227 (ced2227)
AliAnalysisTaskMuonResolution Class Reference

Muon spectrometer resolution. More...

#include <AliAnalysisTaskMuonResolution.h>

Inheritance diagram for AliAnalysisTaskMuonResolution:

Public Member Functions

 AliAnalysisTaskMuonResolution ()
 
 AliAnalysisTaskMuonResolution (const char *name)
 
virtual ~AliAnalysisTaskMuonResolution ()
 
void SetDefaultStorage (const char *ocdbPath)
 Set location of the default OCDB storage (if not set use "raw://") More...
 
void SetStartingResolution (Int_t chId, Double_t valNB, Double_t valB)
 
void SetStartingResolution (Double_t valNB[10], Double_t valB[10])
 
void GetStartingResolution (Double_t valNB[10], Double_t valB[10]) const
 
void SetHalfChShift (Int_t hchId, Double_t valNB, Double_t valB)
 
void SetHalfChShift (Double_t valNB[20], Double_t valB[20])
 
void GetHalfChShift (Double_t valNB[20], Double_t valB[20]) const
 
void ShiftHalfCh (Bool_t flag=kTRUE)
 
void PrintHalfChShift (Bool_t flag=kTRUE)
 
void SetDEShift (Int_t iDE, Double_t valNB, Double_t valB)
 
void SetDEShift (Double_t valNB[200], Double_t valB[200])
 
void GetDEShift (Double_t valNB[200], Double_t valB[200]) const
 
void ShiftDE (Bool_t flag=kTRUE)
 
void PrintDEShift (Bool_t flag=kTRUE)
 
void SetMinMomentum (Double_t val)
 set the minimum momentum value of the tracks used to compute the resolution More...
 
void SetMinPt (Double_t val)
 set the minimum pT value of the tracks used to compute the resolution More...
 
void SetMuonSign (Short_t sign)
 set the sign of the tracks used to compute the resolution More...
 
void SetMuonEventCuts (AliMuonEventCuts &eventCuts)
 
void SetMuonTrackCuts (AliMuonTrackCuts &trackCuts)
 
void UseMCLabel (Bool_t flag=kTRUE)
 select only tracks with MC label or not More...
 
void SetExtrapMode (Int_t val)
 
void CorrectForSystematics (Bool_t flag=kTRUE)
 set the flag to add or not the systematic shifts of the residuals to the resolution More...
 
void SetAlignStorage (const char *ocdbPath, Int_t version=-1, Int_t subVersion=-1)
 
void ReAlign (const char *oldAlignStorage=0x0, Int_t oldVersion=-1, Int_t oldSubVersion=-1, const char *newAlignStorage="", Int_t newVersion=-1, Int_t newSubVersion=-1)
 
TObjArrayGetCanvases ()
 return the list of summary canvases More...
 
void ShowProgressBar (Bool_t flag=kTRUE)
 set the flag to show the progression bar More...
 
void PrintClusterRes (Bool_t perCh=kTRUE, Bool_t perDE=kFALSE)
 set the flag to print the cluster resolution per chamber/DE More...
 
void FitResiduals (Bool_t flag=kTRUE)
 
void RemoveMonoCathodClusters (Bool_t flag=kTRUE, Bool_t checkAllPads=kTRUE)
 set the flag to remove mono-cathod clusters (either considering all the pads or only the ones directly below) More...
 
void ImproveTracks (Bool_t flag=kTRUE)
 set the flag to improve the track before measuring the resolution More...
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *)
 
virtual Bool_t UserNotify ()
 
virtual void NotifyRun ()
 
virtual void Terminate (Option_t *)
 

Private Types

enum  eResiduals {
  kResidualPerChClusterIn = 0, kResidualPerChClusterOut = 2, kTrackResPerCh = 4, kMCSPerCh = 6,
  kClusterRes2PerCh = 8, kResidualPerDEClusterIn = 10, kResidualPerDEClusterOut = 12, kTrackResPerDE = 14,
  kMCSPerDE = 16, kResidualPerHalfChClusterIn = 18, kResidualPerHalfChClusterOut = 20, kTrackResPerHalfCh = 22,
  kMCSPerHalfCh = 24, kLocalChi2PerCh = 26, kLocalChi2PerDE = 29
}
 
enum  eResidualsVsP { kResidualInChVsPClusterIn = 0, kResidualInChVsPClusterOut = 20, kResidualVsPClusterIn = 40, kResidualVsPClusterOut = 42 }
 
enum  eResidualsVsCent { kResidualInChVsCentClusterIn = 0, kResidualInChVsCentClusterOut = 20, kResidualVsCentClusterIn = 40, kResidualVsCentClusterOut = 42 }
 
enum  eResidualsVsAngle {
  kResidualInChVsAngleClusterIn = 0, kResidualInChVsAngleClusterOut = 20, kResidualVsAngleClusterIn = 40, kResidualVsAngleClusterOut = 42,
  kResidualInHalfChVsAngleClusterIn = 44
}
 
enum  eLocalChi2 { kLocalChi2PerChMean = 0, kLocalChi2PerDEMean = 3 }
 
enum  eChamberRes {
  kResidualPerChMeanClusterIn = 0, kResidualPerChMeanClusterOut = 2, kResidualPerChSigmaClusterIn = 4, kResidualPerChSigmaClusterOut = 6,
  kResidualPerChDispersionClusterOut = 8, kCombinedResidualPerChSigma = 10, kTrackResPerChMean = 12, kMCSPerChMean = 14,
  kClusterResPerCh = 16, kCalcClusterResPerCh = 18, kResidualPerDEMeanClusterIn = 20, kResidualPerDEMeanClusterOut = 22,
  kCombinedResidualPerDESigma = 24, kClusterResPerDE = 26, kResidualPerHalfChMeanClusterIn = 28, kResidualPerHalfChMeanClusterOut = 30,
  kCombinedResidualPerHalfChSigma = 32, kClusterResPerHalfCh = 34, kResidualMeanClusterInVsP = 36, kCombinedResidualSigmaVsP = 38,
  kCombinedResidualAllChSigmaVsP = 40, kResidualMeanClusterInVsCent = 42, kCombinedResidualSigmaVsCent = 44, kCombinedResidualAllChSigmaVsCent = 46,
  kResidualMeanClusterInVsAngle = 48, kCombinedResidualSigmaVsAngle = 50, kCombinedResidualAllChSigmaVsAngle = 52, kHChResidualMeanClusterInVsAngle = 54
}
 
enum  eTrackRes {
  kUncorrPRes = 0, kPRes = 1, kUncorrPtRes = 2, kPtRes = 3,
  kUncorrSlopeRes = 4, kSlopeRes = 6
}
 
enum  eCanvases {
  kResPerCh = 0, kResPerDE = 1, kResPerHalfCh = 2, kResPerChVsP = 3,
  kResPerChVsCent = 4, kResPerChVsAngle = 5, kShiftPerChVsP = 6, kShiftPerChVsCent = 7,
  kShiftPerChVsAngle = 8, kDetailResPerCh = 9, kDetailResPerHalfCh = 13, kDetailResPerDE = 17
}
 

Private Member Functions

 AliAnalysisTaskMuonResolution (const AliAnalysisTaskMuonResolution &rhs)
 Not implemented. More...
 
AliAnalysisTaskMuonResolutionoperator= (const AliAnalysisTaskMuonResolution &rhs)
 Not implemented. More...
 
void ModifyClusters (AliMUONTrack &track)
 
void Zoom (TH1 *h, Double_t fractionCut=0.01)
 
void ZoomLeft (TH1 *h, Double_t fractionCut=0.02)
 
void ZoomRight (TH1 *h, Double_t fractionCut=0.02)
 
void GetMeanRMS (TH1 *h, Double_t &mean, Double_t &meanErr, Double_t &rms, Double_t &rmsErr, TGraphErrors *gMean=0x0, TGraphErrors *gRMS=0x0, Int_t i=0, Double_t x=0, Bool_t zoom=kTRUE, Bool_t enableFit=kTRUE)
 
void FillMeanSigmaClusterVsX (const TH2 *hIn, const TH2 *hOut, TGraphErrors *gMean, TGraphErrors *gSigma)
 
void Cov2CovP (const AliMUONTrackParam &param, TMatrixD &covP)
 
void CheckPads (AliMUONVCluster *cl, Bool_t &hasBending, Bool_t &hasNonBending) const
 
void CheckPadsBelow (AliMUONVCluster *cl, Bool_t &hasBending, Bool_t &hasNonBending) const
 

Private Attributes

TObjArrayfResiduals
 List of residual histos. More...
 
TObjArrayfResidualsVsP
 List of residual vs. p histos. More...
 
TObjArrayfResidualsVsCent
 List of residual vs. centrality histos. More...
 
TObjArrayfResidualsVsAngle
 List of residual vs. track angle histos. More...
 
TObjArrayfLocalChi2
 List of plots related to local chi2 per chamber/DE. More...
 
TObjArrayfChamberRes
 List of plots related to chamber/DE resolution. More...
 
TObjArrayfTrackRes
 List of plots related to track resolution (p, pT, ...) More...
 
TObjArrayfCanvases
 List of canvases summarizing the results. More...
 
TObjArrayfTmpHists
 List of temporary histograms. More...
 
Double_t fClusterResNB [10]
 cluster resolution in non-bending direction More...
 
Double_t fClusterResB [10]
 cluster resolution in bending direction More...
 
Double_t fHalfChShiftNB [20]
 half-chamber deplacements in non-bending direction More...
 
Double_t fHalfChShiftB [20]
 half-chamber deplacements in bending direction More...
 
Double_t fDEShiftNB [200]
 DE deplacements in non-bending direction. More...
 
Double_t fDEShiftB [200]
 DE deplacements in bending direction. More...
 
TString fDefaultStorage
 location of the default OCDB storage More...
 
Int_t fNEvents
 number of processed events More...
 
Bool_t fShowProgressBar
 show the progression bar More...
 
Bool_t fPrintClResPerCh
 print the cluster resolution per chamber More...
 
Bool_t fPrintClResPerDE
 print the cluster resolution per DE More...
 
TF1 * fGaus
 gaussian function to fit the residuals More...
 
Double_t fMinMomentum
 use only tracks with momentum higher than this value More...
 
Double_t fMinPt
 use only tracks with pT higher than this value More...
 
Short_t fSign
 use only tracks of this sign More...
 
Bool_t fUseMCLabel
 use only tracks with MC label or not More...
 
Int_t fExtrapMode
 extrapolation mode to get the track parameters and covariances at a given cluster More...
 
Bool_t fCorrectForSystematics
 add or not the systematic shifts of the residuals to the resolution More...
 
Bool_t fRemoveMonoCathCl
 remove or not the mono-cathod clusters More...
 
Bool_t fCheckAllPads
 use all pads or only the ones directly below the cluster to look for mono-cathods More...
 
Bool_t fImproveTracks
 flag telling whether to improve or not the track before measuring the resolution More...
 
Bool_t fShiftHalfCh
 flag telling wether to displace half-chambers by fHalfChShift(N)B[i] or not More...
 
Bool_t fPrintHalfChShift
 print the half-chamber displacements More...
 
Bool_t fShiftDE
 flag telling wether to displace DEs by fDEShift(N)B[i] or not More...
 
Bool_t fPrintDEShift
 print the DE displacements More...
 
Bool_t fOCDBLoaded
 flag telling if the OCDB has been properly loaded or not More...
 
Int_t fNDE
 total number of DE More...
 
Int_t fDEIndices [1100]
 index of DE in histograms refered by ID More...
 
Int_t fDEIds [200]
 ID of DE refered by index in histograms. More...
 
Bool_t fReAlign
 flag telling whether to re-align the spectrometer or not before computing resolution More...
 
TString fOldAlignStorage
 location of the OCDB storage where to find old MUON/Align/Data (use the default one if empty) More...
 
Int_t fOldAlignVersion
 specific version of the old MUON/Align/Data/object to load More...
 
Int_t fOldAlignSubVersion
 specific subversion of the old MUON/Align/Data/object to load More...
 
TString fNewAlignStorage
 location of the OCDB storage where to find new MUON/Align/Data (use the default one if empty) More...
 
Int_t fNewAlignVersion
 specific version of the new MUON/Align/Data/object to load More...
 
Int_t fNewAlignSubVersion
 specific subversion of the new MUON/Align/Data/object to load More...
 
AliMUONGeometryTransformer * fOldGeoTransformer
 geometry transformer used to recontruct the present data More...
 
AliMUONGeometryTransformer * fNewGeoTransformer
 new geometry transformer containing the new alignment to be applied More...
 
AliMuonEventCuts * fMuonEventCuts
 cuts to select events to be considered More...
 
AliMuonTrackCuts * fMuonTrackCuts
 cuts to select tracks to be considered More...
 

Static Private Attributes

static const Int_t fgkMinEntries = 10
 minimum number of entries needed to compute resolution More...
 

Detailed Description

Muon spectrometer resolution.

Definition at line 30 of file AliAnalysisTaskMuonResolution.h.

Member Enumeration Documentation

Enumerator
kResPerCh 

summary canvas

kResPerDE 

summary canvas

kResPerHalfCh 

summary canvas

kResPerChVsP 

summary canvas

kResPerChVsCent 

summary canvas

kResPerChVsAngle 

summary canvas

kShiftPerChVsP 

summary canvas

kShiftPerChVsCent 

summary canvas

kShiftPerChVsAngle 

summary canvas

kDetailResPerCh 

summary canvas

kDetailResPerHalfCh 

summary canvas

kDetailResPerDE 

summary canvas

Definition at line 214 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kResidualPerChMeanClusterIn 

cluster-track residual-X/Y per chamber: mean (cluster in)

kResidualPerChMeanClusterOut 

cluster-track residual-X/Y per chamber: mean (cluster out)

kResidualPerChSigmaClusterIn 

cluster-track residual-X/Y per chamber: sigma (cluster in)

kResidualPerChSigmaClusterOut 

cluster-track residual-X/Y per chamber: sigma (cluster out)

kResidualPerChDispersionClusterOut 

cluster-track residual-X/Y per chamber: dispersion (cluster out)

kCombinedResidualPerChSigma 

combined cluster-track residual-X/Y per chamber

kTrackResPerChMean 

track X/Y-resolution per chamber

kMCSPerChMean 

MCS X/Y-dispersion of extrapolated track per chamber.

kClusterResPerCh 

cluster X/Y-resolution per chamber

kCalcClusterResPerCh 

calculated cluster X/Y-resolution per chamber

kResidualPerDEMeanClusterIn 

cluster-track residual-X/Y per DE: mean (cluster in)

kResidualPerDEMeanClusterOut 

cluster-track residual-X/Y per DE: mean (cluster out)

kCombinedResidualPerDESigma 

combined cluster-track residual-X/Y per DE

kClusterResPerDE 

cluster X/Y-resolution per DE

kResidualPerHalfChMeanClusterIn 

cluster-track residual-X/Y per half chamber: mean (cluster in)

kResidualPerHalfChMeanClusterOut 

cluster-track residual-X/Y per half chamber: mean (cluster out)

kCombinedResidualPerHalfChSigma 

combined cluster-track residual-X/Y per half chamber

kClusterResPerHalfCh 

cluster X/Y-resolution per half chamber

kResidualMeanClusterInVsP 

cluster-track residual-X/Y per chamber versus momentum: mean (cluster in)

kCombinedResidualSigmaVsP 

cluster X/Y-resolution per chamber versus momentum

kCombinedResidualAllChSigmaVsP 

cluster X/Y-resolution integrated over chambers versus momentum

kResidualMeanClusterInVsCent 

cluster-track residual-X/Y per chamber versus centrality: mean (cluster in)

kCombinedResidualSigmaVsCent 

cluster X/Y-resolution per chamber versus centrality

kCombinedResidualAllChSigmaVsCent 

cluster X/Y-resolution integrated over chambers versus centrality

kResidualMeanClusterInVsAngle 

cluster-track residual-X/Y per chamber versus track angle in X/Y direction: mean (cluster in)

kCombinedResidualSigmaVsAngle 

cluster X/Y-resolution per chamber versus track angle in X/Y direction

kCombinedResidualAllChSigmaVsAngle 

cluster X/Y-resolution integrated over chambers versus track angle in X/Y direction

kHChResidualMeanClusterInVsAngle 

cluster-track residual-X/Y per half-chamber versus track angle in X/Y direction: mean (cluster in)

Definition at line 174 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kLocalChi2PerChMean 

local chi2-X/Y/total per chamber: mean

kLocalChi2PerDEMean 

local chi2-X/Y/total per DE: mean

Definition at line 169 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kResidualPerChClusterIn 

cluster-track residual-X/Y distribution per chamber (cluster attached to the track)

kResidualPerChClusterOut 

cluster-track residual-X/Y distribution per chamber (cluster not attached to the track)

kTrackResPerCh 

track resolution-X/Y per chamber

kMCSPerCh 

MCS X/Y-dispersion of extrapolated track per chamber.

kClusterRes2PerCh 

cluster X/Y-resolution per chamber

kResidualPerDEClusterIn 

cluster-track residual-X/Y distribution per DE (cluster attached to the track)

kResidualPerDEClusterOut 

cluster-track residual-X/Y distribution per DE (cluster not attached to the track)

kTrackResPerDE 

track resolution-X/Y per DE

kMCSPerDE 

MCS X/Y-dispersion of extrapolated track per DE.

kResidualPerHalfChClusterIn 

cluster-track residual-X/Y distribution per half chamber (cluster attached to the track)

kResidualPerHalfChClusterOut 

cluster-track residual-X/Y distribution per half chamber (cluster not attached to the track)

kTrackResPerHalfCh 

track resolution-X/Y per half chamber

kMCSPerHalfCh 

MCS X/Y-dispersion of extrapolated track per half chamber.

kLocalChi2PerCh 

local chi2-X/Y/total distribution per chamber

kLocalChi2PerDE 

local chi2-X/Y/total distribution per DE

Definition at line 129 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kResidualInChVsAngleClusterIn 

cluster-track residual-X/Y distribution in chamber i versus track angle in X/Y direction (cluster attached to the track)

kResidualInChVsAngleClusterOut 

cluster-track residual-X/Y distribution in chamber i versus track angle in X/Y direction (cluster not attached to the track)

kResidualVsAngleClusterIn 

cluster-track residual-X/Y distribution integrated over chambers versus track angle in X/Y direction (cluster attached to the track)

kResidualVsAngleClusterOut 

cluster-track residual-X/Y distribution integrated over chambers versus track angle in X/Y direction (cluster not attached to the track)

kResidualInHalfChVsAngleClusterIn 

cluster-track residual-X/Y distribution in half-chamber i versus track angle in X/Y direction (cluster attached to the track)

Definition at line 161 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kResidualInChVsCentClusterIn 

cluster-track residual-X/Y distribution in chamber i versus centrality (cluster attached to the track)

kResidualInChVsCentClusterOut 

cluster-track residual-X/Y distribution in chamber i versus centrality (cluster not attached to the track)

kResidualVsCentClusterIn 

cluster-track residual-X/Y distribution integrated over chambers versus centrality (cluster attached to the track)

kResidualVsCentClusterOut 

cluster-track residual-X/Y distribution integrated over chambers versus centrality (cluster not attached to the track)

Definition at line 154 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kResidualInChVsPClusterIn 

cluster-track residual-X/Y distribution in chamber i versus momentum (cluster attached to the track)

kResidualInChVsPClusterOut 

cluster-track residual-X/Y distribution in chamber i versus momentum (cluster not attached to the track)

kResidualVsPClusterIn 

cluster-track residual-X/Y distribution integrated over chambers versus momentum (cluster attached to the track)

kResidualVsPClusterOut 

cluster-track residual-X/Y distribution integrated over chambers versus momentum (cluster not attached to the track)

Definition at line 147 of file AliAnalysisTaskMuonResolution.h.

Enumerator
kUncorrPRes 

muon momentum reconstructed resolution at first cluster vs p

kPRes 

muon momentum reconstructed resolution at vertex vs p

kUncorrPtRes 

muon transverse momentum reconstructed resolution at first cluster vs p

kPtRes 

muon transverse momentum reconstructed resolution at vertex vs p

kUncorrSlopeRes 

muon slope-X/Y reconstructed resolution at first cluster vs p

kSlopeRes 

muon slope-X/Y reconstructed resolution at vertex vs p

Definition at line 205 of file AliAnalysisTaskMuonResolution.h.

Constructor & Destructor Documentation

AliAnalysisTaskMuonResolution::AliAnalysisTaskMuonResolution ( )

Default constructor

Definition at line 86 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks().

AliAnalysisTaskMuonResolution::AliAnalysisTaskMuonResolution ( const char *  name)

Constructor

Definition at line 141 of file AliAnalysisTaskMuonResolution.cxx.

AliAnalysisTaskMuonResolution::~AliAnalysisTaskMuonResolution ( )
virtual

Destructor

Definition at line 212 of file AliAnalysisTaskMuonResolution.cxx.

AliAnalysisTaskMuonResolution::AliAnalysisTaskMuonResolution ( const AliAnalysisTaskMuonResolution rhs)
private

Not implemented.

Member Function Documentation

void AliAnalysisTaskMuonResolution::CheckPads ( AliMUONVCluster *  cl,
Bool_t hasBending,
Bool_t hasNonBending 
) const
private

Check that this cluster contains pads on both cathods

Definition at line 1908 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), ModifyClusters(), and UserExec().

void AliAnalysisTaskMuonResolution::CheckPadsBelow ( AliMUONVCluster *  cl,
Bool_t hasBending,
Bool_t hasNonBending 
) const
private

Check that this cluster contains pads on both cathods just under its position

Definition at line 1932 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), ModifyClusters(), and UserExec().

void AliAnalysisTaskMuonResolution::CorrectForSystematics ( Bool_t  flag = kTRUE)
inline

set the flag to add or not the systematic shifts of the residuals to the resolution

Definition at line 79 of file AliAnalysisTaskMuonResolution.h.

Referenced by AddTaskMuonResolution().

void AliAnalysisTaskMuonResolution::Cov2CovP ( const AliMUONTrackParam &  param,
TMatrixD &  covP 
)
private

change coordinate system: (X, SlopeX, Y, SlopeY, q/Pyz) -> (X, Y, pX, pY, pZ) parameters (param) are given in the (X, SlopeX, Y, SlopeY, q/Pyz) coordinate system

Definition at line 1876 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), and UserExec().

void AliAnalysisTaskMuonResolution::FillMeanSigmaClusterVsX ( const TH2 hIn,
const TH2 hOut,
TGraphErrors gMean,
TGraphErrors gSigma 
)
private

Fill graph with cluster shift (cluster in) if gMean != OxO and resolution from combined residuals with cluster in/out (zooming if required)

Definition at line 1844 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), and Terminate().

void AliAnalysisTaskMuonResolution::FitResiduals ( Bool_t  flag = kTRUE)
inline

set gaussian function to fit the residual distribution to extract the mean and the dispersion. if not set: take the mean and the RMS of the distribution

Definition at line 425 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), and PrintClusterRes().

TObjArray* AliAnalysisTaskMuonResolution::GetCanvases ( )
inline

return the list of summary canvases

Definition at line 87 of file AliAnalysisTaskMuonResolution.h.

Referenced by MuonResolution().

void AliAnalysisTaskMuonResolution::GetDEShift ( Double_t  valNB[200],
Double_t  valB[200] 
) const
inline

set chambers non-bending and bending resolutions

Definition at line 367 of file AliAnalysisTaskMuonResolution.h.

Referenced by MuonResolution(), and PrintHalfChShift().

void AliAnalysisTaskMuonResolution::GetHalfChShift ( Double_t  valNB[20],
Double_t  valB[20] 
) const
inline

set chambers non-bending and bending resolutions

Definition at line 338 of file AliAnalysisTaskMuonResolution.h.

Referenced by MuonResolution(), and SetDefaultStorage().

void AliAnalysisTaskMuonResolution::GetMeanRMS ( TH1 h,
Double_t mean,
Double_t meanErr,
Double_t rms,
Double_t rmsErr,
TGraphErrors gMean = 0x0,
TGraphErrors gRMS = 0x0,
Int_t  i = 0,
Double_t  x = 0,
Bool_t  zoom = kTRUE,
Bool_t  enableFit = kTRUE 
)
private

Fill graphs with the mean and rms values and the corresponding error (zooming if required)

Definition at line 1759 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by FillMeanSigmaClusterVsX(), ImproveTracks(), and Terminate().

void AliAnalysisTaskMuonResolution::GetStartingResolution ( Double_t  valNB[10],
Double_t  valB[10] 
) const
inline

set chambers non-bending and bending resolutions

Definition at line 309 of file AliAnalysisTaskMuonResolution.h.

Referenced by MuonResolution(), and SetDefaultStorage().

void AliAnalysisTaskMuonResolution::ImproveTracks ( Bool_t  flag = kTRUE)
inline

set the flag to improve the track before measuring the resolution

Definition at line 101 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::ModifyClusters ( AliMUONTrack &  track)
private

Reset the clusters resolution from the ones given to the task and change the cluster position according to the new alignment parameters if required

Definition at line 1661 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), and UserExec().

void AliAnalysisTaskMuonResolution::NotifyRun ( )
virtual

load necessary data from OCDB corresponding to the first run number and initialize analysis

Definition at line 730 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks().

AliAnalysisTaskMuonResolution& AliAnalysisTaskMuonResolution::operator= ( const AliAnalysisTaskMuonResolution rhs)
private

Not implemented.

Referenced by ImproveTracks().

void AliAnalysisTaskMuonResolution::PrintClusterRes ( Bool_t  perCh = kTRUE,
Bool_t  perDE = kFALSE 
)
inline

set the flag to print the cluster resolution per chamber/DE

Definition at line 93 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::PrintDEShift ( Bool_t  flag = kTRUE)
inline

Definition at line 54 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::PrintHalfChShift ( Bool_t  flag = kTRUE)
inline

Definition at line 48 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::ReAlign ( const char *  oldAlignStorage = 0x0,
Int_t  oldVersion = -1,
Int_t  oldSubVersion = -1,
const char *  newAlignStorage = "",
Int_t  newVersion = -1,
Int_t  newSubVersion = -1 
)
inline

Set the flag to activate the re-alignment and set the specific storages where to find the old/new alignment files of specified version/subversion. If old(new)AlignStorage = 0x0: do not apply any alignment (default geometry) If old(new)AlignStorage = "" : assume the old(new) alignment data are in the default storage If version = subversion = -1 the lastest object is loaded

Definition at line 395 of file AliAnalysisTaskMuonResolution.h.

Referenced by CorrectForSystematics().

void AliAnalysisTaskMuonResolution::RemoveMonoCathodClusters ( Bool_t  flag = kTRUE,
Bool_t  checkAllPads = kTRUE 
)
inline

set the flag to remove mono-cathod clusters (either considering all the pads or only the ones directly below)

Definition at line 98 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::SetAlignStorage ( const char *  ocdbPath,
Int_t  version = -1,
Int_t  subVersion = -1 
)
inline

Set the OCDB path + version/subversion to find the alignment file used in the reco. If ocdbPath = 0x0: do not apply any alignment (default geometry) If ocdbPath = "" : assume the alignment data are in the default storage If version = subversion = -1 the lastest object is loaded

Definition at line 377 of file AliAnalysisTaskMuonResolution.h.

Referenced by CorrectForSystematics().

void AliAnalysisTaskMuonResolution::SetDefaultStorage ( const char *  ocdbPath)
inline

Set location of the default OCDB storage (if not set use "raw://")

Definition at line 38 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::SetDEShift ( Int_t  iDE,
Double_t  valNB,
Double_t  valB 
)
inline

set chamber non-bending and bending resolutions

Definition at line 348 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), and PrintHalfChShift().

void AliAnalysisTaskMuonResolution::SetDEShift ( Double_t  valNB[200],
Double_t  valB[200] 
)
inline

set chambers non-bending and bending resolutions

Definition at line 357 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::SetExtrapMode ( Int_t  val)
inline

set the extrapolation mode to get the track parameters and covariances at a given cluster: 0 = extrapolate from the closest cluster; 1 = extrapolate from the previous cluster except between stations 2-3-4

Definition at line 76 of file AliAnalysisTaskMuonResolution.h.

Referenced by AddTaskMuonResolution().

void AliAnalysisTaskMuonResolution::SetHalfChShift ( Int_t  hchId,
Double_t  valNB,
Double_t  valB 
)
inline

set chamber non-bending and bending resolutions

Definition at line 319 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), and SetDefaultStorage().

void AliAnalysisTaskMuonResolution::SetHalfChShift ( Double_t  valNB[20],
Double_t  valB[20] 
)
inline

set chambers non-bending and bending resolutions

Definition at line 328 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::SetMinMomentum ( Double_t  val)
inline

set the minimum momentum value of the tracks used to compute the resolution

Definition at line 57 of file AliAnalysisTaskMuonResolution.h.

Referenced by AddTaskMuonResolution().

void AliAnalysisTaskMuonResolution::SetMinPt ( Double_t  val)
inline

set the minimum pT value of the tracks used to compute the resolution

Definition at line 60 of file AliAnalysisTaskMuonResolution.h.

Referenced by AddTaskMuonResolution().

void AliAnalysisTaskMuonResolution::SetMuonEventCuts ( AliMuonEventCuts &  eventCuts)
inline

set standard cuts to select events to be considered

Definition at line 435 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetMuonSign().

void AliAnalysisTaskMuonResolution::SetMuonSign ( Short_t  sign)
inline

set the sign of the tracks used to compute the resolution

Definition at line 63 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::SetMuonTrackCuts ( AliMuonTrackCuts &  trackCuts)
inline

set standard cuts to select tracks to be considered

Definition at line 443 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetMuonSign().

void AliAnalysisTaskMuonResolution::SetStartingResolution ( Int_t  chId,
Double_t  valNB,
Double_t  valB 
)
inline

set chamber non-bending and bending resolutions

Definition at line 290 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), and SetDefaultStorage().

void AliAnalysisTaskMuonResolution::SetStartingResolution ( Double_t  valNB[10],
Double_t  valB[10] 
)
inline

set chambers non-bending and bending resolutions

Definition at line 299 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::ShiftDE ( Bool_t  flag = kTRUE)
inline

Definition at line 53 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::ShiftHalfCh ( Bool_t  flag = kTRUE)
inline

Definition at line 47 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::ShowProgressBar ( Bool_t  flag = kTRUE)
inline

set the flag to show the progression bar

Definition at line 90 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::Terminate ( Option_t )
virtual

compute final results

Definition at line 833 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks().

void AliAnalysisTaskMuonResolution::UseMCLabel ( Bool_t  flag = kTRUE)
inline

select only tracks with MC label or not

Definition at line 72 of file AliAnalysisTaskMuonResolution.h.

void AliAnalysisTaskMuonResolution::UserCreateOutputObjects ( )
virtual

Create histograms

Definition at line 234 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), and NotifyRun().

void AliAnalysisTaskMuonResolution::UserExec ( Option_t )
virtual

Main event loop

Definition at line 425 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks().

Bool_t AliAnalysisTaskMuonResolution::UserNotify ( )
virtual

setup OCDB default storage

Definition at line 714 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks().

void AliAnalysisTaskMuonResolution::Zoom ( TH1 h,
Double_t  fractionCut = 0.01 
)
private

Reduce the range of the histogram by removing a given fration of the statistic at each edge

Definition at line 1713 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by GetMeanRMS(), and ImproveTracks().

void AliAnalysisTaskMuonResolution::ZoomLeft ( TH1 h,
Double_t  fractionCut = 0.02 
)
private

Reduce the range of the histogram by removing a given fration of the statistic on the left side

Definition at line 1721 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), and Zoom().

void AliAnalysisTaskMuonResolution::ZoomRight ( TH1 h,
Double_t  fractionCut = 0.02 
)
private

Reduce the range of the histogram by removing a given fration of the statistic on the right side

Definition at line 1740 of file AliAnalysisTaskMuonResolution.cxx.

Referenced by ImproveTracks(), Terminate(), and Zoom().

Member Data Documentation

TObjArray* AliAnalysisTaskMuonResolution::fCanvases
private

List of canvases summarizing the results.

Definition at line 238 of file AliAnalysisTaskMuonResolution.h.

Referenced by GetCanvases(), GetMeanRMS(), Terminate(), and ~AliAnalysisTaskMuonResolution().

TObjArray* AliAnalysisTaskMuonResolution::fChamberRes
private

List of plots related to chamber/DE resolution.

Definition at line 236 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), and ~AliAnalysisTaskMuonResolution().

Bool_t AliAnalysisTaskMuonResolution::fCheckAllPads
private

use all pads or only the ones directly below the cluster to look for mono-cathods

Definition at line 263 of file AliAnalysisTaskMuonResolution.h.

Referenced by ModifyClusters(), RemoveMonoCathodClusters(), and UserExec().

Double_t AliAnalysisTaskMuonResolution::fClusterResB[10]
private

cluster resolution in bending direction

Definition at line 242 of file AliAnalysisTaskMuonResolution.h.

Referenced by GetStartingResolution(), ModifyClusters(), NotifyRun(), and SetStartingResolution().

Double_t AliAnalysisTaskMuonResolution::fClusterResNB[10]
private

cluster resolution in non-bending direction

Definition at line 241 of file AliAnalysisTaskMuonResolution.h.

Referenced by GetStartingResolution(), ModifyClusters(), NotifyRun(), and SetStartingResolution().

Bool_t AliAnalysisTaskMuonResolution::fCorrectForSystematics
private

add or not the systematic shifts of the residuals to the resolution

Definition at line 261 of file AliAnalysisTaskMuonResolution.h.

Referenced by CorrectForSystematics(), and Terminate().

TString AliAnalysisTaskMuonResolution::fDefaultStorage
private

location of the default OCDB storage

Definition at line 250 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetDefaultStorage(), and UserNotify().

Int_t AliAnalysisTaskMuonResolution::fDEIds[200]
private

ID of DE refered by index in histograms.

Definition at line 272 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), NotifyRun(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskMuonResolution::fDEIndices[1100]
private

index of DE in histograms refered by ID

Definition at line 271 of file AliAnalysisTaskMuonResolution.h.

Referenced by AliAnalysisTaskMuonResolution(), CheckPadsBelow(), ModifyClusters(), NotifyRun(), and UserExec().

Double_t AliAnalysisTaskMuonResolution::fDEShiftB[200]
private

DE deplacements in bending direction.

Definition at line 248 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), GetDEShift(), ModifyClusters(), and SetDEShift().

Double_t AliAnalysisTaskMuonResolution::fDEShiftNB[200]
private

DE deplacements in non-bending direction.

Definition at line 247 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), GetDEShift(), ModifyClusters(), and SetDEShift().

Int_t AliAnalysisTaskMuonResolution::fExtrapMode
private

extrapolation mode to get the track parameters and covariances at a given cluster

Definition at line 260 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetExtrapMode(), and UserExec().

TF1* AliAnalysisTaskMuonResolution::fGaus
private

gaussian function to fit the residuals

Definition at line 255 of file AliAnalysisTaskMuonResolution.h.

Referenced by FitResiduals(), GetMeanRMS(), and ~AliAnalysisTaskMuonResolution().

const Int_t AliAnalysisTaskMuonResolution::fgkMinEntries = 10
staticprivate

minimum number of entries needed to compute resolution

Definition at line 229 of file AliAnalysisTaskMuonResolution.h.

Referenced by GetMeanRMS().

Double_t AliAnalysisTaskMuonResolution::fHalfChShiftB[20]
private

half-chamber deplacements in bending direction

Definition at line 245 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), GetHalfChShift(), ModifyClusters(), and SetHalfChShift().

Double_t AliAnalysisTaskMuonResolution::fHalfChShiftNB[20]
private

half-chamber deplacements in non-bending direction

Definition at line 244 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), GetHalfChShift(), ModifyClusters(), and SetHalfChShift().

Bool_t AliAnalysisTaskMuonResolution::fImproveTracks
private

flag telling whether to improve or not the track before measuring the resolution

Definition at line 264 of file AliAnalysisTaskMuonResolution.h.

Referenced by ImproveTracks(), NotifyRun(), and UserExec().

TObjArray* AliAnalysisTaskMuonResolution::fLocalChi2
private

List of plots related to local chi2 per chamber/DE.

Definition at line 235 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), and ~AliAnalysisTaskMuonResolution().

Double_t AliAnalysisTaskMuonResolution::fMinMomentum
private

use only tracks with momentum higher than this value

Definition at line 256 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetMinMomentum(), and UserExec().

Double_t AliAnalysisTaskMuonResolution::fMinPt
private

use only tracks with pT higher than this value

Definition at line 257 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetMinPt(), and UserExec().

AliMuonEventCuts* AliAnalysisTaskMuonResolution::fMuonEventCuts
private

cuts to select events to be considered

Definition at line 283 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), SetMuonEventCuts(), UserExec(), and ~AliAnalysisTaskMuonResolution().

AliMuonTrackCuts* AliAnalysisTaskMuonResolution::fMuonTrackCuts
private

cuts to select tracks to be considered

Definition at line 284 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), SetMuonTrackCuts(), UserExec(), and ~AliAnalysisTaskMuonResolution().

Int_t AliAnalysisTaskMuonResolution::fNDE
private

total number of DE

Definition at line 270 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), Terminate(), and UserCreateOutputObjects().

Int_t AliAnalysisTaskMuonResolution::fNEvents
private

number of processed events

Definition at line 251 of file AliAnalysisTaskMuonResolution.h.

Referenced by UserExec().

TString AliAnalysisTaskMuonResolution::fNewAlignStorage
private

location of the OCDB storage where to find new MUON/Align/Data (use the default one if empty)

Definition at line 277 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), ReAlign(), and SetAlignStorage().

Int_t AliAnalysisTaskMuonResolution::fNewAlignSubVersion
private

specific subversion of the new MUON/Align/Data/object to load

Definition at line 279 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), ReAlign(), and SetAlignStorage().

Int_t AliAnalysisTaskMuonResolution::fNewAlignVersion
private

specific version of the new MUON/Align/Data/object to load

Definition at line 278 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), ReAlign(), and SetAlignStorage().

AliMUONGeometryTransformer* AliAnalysisTaskMuonResolution::fNewGeoTransformer
private

new geometry transformer containing the new alignment to be applied

Definition at line 281 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), ModifyClusters(), NotifyRun(), and ~AliAnalysisTaskMuonResolution().

Bool_t AliAnalysisTaskMuonResolution::fOCDBLoaded
private

flag telling if the OCDB has been properly loaded or not

Definition at line 269 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), UserCreateOutputObjects(), UserExec(), and UserNotify().

TString AliAnalysisTaskMuonResolution::fOldAlignStorage
private

location of the OCDB storage where to find old MUON/Align/Data (use the default one if empty)

Definition at line 274 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), and ReAlign().

Int_t AliAnalysisTaskMuonResolution::fOldAlignSubVersion
private

specific subversion of the old MUON/Align/Data/object to load

Definition at line 276 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), and ReAlign().

Int_t AliAnalysisTaskMuonResolution::fOldAlignVersion
private

specific version of the old MUON/Align/Data/object to load

Definition at line 275 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), and ReAlign().

AliMUONGeometryTransformer* AliAnalysisTaskMuonResolution::fOldGeoTransformer
private

geometry transformer used to recontruct the present data

Definition at line 280 of file AliAnalysisTaskMuonResolution.h.

Referenced by ModifyClusters(), NotifyRun(), and ~AliAnalysisTaskMuonResolution().

Bool_t AliAnalysisTaskMuonResolution::fPrintClResPerCh
private

print the cluster resolution per chamber

Definition at line 253 of file AliAnalysisTaskMuonResolution.h.

Referenced by NotifyRun(), PrintClusterRes(), and Terminate().

Bool_t AliAnalysisTaskMuonResolution::fPrintClResPerDE
private

print the cluster resolution per DE

Definition at line 254 of file AliAnalysisTaskMuonResolution.h.

Referenced by PrintClusterRes(), and Terminate().

Bool_t AliAnalysisTaskMuonResolution::fPrintDEShift
private

print the DE displacements

Definition at line 268 of file AliAnalysisTaskMuonResolution.h.

Referenced by PrintDEShift(), and Terminate().

Bool_t AliAnalysisTaskMuonResolution::fPrintHalfChShift
private

print the half-chamber displacements

Definition at line 266 of file AliAnalysisTaskMuonResolution.h.

Referenced by PrintHalfChShift(), and Terminate().

Bool_t AliAnalysisTaskMuonResolution::fReAlign
private

flag telling whether to re-align the spectrometer or not before computing resolution

Definition at line 273 of file AliAnalysisTaskMuonResolution.h.

Referenced by ModifyClusters(), NotifyRun(), and ReAlign().

Bool_t AliAnalysisTaskMuonResolution::fRemoveMonoCathCl
private

remove or not the mono-cathod clusters

Definition at line 262 of file AliAnalysisTaskMuonResolution.h.

Referenced by ModifyClusters(), RemoveMonoCathodClusters(), and UserExec().

TObjArray* AliAnalysisTaskMuonResolution::fResiduals
private

List of residual histos.

Definition at line 231 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonResolution().

TObjArray* AliAnalysisTaskMuonResolution::fResidualsVsAngle
private

List of residual vs. track angle histos.

Definition at line 234 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonResolution().

TObjArray* AliAnalysisTaskMuonResolution::fResidualsVsCent
private

List of residual vs. centrality histos.

Definition at line 233 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonResolution().

TObjArray* AliAnalysisTaskMuonResolution::fResidualsVsP
private

List of residual vs. p histos.

Definition at line 232 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonResolution().

Bool_t AliAnalysisTaskMuonResolution::fShiftDE
private

flag telling wether to displace DEs by fDEShift(N)B[i] or not

Definition at line 267 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), ModifyClusters(), and ShiftDE().

Bool_t AliAnalysisTaskMuonResolution::fShiftHalfCh
private

flag telling wether to displace half-chambers by fHalfChShift(N)B[i] or not

Definition at line 265 of file AliAnalysisTaskMuonResolution.h.

Referenced by CheckPadsBelow(), ModifyClusters(), and ShiftHalfCh().

Bool_t AliAnalysisTaskMuonResolution::fShowProgressBar
private

show the progression bar

Definition at line 252 of file AliAnalysisTaskMuonResolution.h.

Referenced by ShowProgressBar(), and UserExec().

Short_t AliAnalysisTaskMuonResolution::fSign
private

use only tracks of this sign

Definition at line 258 of file AliAnalysisTaskMuonResolution.h.

Referenced by SetMuonSign(), and UserExec().

TObjArray* AliAnalysisTaskMuonResolution::fTmpHists
private

List of temporary histograms.

Definition at line 239 of file AliAnalysisTaskMuonResolution.h.

Referenced by GetMeanRMS(), Terminate(), and ~AliAnalysisTaskMuonResolution().

TObjArray* AliAnalysisTaskMuonResolution::fTrackRes
private

List of plots related to track resolution (p, pT, ...)

Definition at line 237 of file AliAnalysisTaskMuonResolution.h.

Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonResolution().

Bool_t AliAnalysisTaskMuonResolution::fUseMCLabel
private

use only tracks with MC label or not

Definition at line 259 of file AliAnalysisTaskMuonResolution.h.

Referenced by UseMCLabel(), and UserExec().


The documentation for this class was generated from the following files: