AliPhysics  3aa38c9 (3aa38c9)
AliAnalysisTaskMuonPerformance Class Reference

Analysis task for. More...

#include <AliAnalysisTaskMuonPerformance.h>

Inheritance diagram for AliAnalysisTaskMuonPerformance:

Public Types

enum  {
  kVarPt, kVarEta, kVarPhi, kVarThetaZones,
  kVarCharge, kVarHasTracker, kVarTrigger, kVarMotherType,
  kVarMatchMC, kVarMCTrigger, kVarCent, kVarDupliTrg,
  kNvars
}
 
enum  { kStepReconstructed, kStepGeneratedMC, kNsteps }
 

Public Member Functions

 AliAnalysisTaskMuonPerformance ()
 
 AliAnalysisTaskMuonPerformance (const char *name)
 
virtual ~AliAnalysisTaskMuonPerformance ()
 
void SetDefaultStorage (const char *ocdbPath)
 Set location of the default OCDB storage (if not set use "raw://") More...
 
void SetAlignStorage (const char *ocdbPath)
 Set the OCDB path to the alignment file used in the reco (if not set use default storage) More...
 
void SetRecoParamStorage (const char *ocdbPath)
 Set the OCDB path to the recoParam file used in the reco (if not set use default storage) More...
 
void SetPBins (Int_t nBins, Double_t min, Double_t max)
 
void CorrectClusterResForSystematics (Bool_t flag=kTRUE)
 set the flag to add or not the systematic shifts of the residuals to the resolution More...
 
void FitClusterResiduals (Bool_t flag=kTRUE)
 set the flag to fit or not the cluster residuals to extract means and sigmas More...
 
void EnforceTrackingCriteria (Bool_t flag=kTRUE)
 set the flag to select reconstructed tracks still reconstructible for efficiency calculations More...
 
void UseMCKinematics (Bool_t flag=kTRUE)
 set the flag to use kinematics from MC track for efficiency calculations when available More...
 
void SetMCTrigLevelFromMatchTrk (Bool_t flag=kTRUE)
 if trk and trig parts match different MC, set the triggerable level from the MC matching the trk part More...
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
virtual void NotifyRun ()
 

Private Types

enum  {
  kNoMatchTrig, kOtherTrig, kAllPtTrig, kLowPtTrig,
  kHighPtTrig, kNtrigCuts
}
 
enum  {
  kCharmMu, kBeautyMu, kPrimaryMu, kSecondaryMu,
  kRecoHadron, kUnknownPart, kNtrackSources
}
 
enum  {
  kNoMatch, kTrackerOnly, kMatchedSame, kMatchedDiff,
  kTriggerOnly, kNMatchMC
}
 
enum  { kResTrigX11, kResTrigY11, kResTrigSlopeY }
 
enum  {
  kResPAtVtx, kResPAtVtxVsP, kResPAtVtxVsPIn23deg, kResPAtVtxVsPIn310deg,
  kResPAtVtxVsPIn02degMC, kResPAtVtxVsPosAbsEndIn02degMC, kResPAtVtxVsPosAbsEndIn23degMC, kResPAtVtxVsPosAbsEndIn310degMC,
  kResPAtVtxVsAngleAtAbsEnd, kResPAtVtxVsMCAngle, kResPAtVtxVsAngleAtAbsEndVsP, kResPtAtVtxVsPt,
  kResPAt1stCl, kResPAt1stClVsP, kResPtAt1stClVsPt, kResSlopeXAtVtx,
  kResSlopeYAtVtx, kResSlopeXAtVtxVsP, kResSlopeYAtVtxVsP, kResSlopeXAtVtxVsPosAbsEndIn02degMC,
  kResSlopeYAtVtxVsPosAbsEndIn02degMC, kResSlopeXAtVtxVsPosAbsEndIn23degMC, kResSlopeYAtVtxVsPosAbsEndIn23degMC, kResSlopeXAtVtxVsPosAbsEndIn310degMC,
  kResSlopeYAtVtxVsPosAbsEndIn310degMC, kResSlopeXAtVtxVsAngleAtAbsEnd, kResSlopeYAtVtxVsAngleAtAbsEnd, kResSlopeXAtVtxVsMCAngle,
  kResSlopeYAtVtxVsMCAngle, kResSlopeXAt1stCl, kResSlopeYAt1stCl, kResSlopeXAt1stClVsP,
  kResSlopeYAt1stClVsP, kResEtaAtVtx, kResEtaAtVtxVsP, kResEtaAtVtxVsPosAbsEndIn02degMC,
  kResEtaAtVtxVsPosAbsEndIn23degMC, kResEtaAtVtxVsPosAbsEndIn310degMC, kResEtaAtVtxVsAngleAtAbsEnd, kResEtaAtVtxVsMCAngle,
  kResPhiAtVtx, kResPhiAtVtxVsP, kResPhiAtVtxVsPosAbsEndIn02degMC, kResPhiAtVtxVsPosAbsEndIn23degMC,
  kResPhiAtVtxVsPosAbsEndIn310degMC, kResPhiAtVtxVsAngleAtAbsEnd, kResPhiAtVtxVsMCAngle, kPDCA,
  kPDCAVsPIn23deg, kPDCAVsPIn310deg, kPDCAVsPosAbsEndIn02degMC, kPDCAVsPosAbsEndIn23degMC,
  kPDCAVsPosAbsEndIn310degMC, kPDCAVsAngleAtAbsEnd, kPDCAVsMCAngle, kPMCSAngVsPIn23deg,
  kPMCSAngVsPIn310deg, kResClXVsCh, kResClYVsCh, kResClXVsDE,
  kResClYVsDE
}
 
