![]() |
AliPhysics
3aa38c9 (3aa38c9)
|
#include <AliAnalysisTaskMuonPerformance.h>
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 Member Functions | |
AliAnalysisTaskMuonPerformance (const AliAnalysisTaskMuonPerformance &) | |
AliAnalysisTaskMuonPerformance & | operator= (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... | |
TObjArray * | fEfficiencyList |
List of histograms for tracker/trigger efficiencies. More... | |
TObjArray * | fTriggerList |
List of histograms for trigger resolution. More... | |
TObjArray * | fTrackerList |
List of histograms for tracker resolution. More... | |
TObjArray * | fPAtVtxList |
List of graph and canvas about momentum resolution at vertex. More... | |
TObjArray * | fSlopeAtVtxList |
List of graph and canvas about slope resolution at vertex. More... | |
TObjArray * | fEtaAtVtxList |
List of graph and canvas about eta resolution at vertex. More... | |
TObjArray * | fPhiAtVtxList |
List of graph and canvas about phi resolution at vertex. More... | |
TObjArray * | fPAt1stClList |
List of graph and canvas about momentum resolution at first cluster. More... | |
TObjArray * | fSlopeAt1stClList |
List of graph and canvas about slope resolution at first cluster. More... | |
TObjArray * | fDCAList |
List of graph and canvas about DCA. More... | |
TObjArray * | fClusterList |
List of graph and canvas about cluster resolution. More... | |
Analysis task for.
Analysis task to chek the tracker and trigger reconstruction The output is a list of histograms.
""
Definition at line 26 of file AliAnalysisTaskMuonPerformance.h.
anonymous enum |
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.
|
private |
Definition at line 111 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 120 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 130 of file AliAnalysisTaskMuonPerformance.h.
|
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.
|
private |
Definition at line 147 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 220 of file AliAnalysisTaskMuonPerformance.h.
|
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.
|
private |
Definition at line 239 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 253 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 261 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 270 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 279 of file AliAnalysisTaskMuonPerformance.h.
|
private |
Definition at line 294 of file AliAnalysisTaskMuonPerformance.h.
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.
|
virtual |
Destructor
Definition at line 189 of file AliAnalysisTaskMuonPerformance.cxx.
|
private |
|
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().
|
private |
generic function to draw and fit momentum residuals versus momentum
Definition at line 2438 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
private |
generic function to draw momentum residuals versus momentum
Definition at line 2509 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
private |
generic function to draw histograms versus absorber angular region
Definition at line 2404 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
private |
generic function to draw histograms versus position at absorber end
Definition at line 2423 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
inline |
set the flag to select reconstructed tracks still reconstructible for efficiency calculations
Definition at line 51 of file AliAnalysisTaskMuonPerformance.h.
|
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().
|
private |
Fill container info (except kVarMatchMC, kVarMCTrigger, kVarCent, kVarDupliTrg) for reconstructed tracks
Definition at line 2100 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by UserExec().
|
private |
Compute efficiency histograms and save them to the given list
Definition at line 2569 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
private |
fill graphs with residual mean and sigma
Definition at line 2341 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
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().
|
private |
generic function to fit residuals versus momentum with a gaussian
Definition at line 2251 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
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().
|
private |
generic function to fit p*DCA distributions
Definition at line 2298 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
private |
Get bin of theta at absorber end region
Definition at line 2082 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by FillContainerInfoMC(), and FillContainerInfoReco().
|
private |
Calculate the efficiency when cuts on the THnSparse are applied
Definition at line 2003 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by Terminate().
|
virtual |
Use the event handler information to correctly fill the analysis flags:
Definition at line 212 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by SetMCTrigLevelFromMatchTrk().
|
private |
|
private |
Find track mother from kinematics
Definition at line 2030 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by FillContainerInfoMC(), and FillContainerInfoReco().
|
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.
|
inline |
Set location of the default OCDB storage (if not set use "raw://")
Definition at line 33 of file AliAnalysisTaskMuonPerformance.h.
|
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.
Set the binning to be used to study the detector resolution versus momentum
Definition at line 339 of file AliAnalysisTaskMuonPerformance.h.
Referenced by SetRecoParamStorage().
|
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.
|
virtual |
Draw some histogram at the end.
Definition at line 1031 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by SetMCTrigLevelFromMatchTrk().
|
inline |
set the flag to use kinematics from MC track for efficiency calculations when available
Definition at line 54 of file AliAnalysisTaskMuonPerformance.h.
|
virtual |
Create output objects
Definition at line 298 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by NotifyRun(), and SetMCTrigLevelFromMatchTrk().
|
virtual |
Main loop Called for each event
Definition at line 637 of file AliAnalysisTaskMuonPerformance.cxx.
Referenced by SetMCTrigLevelFromMatchTrk().
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().
|
private |
OCDB path to the alignment file.
Definition at line 306 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), and SetAlignStorage().
|
private |
Pointer to the CF container.
Definition at line 323 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonPerformance().
|
private |
List of graph and canvas about cluster resolution.
Definition at line 334 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
highest chamber resolution in both directions
Definition at line 318 of file AliAnalysisTaskMuonPerformance.h.
Referenced by AliAnalysisTaskMuonPerformance(), NotifyRun(), and UserCreateOutputObjects().
|
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().
|
private |
List of graph and canvas about DCA.
Definition at line 333 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
location of the default OCDB storage
Definition at line 305 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), and SetDefaultStorage().
|
private |
ID of DE refered by index in histograms.
Definition at line 321 of file AliAnalysisTaskMuonPerformance.h.
Referenced by AliAnalysisTaskMuonPerformance(), NotifyRun(), and UserCreateOutputObjects().
|
private |
index of DE in histograms refered by ID
Definition at line 320 of file AliAnalysisTaskMuonPerformance.h.
Referenced by AliAnalysisTaskMuonPerformance(), NotifyRun(), and UserExec().
|
private |
List of histograms for tracker/trigger efficiencies.
Definition at line 324 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
select reconstructed tracks still reconstructible
Definition at line 312 of file AliAnalysisTaskMuonPerformance.h.
Referenced by EnforceTrackingCriteria(), and UserExec().
|
private |
List of graph and canvas about eta resolution at vertex.
Definition at line 329 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
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().
|
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().
|
private |
total number of DE
Definition at line 319 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), Terminate(), and UserCreateOutputObjects().
|
private |
number of momentum bins
Definition at line 308 of file AliAnalysisTaskMuonPerformance.h.
Referenced by FitGausResVsMom(), FitLandauGausResVsP(), FitPDCAVsMom(), SetPBins(), Terminate(), and UserCreateOutputObjects().
|
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().
|
private |
List of graph and canvas about momentum resolution at vertex.
Definition at line 327 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
List of graph and canvas about phi resolution at vertex.
Definition at line 330 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
momentum range
Definition at line 309 of file AliAnalysisTaskMuonPerformance.h.
Referenced by AliAnalysisTaskMuonPerformance(), SetPBins(), and UserCreateOutputObjects().
|
private |
OCDB path to the recoParam file.
Definition at line 307 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), and SetRecoParamStorage().
|
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().
|
private |
mask of requested stations
Definition at line 315 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), and UserExec().
|
private |
sigma cut to associate trigger track to triggerable track
Definition at line 317 of file AliAnalysisTaskMuonPerformance.h.
Referenced by NotifyRun(), UserCreateOutputObjects(), and UserExec().
|
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().
|
private |
List of graph and canvas about slope resolution at vertex.
Definition at line 328 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), and ~AliAnalysisTaskMuonPerformance().
|
private |
List of histograms for tracker resolution.
Definition at line 326 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonPerformance().
|
private |
List of histograms for trigger resolution.
Definition at line 325 of file AliAnalysisTaskMuonPerformance.h.
Referenced by Terminate(), UserCreateOutputObjects(), UserExec(), and ~AliAnalysisTaskMuonPerformance().
|
private |
use kinematics from MC track when available
Definition at line 313 of file AliAnalysisTaskMuonPerformance.h.
Referenced by FillContainerInfoReco(), and UseMCKinematics().