enum  {
  kMeanResPAtVtxVsP, kMostProbResPAtVtxVsP, kSigmaResPAtVtxVsP, kcResPAtVtx,
  kcResPAtVtxMC, kcResPAtVtxVsPosAbsEndMC, kcResPAtVtxVsPIn23deg, kcResPAtVtxVsPIn310deg,
  kcResPAtVtxVsPIn02degMC
}
 
enum  { kMeanResPAt1stClVsP, kSigmaResPAt1stClVsP }
 
enum  {
  kMeanResSlopeXAtVtxVsP, kMeanResSlopeYAtVtxVsP, kSigmaResSlopeXAtVtxVsP, kSigmaResSlopeYAtVtxVsP,
  kcResSlopeXAtVtx, kcResSlopeYAtVtx, kcResSlopeXAtVtxMC, kcResSlopeYAtVtxMC,
  kcResSlopeXAtVtxVsPosAbsEndMC, kcResSlopeYAtVtxVsPosAbsEndMC
}
 
enum  { kMeanResSlopeXAt1stClVsP, kMeanResSlopeYAt1stClVsP, kSigmaResSlopeXAt1stClVsP, kSigmaResSlopeYAt1stClVsP }
 
enum  {
  kMeanResEtaAtVtxVsP, kSigmaResEtaAtVtxVsP, kcResEtaAtVtx, kcResEtaAtVtxMC,
  kcResEtaAtVtxVsPosAbsEndMC
}
 
enum  {
  kMeanResPhiAtVtxVsP, kSigmaResPhiAtVtxVsP, kcResPhiAtVtx, kcResPhiAtVtxMC,
  kcResPhiAtVtxVsPosAbsEndMC
}
 
enum  {
  kMeanPDCAVsPIn23deg, kSigmaPDCAVsPIn23deg, kMeanPDCAVsPIn310deg, kSigmaPDCAVsPIn310deg,
  kMeanPMCSAngVsPIn23deg, kSigmaPMCSAngVsPIn23deg, kMeanPMCSAngVsPIn310deg, kSigmaPMCSAngVsPIn310deg,
  kcPDCA, kcPDCAMC, kcPDCAVsPosAbsEndMC
}
 
enum  {
  kMeanResClXVsCh, kMeanResClYVsCh, kSigmaResClXVsCh, kSigmaResClYVsCh,
  kMeanResClXVsDE, kMeanResClYVsDE, kSigmaResClXVsDE, kSigmaResClYVsDE
}
 

Private Member Functions

 AliAnalysisTaskMuonPerformance (const AliAnalysisTaskMuonPerformance &)
 
AliAnalysisTaskMuonPerformanceoperator= (const AliAnalysisTaskMuonPerformance &)
 
Bool_t GetEfficiency (AliCFEffGrid *efficiency, Double_t &calcEff, Double_t &calcEffErr)
 
Int_t RecoTrackMother (AliMCParticle *mcParticle)
 
Float_t GetBinThetaAbsEnd (Float_t RAtAbsEnd, Bool_t isTheta=kFALSE)
 
void FillContainerInfoReco (Double_t *containerInput, AliESDMuonTrack *esdTrack, Bool_t isValid, Int_t mcID)
 
void FillContainerInfoMC (Double_t *containerInput, AliMCParticle *mcPart)
 
void FitLandauGausResVsP (TH2 *h, const char *fitting, TGraphAsymmErrors *gMean, TGraphAsymmErrors *gMostProb, TGraphAsymmErrors *gSigma)
 
void FitGausResVsMom (TH2 *h, const Double_t mean0, const Double_t sigma0, const char *fitting, TGraphAsymmErrors *gMean, TGraphAsymmErrors *gSigma)
 
void FitPDCAVsMom (TH2 *h, const char *fitting, TGraphAsymmErrors *gMean, TGraphAsymmErrors *gSigma)
 
void FitClusterResidual (TH1 *h, Int_t i, Double_t &sigma, TGraphErrors *gMean, TGraphErrors *gSigma)
 
TCanvas * DrawVsAng (const char *name, const char *title, TH1 *h1, TH2 *h2)
 
TCanvas * DrawVsPos (const char *name, const char *title, TH2 *h1, TH2 *h2, TH2 *h3)
 
TCanvas * DrawFitLandauGausResPVsP (const char *name, const char *title, TH2 *h, const Int_t nBins, const char *fitting)
 
TCanvas * DrawResPVsP (const char *name, const char *title, TH2 *h, const Int_t nBins)
 
void Zoom (TH1 *h, Double_t fractionCut=0.01)
 
void FillEffHistos (AliCFEffGrid *efficiency, const char *suffix, TObjArray *list)
 

Private Attributes

TString fDefaultStorage
 location of the default OCDB storage More...
 
TString fAlignOCDBpath
 OCDB path to the alignment file. More...
 
TString fRecoParamOCDBpath
 OCDB path to the recoParam file. More...
 
Int_t fNPBins
 number of momentum bins More...
 
Double_t fPRange [2]
 momentum range More...
 
Bool_t fCorrectForSystematics
 add or not the systematic shifts of the residuals to the resolution More...
 
Bool_t fFitResiduals
 fit or not the cluster residuals to extract means and sigmas More...
 
Bool_t fEnforceTrkCriteria
 select reconstructed tracks still reconstructible More...
 
Bool_t fUseMCKinematics
 use kinematics from MC track when available More...
 
Bool_t fMCTrigLevelFromMatchTrk
 set the triggerable level from the MC matching the trk part More...
 
UInt_t fRequestedStationMask
 mask of requested stations More...
 
Bool_t fRequest2ChInSameSt45
 2 fired chambers requested in the same station (4 or 5) or not More...
 
Double_t fSigmaCutTrig
 sigma cut to associate trigger track to triggerable track More...
 
Double_t fClusterMaxRes [2]
 highest chamber resolution in both directions 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...
 
AliCFContainer * fCFContainer
 Pointer to the CF container. More...
 
TObjArrayfEfficiencyList
 List of histograms for tracker/trigger efficiencies. More...
 
TObjArrayfTriggerList
 List of histograms for trigger resolution. More...
 
TObjArrayfTrackerList
 List of histograms for tracker resolution. More...
 
TObjArrayfPAtVtxList
 List of graph and canvas about momentum resolution at vertex. More...
 
TObjArrayfSlopeAtVtxList
 List of graph and canvas about slope resolution at vertex. More...
 
TObjArrayfEtaAtVtxList
 List of graph and canvas about eta resolution at vertex. More...
 
TObjArrayfPhiAtVtxList
 List of graph and canvas about phi resolution at vertex. More...
 
TObjArrayfPAt1stClList
 List of graph and canvas about momentum resolution at first cluster. More...
 
TObjArrayfSlopeAt1stClList
 List of graph and canvas about slope resolution at first cluster. More...
 
TObjArrayfDCAList
 List of graph and canvas about DCA. More...
 
TObjArrayfClusterList
 List of graph and canvas about cluster resolution. More...
 

Detailed Description

Analysis task for.

Analysis task to chek the tracker and trigger reconstruction The output is a list of histograms.

Author
Diego Stocco and Philippe Pillot

""

Definition at line 26 of file AliAnalysisTaskMuonPerformance.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kVarPt 

Transverse momentum.

kVarEta 

Pseudo-rapidity.

kVarPhi 

Azimuthal angle.

kVarThetaZones 

Theta at absorber end (4 zones)

kVarCharge 

Particle charge.

kVarHasTracker 

Is tracker track.

kVarTrigger 

Trigger info.

kVarMotherType 

Mother type.

kVarMatchMC 

MC matching flag.

kVarMCTrigger 

MC trigger info.

kVarCent 

Centrality.

kVarDupliTrg 

Flag trigger track already found.

kNvars 

THnSparse dimensions.

Definition at line 64 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
Enumerator
kStepReconstructed 

Reconstructed tracks.

kStepGeneratedMC 

Generated tracks (MC)

kNsteps 

Number of steps.

Definition at line 80 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kNoMatchTrig 

No match with trigger.

kOtherTrig 

Match trigger not passing any Pt threshold (MC)

kAllPtTrig 

Match All Pt.

kLowPtTrig 

Match Low Pt.

kHighPtTrig 

Match High Pt.

kNtrigCuts 

Total number of trigger types.

Definition at line 111 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kCharmMu 

Mu from charm.

kBeautyMu 

Mu from beauty.

kPrimaryMu 

Primary mu.

kSecondaryMu 

Secondary mu.

kRecoHadron 

Reconstructed hadron.

kUnknownPart 

Particle that fails matching kine.

kNtrackSources 

Total number of track sources.

Definition at line 120 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kNoMatch 

not matched with either reconstructible track or triggerable track

kTrackerOnly 

matched with reconstructible track only

kMatchedSame 

matched with reconstructible track and triggerable track of same ID

kMatchedDiff 

matched with reconstructible track and triggerable track of different ID

kTriggerOnly 

matched with triggerable track only

kNMatchMC 

Total number of MC matching flags.

Definition at line 130 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kResTrigX11 

Residual of x position in first trigger chamber.

kResTrigY11 

Residual of y position in first trigger chamber.

kResTrigSlopeY 

Residual of trigger track slope.

Definition at line 140 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kResPAtVtx 

momentum residual at vertex

kResPAtVtxVsP 

momentum residual at vertex versus P

kResPAtVtxVsPIn23deg 

momentum residual at vertex versus P for tracks in ]2,3] degrees at absorber end

kResPAtVtxVsPIn310deg 

momentum residual at vertex versus P for tracks in ]3,10[ degrees at absorber end

kResPAtVtxVsPIn02degMC 

momentum residual at vertex versus P for tracks with MC angle < 2 degrees

kResPAtVtxVsPosAbsEndIn02degMC 

momentum residual at vertex versus position at absorber end for tracks with MC angle <= 2 degrees

kResPAtVtxVsPosAbsEndIn23degMC 

momentum residual at vertex versus position at absorber end for tracks with MC angle in ]2,3] degrees

kResPAtVtxVsPosAbsEndIn310degMC 

momentum residual at vertex versus position at absorber end for tracks with MC angle in ]3,10[ degrees

kResPAtVtxVsAngleAtAbsEnd 

momentum residual at vertex versus angle at absorber end

kResPAtVtxVsMCAngle 

momentum residual at vertex versus MC angle

kResPAtVtxVsAngleAtAbsEndVsP 

momentum residual at vertex versus angle at absorber end versus momentum

kResPtAtVtxVsPt 

transverse momentum residual at vertex versus pT

kResPAt1stCl 

momentum residual at first cluster

kResPAt1stClVsP 

momentum residual at first cluster versus P

kResPtAt1stClVsPt 

transverse momentum residual at first cluster versus pT

kResSlopeXAtVtx 

slope-X residual at vertex

kResSlopeYAtVtx 

slope-Y residual at vertex

kResSlopeXAtVtxVsP 

slope-X residual at vertex versus P

kResSlopeYAtVtxVsP 

slope-Y residual at vertex versus P

kResSlopeXAtVtxVsPosAbsEndIn02degMC 

slope-X residual at vertex versus position at absorber end for tracks with MC angle <= 2 degrees

kResSlopeYAtVtxVsPosAbsEndIn02degMC 

slope-Y residual at vertex versus position at absorber end for tracks with MC angle <= 2 degrees

kResSlopeXAtVtxVsPosAbsEndIn23degMC 

slope-X residual at vertex versus position at absorber end for tracks with MC angle in ]2,3] degrees

kResSlopeYAtVtxVsPosAbsEndIn23degMC 

slope-Y residual at vertex versus position at absorber end for tracks with MC angle in ]2,3] degrees

kResSlopeXAtVtxVsPosAbsEndIn310degMC 

slope-X residual at vertex versus position at absorber end for tracks with MC angle in ]3,10[ degrees

kResSlopeYAtVtxVsPosAbsEndIn310degMC 

slope-Y residual at vertex versus position at absorber end for tracks with MC angle in ]3,10[ degrees

kResSlopeXAtVtxVsAngleAtAbsEnd 

slope-X residual at vertex versus angle at absorber end

kResSlopeYAtVtxVsAngleAtAbsEnd 

slope-Y residual at vertex versus angle at absorber end

kResSlopeXAtVtxVsMCAngle 

slope-X residual at vertex versus MC angle

kResSlopeYAtVtxVsMCAngle 

slope-Y residual at vertex versus MC angle

kResSlopeXAt1stCl 

slope-X residual at first cluster

kResSlopeYAt1stCl 

slope-Y residual at first cluster

kResSlopeXAt1stClVsP 

slope-X residual at first cluster versus P

kResSlopeYAt1stClVsP 

slope-Y residual at first cluster versus P

kResEtaAtVtx 

eta residual at vertex

kResEtaAtVtxVsP 

eta residual at vertex versus P

kResEtaAtVtxVsPosAbsEndIn02degMC 

eta residual at vertex versus position at absorber end for tracks with MC angle <= 2 degrees

kResEtaAtVtxVsPosAbsEndIn23degMC 

eta residual at vertex versus position at absorber end for tracks with MC angle in ]2,3] degrees

kResEtaAtVtxVsPosAbsEndIn310degMC 

eta residual at vertex versus position at absorber end for tracks with MC angle in ]3,10[ degrees

kResEtaAtVtxVsAngleAtAbsEnd 

eta residual at vertex versus angle at absorber end

kResEtaAtVtxVsMCAngle 

eta residual at vertex versus MC angle

kResPhiAtVtx 

phi residual at vertex

kResPhiAtVtxVsP 

phi residual at vertex versus P

kResPhiAtVtxVsPosAbsEndIn02degMC 

phi residual at vertex versus position at absorber end for tracks with MC angle <= 2 degrees

kResPhiAtVtxVsPosAbsEndIn23degMC 

phi residual at vertex versus position at absorber end for tracks with MC angle in ]2,3] degrees

kResPhiAtVtxVsPosAbsEndIn310degMC 

phi residual at vertex versus position at absorber end for tracks with MC angle in ]3,10[ degrees

kResPhiAtVtxVsAngleAtAbsEnd 

phi residual at vertex versus angle at absorber end

kResPhiAtVtxVsMCAngle 

phi residual at vertex versus MC angle

kPDCA 

P*DCA distribution.

kPDCAVsPIn23deg 

P * DCA distribution versus P for tracks in ]2,3] degrees at absorber end.

kPDCAVsPIn310deg 

P * DCA distribution versus P for tracks in ]3,10[ degrees at absorber end.

kPDCAVsPosAbsEndIn02degMC 

P * DCA distribution versus position at absorber end for tracks with MC angle <= 2 degrees.

kPDCAVsPosAbsEndIn23degMC 

P * DCA distribution versus position at absorber end for tracks with MC angle in ]2,3] degrees.

kPDCAVsPosAbsEndIn310degMC 

P * DCA distribution versus position at absorber end for tracks with MC angle in ]3,10[ degrees.

kPDCAVsAngleAtAbsEnd 

P * DCA distribution versus angle at absorber end.

kPDCAVsMCAngle 

P * DCA distribution versus MC angle.

kPMCSAngVsPIn23deg 

P * MCS deviation angle distribution versus P for tracks in ]2,3] degrees at absorber end.

kPMCSAngVsPIn310deg 

P * MCS deviation angle distribution versus P for tracks in ]3,10[ degrees at absorber end.

kResClXVsCh 

cluster residual-X versus chamber

kResClYVsCh 

cluster residual-Y versus chamber

kResClXVsDE 

cluster residual-X versus DE

kResClYVsDE 

cluster residual-Y versus DE

Definition at line 147 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResPAtVtxVsP 

mean momentum residual at vertex versus P

kMostProbResPAtVtxVsP 

most probable momentum residual at vertex versus P

kSigmaResPAtVtxVsP 

relative momentum resolution at vertex versus P

kcResPAtVtx 

momentum residual at vertex in 3 angular regions

kcResPAtVtxMC 

momentum residual at vertex in 3 MC angular regions

kcResPAtVtxVsPosAbsEndMC 

momentum residual at vertex versus position at absorber end in 3 MC angular regions

kcResPAtVtxVsPIn23deg 

momentum residual for tracks between 2 and 3 degrees

kcResPAtVtxVsPIn310deg 

momentum residual for tracks between 3 and 10 degrees

kcResPAtVtxVsPIn02degMC 

momentum residuals for tracks with MC angle < 2 degrees

Definition at line 220 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResPAt1stClVsP 

mean momentum residual at first cluster versus P

kSigmaResPAt1stClVsP 

relative momentum resolution at first cluster versus P

Definition at line 233 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResSlopeXAtVtxVsP 

mean slope-X residual at vertex versus P

kMeanResSlopeYAtVtxVsP 

mean slope-Y residual at vertex versus P

kSigmaResSlopeXAtVtxVsP 

slope-X resolution at vertex versus P

kSigmaResSlopeYAtVtxVsP 

slope-Y resolution at vertex versus P

kcResSlopeXAtVtx 

slope-X residual at vertex in 3 angular regions

kcResSlopeYAtVtx 

slope-Y residual at vertex in 3 angular regions

kcResSlopeXAtVtxMC 

slope-X residual at vertex in 3 MC angular regions

kcResSlopeYAtVtxMC 

slope-Y residual at vertex in 3 MC angular regions

kcResSlopeXAtVtxVsPosAbsEndMC 

slope-X residual at vertex versus position at absorber end in 3 MC angular regions

kcResSlopeYAtVtxVsPosAbsEndMC 

slope-Y residual at vertex versus position at absorber end in 3 MC angular regions

Definition at line 239 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResSlopeXAt1stClVsP 

mean slope-X residual at first cluster versus P

kMeanResSlopeYAt1stClVsP 

mean slope-Y residual at first cluster versus P

kSigmaResSlopeXAt1stClVsP 

slope-X resolution at first cluster versus P

kSigmaResSlopeYAt1stClVsP 

slope-Y resolution at first cluster versus P

Definition at line 253 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResEtaAtVtxVsP 

mean eta residual at vertex versus P

kSigmaResEtaAtVtxVsP 

eta resolution at vertex

kcResEtaAtVtx 

eta residual at vertex in 3 angular regions

kcResEtaAtVtxMC 

eta residual at vertex in 3 MC angular regions

kcResEtaAtVtxVsPosAbsEndMC 

eta residual at vertex versus position at absorber end in 3 MC angular regions

Definition at line 261 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResPhiAtVtxVsP 

mean phi residual at vertex versus P

kSigmaResPhiAtVtxVsP 

phi resolution at vertex

kcResPhiAtVtx 

phi residual at vertex in 3 angular regions

kcResPhiAtVtxMC 

phi residual at vertex in 3 MC angular regions

kcResPhiAtVtxVsPosAbsEndMC 

phi residual at vertex versus position at absorber end in 3 MC angular regions

Definition at line 270 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanPDCAVsPIn23deg 

mean P * DCA versus P for tracks in ]2,3] degrees at absorber end

kSigmaPDCAVsPIn23deg 

P * DCA resolution versus P for tracks in ]2,3] degrees at absorber end.

kMeanPDCAVsPIn310deg 

mean P * DCA versus P for tracks in ]3,10[ degrees at absorber end

kSigmaPDCAVsPIn310deg 

P * DCA resolution versus P for tracks in ]3,10[ degrees at absorber end.

kMeanPMCSAngVsPIn23deg 

mean P * MCS deviation angle versus P for tracks in ]2,3] degrees at absorber end

kSigmaPMCSAngVsPIn23deg 

P * MCS deviation angle dispersion versus P for tracks in ]2,3] degrees at absorber end.

kMeanPMCSAngVsPIn310deg 

mean P * MCS deviation angle versus P for tracks in ]3,10[ degrees at absorber end

kSigmaPMCSAngVsPIn310deg 

P * MCS deviation angle dispersion versus P for tracks in ]3,10[ degrees at absorber end.

kcPDCA 

P * DCA in 3 angular regions.

kcPDCAMC 

P * DCA in 3 MC angular regions.

kcPDCAVsPosAbsEndMC 

P * DCA versus position at absorber end in 3 MC angular regions.

Definition at line 279 of file AliAnalysisTaskMuonPerformance.h.

anonymous enum
private
Enumerator
kMeanResClXVsCh 

mean cluster residual-X versus chamber

kMeanResClYVsCh 

mean cluster residual-Y versus chamber

kSigmaResClXVsCh 

cluster resolution-X versus chamber

kSigmaResClYVsCh 

cluster resolution-Y versus chamber

kMeanResClXVsDE 

mean cluster residual-X versus DE

kMeanResClYVsDE 

mean cluster residual-Y versus DE

kSigmaResClXVsDE 

cluster resolution-X versus DE

kSigmaResClYVsDE 

cluster resolution-Y versus DE

Definition at line 294 of file AliAnalysisTaskMuonPerformance.h.

Constructor & Destructor Documentation

AliAnalysisTaskMuonPerformance::AliAnalysisTaskMuonPerformance ( )

Default Constructor.

Definition at line 94 of file AliAnalysisTaskMuonPerformance.cxx.

AliAnalysisTaskMuonPerformance::AliAnalysisTaskMuonPerformance ( const char *  name)

Constructor.

Definition at line 135 of file AliAnalysisTaskMuonPerformance.cxx.

AliAnalysisTaskMuonPerformance::~AliAnalysisTaskMuonPerformance ( )
virtual

Destructor

Definition at line 189 of file AliAnalysisTaskMuonPerformance.cxx.

AliAnalysisTaskMuonPerformance::AliAnalysisTaskMuonPerformance ( const AliAnalysisTaskMuonPerformance )
private

Member Function Documentation

void AliAnalysisTaskMuonPerformance::CorrectClusterResForSystematics ( Bool_t  flag = kTRUE)
inline

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

Definition at line 45 of file AliAnalysisTaskMuonPerformance.h.

Referenced by AddTaskMuonPerformance().

TCanvas * AliAnalysisTaskMuonPerformance::DrawFitLandauGausResPVsP ( const char *  name,
const char *  title,
TH2 h,
const Int_t  nBins,
const char *  fitting 
)
private

generic function to draw and fit momentum residuals versus momentum

Definition at line 2438 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

TCanvas * AliAnalysisTaskMuonPerformance::DrawResPVsP ( const char *  name,
const char *  title,
TH2 h,
const Int_t  nBins 
)
private

generic function to draw momentum residuals versus momentum

Definition at line 2509 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

TCanvas * AliAnalysisTaskMuonPerformance::DrawVsAng ( const char *  name,
const char *  title,
TH1 h1,
TH2 h2 
)
private

generic function to draw histograms versus absorber angular region

Definition at line 2404 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

TCanvas * AliAnalysisTaskMuonPerformance::DrawVsPos ( const char *  name,
const char *  title,
TH2 h1,
TH2 h2,
TH2 h3 
)
private

generic function to draw histograms versus position at absorber end

Definition at line 2423 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::EnforceTrackingCriteria ( Bool_t  flag = kTRUE)
inline

set the flag to select reconstructed tracks still reconstructible for efficiency calculations

Definition at line 51 of file AliAnalysisTaskMuonPerformance.h.

void AliAnalysisTaskMuonPerformance::FillContainerInfoMC ( Double_t containerInput,
AliMCParticle *  mcPart 
)
private

Fill container info (except kVarMatchMC, kVarMCTrigger, kVarHasTracker and kVarTrigger, kVarCent, kVarDupliTrg) for MC tracks

Definition at line 2130 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by UserExec().

void AliAnalysisTaskMuonPerformance::FillContainerInfoReco ( Double_t containerInput,
AliESDMuonTrack *  esdTrack,
Bool_t  isValid,
Int_t  mcID 
)
private

Fill container info (except kVarMatchMC, kVarMCTrigger, kVarCent, kVarDupliTrg) for reconstructed tracks

Definition at line 2100 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by UserExec().

void AliAnalysisTaskMuonPerformance::FillEffHistos ( AliCFEffGrid *  efficiency,
const char *  suffix,
TObjArray list 
)
private

Compute efficiency histograms and save them to the given list

Definition at line 2569 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::FitClusterResidual ( TH1 h,
Int_t  i,
Double_t sigma,
TGraphErrors gMean,
TGraphErrors gSigma 
)
private

fill graphs with residual mean and sigma

Definition at line 2341 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::FitClusterResiduals ( Bool_t  flag = kTRUE)
inline

set the flag to fit or not the cluster residuals to extract means and sigmas

Definition at line 48 of file AliAnalysisTaskMuonPerformance.h.

Referenced by AddTaskMuonPerformance().

void AliAnalysisTaskMuonPerformance::FitGausResVsMom ( TH2 h,
const Double_t  mean0,
const Double_t  sigma0,
const char *  fitting,
TGraphAsymmErrors gMean,
TGraphAsymmErrors gSigma 
)
private

generic function to fit residuals versus momentum with a gaussian

Definition at line 2251 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::FitLandauGausResVsP ( TH2 h,
const char *  fitting,
TGraphAsymmErrors gMean,
TGraphAsymmErrors gMostProb,
TGraphAsymmErrors gSigma 
)
private

generic function to fit residuals versus momentum with a landau convoluted with a gaussian

Definition at line 2184 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::FitPDCAVsMom ( TH2 h,
const char *  fitting,
TGraphAsymmErrors gMean,
TGraphAsymmErrors gSigma 
)
private

generic function to fit p*DCA distributions

Definition at line 2298 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

Float_t AliAnalysisTaskMuonPerformance::GetBinThetaAbsEnd ( Float_t  RAtAbsEnd,
Bool_t  isTheta = kFALSE 
)
private

Get bin of theta at absorber end region

Definition at line 2082 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by FillContainerInfoMC(), and FillContainerInfoReco().

Bool_t AliAnalysisTaskMuonPerformance::GetEfficiency ( AliCFEffGrid *  efficiency,
Double_t calcEff,
Double_t calcEffErr 
)
private

Calculate the efficiency when cuts on the THnSparse are applied

Definition at line 2003 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by Terminate().

void AliAnalysisTaskMuonPerformance::NotifyRun ( )
virtual

Use the event handler information to correctly fill the analysis flags:

  • check if Monte Carlo information is present

Definition at line 212 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by SetMCTrigLevelFromMatchTrk().

AliAnalysisTaskMuonPerformance& AliAnalysisTaskMuonPerformance::operator= ( const AliAnalysisTaskMuonPerformance )
private
Int_t AliAnalysisTaskMuonPerformance::RecoTrackMother ( AliMCParticle *  mcParticle)
private

Find track mother from kinematics

Definition at line 2030 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by FillContainerInfoMC(), and FillContainerInfoReco().

void AliAnalysisTaskMuonPerformance::SetAlignStorage ( const char *  ocdbPath)
inline

Set the OCDB path to the alignment file used in the reco (if not set use default storage)

Definition at line 36 of file AliAnalysisTaskMuonPerformance.h.

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

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

Definition at line 33 of file AliAnalysisTaskMuonPerformance.h.

void AliAnalysisTaskMuonPerformance::SetMCTrigLevelFromMatchTrk ( Bool_t  flag = kTRUE)
inline

if trk and trig parts match different MC, set the triggerable level from the MC matching the trk part

Definition at line 57 of file AliAnalysisTaskMuonPerformance.h.

void AliAnalysisTaskMuonPerformance::SetPBins ( Int_t  nBins,
Double_t  min,
Double_t  max 
)
inline

Set the binning to be used to study the detector resolution versus momentum

Definition at line 339 of file AliAnalysisTaskMuonPerformance.h.

Referenced by SetRecoParamStorage().

void AliAnalysisTaskMuonPerformance::SetRecoParamStorage ( const char *  ocdbPath)
inline

Set the OCDB path to the recoParam file used in the reco (if not set use default storage)

Definition at line 39 of file AliAnalysisTaskMuonPerformance.h.

void AliAnalysisTaskMuonPerformance::Terminate ( Option_t option)
virtual

Draw some histogram at the end.

Definition at line 1031 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by SetMCTrigLevelFromMatchTrk().

void AliAnalysisTaskMuonPerformance::UseMCKinematics ( Bool_t  flag = kTRUE)
inline

set the flag to use kinematics from MC track for efficiency calculations when available

Definition at line 54 of file AliAnalysisTaskMuonPerformance.h.

void AliAnalysisTaskMuonPerformance::UserCreateOutputObjects ( )
virtual

Create output objects

Definition at line 298 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by NotifyRun(), and SetMCTrigLevelFromMatchTrk().

void AliAnalysisTaskMuonPerformance::UserExec ( Option_t option)
virtual

Main loop Called for each event

Definition at line 637 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by SetMCTrigLevelFromMatchTrk().

void AliAnalysisTaskMuonPerformance::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 2541 of file AliAnalysisTaskMuonPerformance.cxx.

Referenced by FitClusterResidual().

Member Data Documentation

TString AliAnalysisTaskMuonPerformance::fAlignOCDBpath
private

OCDB path to the alignment file.

Definition at line 306 of file AliAnalysisTaskMuonPerformance.h.

Referenced by NotifyRun(), and SetAlignStorage().

AliCFContainer* AliAnalysisTaskMuonPerformance::fCFContainer
private

Pointer to the CF container.

Definition at line 323 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fClusterList
private

List of graph and canvas about cluster resolution.

Definition at line 334 of file AliAnalysisTaskMuonPerformance.h.

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

Double_t AliAnalysisTaskMuonPerformance::fClusterMaxRes[2]
private

highest chamber resolution in both directions

Definition at line 318 of file AliAnalysisTaskMuonPerformance.h.

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

Bool_t AliAnalysisTaskMuonPerformance::fCorrectForSystematics
private

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

Definition at line 310 of file AliAnalysisTaskMuonPerformance.h.

Referenced by CorrectClusterResForSystematics(), and FitClusterResidual().

TObjArray* AliAnalysisTaskMuonPerformance::fDCAList
private

List of graph and canvas about DCA.

Definition at line 333 of file AliAnalysisTaskMuonPerformance.h.

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

TString AliAnalysisTaskMuonPerformance::fDefaultStorage
private

location of the default OCDB storage

Definition at line 305 of file AliAnalysisTaskMuonPerformance.h.

Referenced by NotifyRun(), and SetDefaultStorage().

Int_t AliAnalysisTaskMuonPerformance::fDEIds[200]
private

ID of DE refered by index in histograms.

Definition at line 321 of file AliAnalysisTaskMuonPerformance.h.

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

Int_t AliAnalysisTaskMuonPerformance::fDEIndices[1100]
private

index of DE in histograms refered by ID

Definition at line 320 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fEfficiencyList
private

List of histograms for tracker/trigger efficiencies.

Definition at line 324 of file AliAnalysisTaskMuonPerformance.h.

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

Bool_t AliAnalysisTaskMuonPerformance::fEnforceTrkCriteria
private

select reconstructed tracks still reconstructible

Definition at line 312 of file AliAnalysisTaskMuonPerformance.h.

Referenced by EnforceTrackingCriteria(), and UserExec().

TObjArray* AliAnalysisTaskMuonPerformance::fEtaAtVtxList
private

List of graph and canvas about eta resolution at vertex.

Definition at line 329 of file AliAnalysisTaskMuonPerformance.h.

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

Bool_t AliAnalysisTaskMuonPerformance::fFitResiduals
private

fit or not the cluster residuals to extract means and sigmas

Definition at line 311 of file AliAnalysisTaskMuonPerformance.h.

Referenced by FitClusterResidual(), and FitClusterResiduals().

Bool_t AliAnalysisTaskMuonPerformance::fMCTrigLevelFromMatchTrk
private

set the triggerable level from the MC matching the trk part

Definition at line 314 of file AliAnalysisTaskMuonPerformance.h.

Referenced by SetMCTrigLevelFromMatchTrk(), and UserExec().

Int_t AliAnalysisTaskMuonPerformance::fNDE
private

total number of DE

Definition at line 319 of file AliAnalysisTaskMuonPerformance.h.

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

Int_t AliAnalysisTaskMuonPerformance::fNPBins
private
TObjArray* AliAnalysisTaskMuonPerformance::fPAt1stClList
private

List of graph and canvas about momentum resolution at first cluster.

Definition at line 331 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fPAtVtxList
private

List of graph and canvas about momentum resolution at vertex.

Definition at line 327 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fPhiAtVtxList
private

List of graph and canvas about phi resolution at vertex.

Definition at line 330 of file AliAnalysisTaskMuonPerformance.h.

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

Double_t AliAnalysisTaskMuonPerformance::fPRange[2]
private

momentum range

Definition at line 309 of file AliAnalysisTaskMuonPerformance.h.

Referenced by AliAnalysisTaskMuonPerformance(), SetPBins(), and UserCreateOutputObjects().

TString AliAnalysisTaskMuonPerformance::fRecoParamOCDBpath
private

OCDB path to the recoParam file.

Definition at line 307 of file AliAnalysisTaskMuonPerformance.h.

Referenced by NotifyRun(), and SetRecoParamStorage().

Bool_t AliAnalysisTaskMuonPerformance::fRequest2ChInSameSt45
private

2 fired chambers requested in the same station (4 or 5) or not

Definition at line 316 of file AliAnalysisTaskMuonPerformance.h.

Referenced by NotifyRun(), and UserExec().

UInt_t AliAnalysisTaskMuonPerformance::fRequestedStationMask
private

mask of requested stations

Definition at line 315 of file AliAnalysisTaskMuonPerformance.h.

Referenced by NotifyRun(), and UserExec().

Double_t AliAnalysisTaskMuonPerformance::fSigmaCutTrig
private

sigma cut to associate trigger track to triggerable track

Definition at line 317 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fSlopeAt1stClList
private

List of graph and canvas about slope resolution at first cluster.

Definition at line 332 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fSlopeAtVtxList
private

List of graph and canvas about slope resolution at vertex.

Definition at line 328 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fTrackerList
private

List of histograms for tracker resolution.

Definition at line 326 of file AliAnalysisTaskMuonPerformance.h.

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

TObjArray* AliAnalysisTaskMuonPerformance::fTriggerList
private

List of histograms for trigger resolution.

Definition at line 325 of file AliAnalysisTaskMuonPerformance.h.

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

Bool_t AliAnalysisTaskMuonPerformance::fUseMCKinematics
private

use kinematics from MC track when available

Definition at line 313 of file AliAnalysisTaskMuonPerformance.h.

Referenced by FillContainerInfoReco(), and UseMCKinematics().


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