AliPhysics  vAN-20150507 (0645659)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliAnalysisTaskMuonQA Class Reference

Quality assurance of MUON ESDs. More...

#include <AliAnalysisTaskMuonQA.h>

Inheritance diagram for AliAnalysisTaskMuonQA:

Public Member Functions

 AliAnalysisTaskMuonQA ()
 
 AliAnalysisTaskMuonQA (const char *name)
 
virtual ~AliAnalysisTaskMuonQA ()
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *)
 
virtual void Terminate (Option_t *)
 
virtual void NotifyRun ()
 
void SelectCharge (Short_t charge=0)
 Select negative (<0), positive (>0) or all (==0) tracks to fill histograms. More...
 
void SelectPhysics (Bool_t flag=kTRUE)
 Select events passing the physics selection to fill histograms. More...
 
void SelectTrigger (Bool_t flag=kTRUE, UInt_t mask=AliVEvent::kMUON)
 
void SelectMatched (Bool_t flag=kTRUE)
 Select track matching the trigger to fill histograms. More...
 
void ApplyAccCut (Bool_t flag=kTRUE)
 Use only tracks passing the acceptance cuts (Rabs, eta) More...
 
void SetTrackCuts (AliMuonTrackCuts *trackCuts)
 
AliMuonTrackCuts * GetTrackCuts ()
 Get track cuts. More...
 

Private Types

enum  eList {
  kNTracks = 0, kMatchTrig = 1, kSign = 2, kDCA = 3,
  kP = 4, kPMuPlus = 5, kPMuMinus = 6, kPt = 7,
  kPtMuPlus = 8, kPtMuMinus = 9, kRapidity = 10, kThetaX = 11,
  kThetaY = 12, kChi2 = 13, kProbChi2 = 14, kNClustersPerTrack = 15,
  kNChamberHitPerTrack = 16, kPtMatchLpt = 17, kPtMatchHpt = 18, kPtMuPlusMatchLpt = 19,
  kPtMuPlusMatchHpt = 20, kPtMuMinusMatchLpt = 21, kPtMuMinusMatchHpt = 22, kMuonTrig = 23
}
 
enum  eListExpert {
  kNClustersPerCh = 0, kNClustersPerDE = 1, kClusterHitMapInCh = 2, kClusterChargeInCh = 12,
  kClusterChargePerDE = 22, kClusterSizeInCh = 23, kClusterSizePerDE = 33
}
 
enum  eListNorm {
  kClusterChargePerChMean = 0, kClusterChargePerChSigma = 1, kClusterChargePerDEMean = 2, kClusterChargePerDESigma = 3,
  kClusterSizePerChMean = 4, kClusterSizePerChSigma = 5, kClusterSizePerDEMean = 6, kClusterSizePerDESigma = 7,
  kNClustersPerChPerTrack = 8, kNClustersPerDEPerTrack = 9
}
 

Private Member Functions

 AliAnalysisTaskMuonQA (const AliAnalysisTaskMuonQA &rhs)
 Not implemented. More...
 
AliAnalysisTaskMuonQAoperator= (const AliAnalysisTaskMuonQA &rhs)
 Not implemented. More...
 
Double_t ChangeThetaRange (Double_t theta)
 
TList * BuildListOfAllTriggerCases (TString &FiredTriggerClasses)
 
 ClassDef (AliAnalysisTaskMuonQA, 8)
 

Private Attributes

TObjArray * fList
 List of output object for everybody. More...
 
TObjArray * fListExpert
 List of output object for experts. More...
 
TObjArray * fListNorm
 Normalized histograms. More...
 
AliCounterCollection * fTrackCounters
 track statistics More...
 
AliCounterCollection * fEventCounters
 event statistics More...
 
Short_t fSelectCharge
 Fill histograms only with negative/position tracks (0=all) More...
 
Bool_t fSelectPhysics
 Fill histograms only with events passing the physics selection. More...
 
Bool_t fSelectTrigger
 Fill histograms only with events passing the trigger selection. More...
 
UInt_t fTriggerMask
 Trigger mask to be used when selecting events. More...
 
Bool_t fSelectMatched
 Fill histograms only with tracks matching the trigger. More...
 
Bool_t fApplyAccCut
 use only tracks passing the acceptance cuts (Rabs, eta) More...
 
AliMuonTrackCuts * fTrackCuts
 Track cuts. More...
 
TArrayI fMuonTrigIndex
 Combined muon trigger index. More...
 

Static Private Attributes

static const Int_t nCh
 number of tracking chambers More...
 
static const Int_t nDE
 number of DE More...
 
static const Float_t dMax [5] = {176.6, 229.0, 308.84, 418.2, 522.0}
 maximum diameter of each station More...
 

Detailed Description

Quality assurance of MUON ESDs.

Definition at line 22 of file AliAnalysisTaskMuonQA.h.

Member Enumeration Documentation

Enumerator
kNTracks 

number of tracks

kMatchTrig 

number of tracks matched with trigger

kSign 

track sign

kDCA 

DCA distribution.

kP 

P distribution.

kPMuPlus 

P distribution of mu+.

kPMuMinus 

P distribution of mu-.

kPt 

Pt distribution.

kPtMuPlus 

Pt distribution of mu+.

kPtMuMinus 

Pt distribution of mu-.

kRapidity 

rapidity distribution

kThetaX 

thetaX distribution

kThetaY 

thetaY distribution

kChi2 

normalized chi2 distribution

kProbChi2 

distribution of probability of chi2

kNClustersPerTrack 

number of clusters per track

kNChamberHitPerTrack 

number of chamber hit per track

kPtMatchLpt 

Pt distribution match Lpt.

kPtMatchHpt 

Pt distribution match Hpt.

kPtMuPlusMatchLpt 

Pt distribution of mu+ match Lpt.

kPtMuPlusMatchHpt 

Pt distribution of mu+ match Hpt.

kPtMuMinusMatchLpt 

Pt distribution of mu- match Lpt.

kPtMuMinusMatchHpt 

Pt distribution of mu- match Hpt.

kMuonTrig 

Muon triggers.

Definition at line 69 of file AliAnalysisTaskMuonQA.h.

Enumerator
kNClustersPerCh 

number of clusters per chamber

kNClustersPerDE 

number of clusters per DE

kClusterHitMapInCh 

cluster position distribution in chamber i

kClusterChargeInCh 

cluster charge distribution in chamber i

kClusterChargePerDE 

cluster charge distribution per DE

kClusterSizeInCh 

cluster size distribution in chamber i

kClusterSizePerDE 

cluster size distribution per DE

Definition at line 96 of file AliAnalysisTaskMuonQA.h.

Enumerator
kClusterChargePerChMean 

cluster charge per Ch: mean

kClusterChargePerChSigma 

cluster charge per Ch: dispersion

kClusterChargePerDEMean 

cluster charge per DE: mean

kClusterChargePerDESigma 

cluster charge per DE: dispersion

kClusterSizePerChMean 

cluster size per Ch: mean

kClusterSizePerChSigma 

cluster size per Ch: dispersion

kClusterSizePerDEMean 

cluster size per DE: mean

kClusterSizePerDESigma 

cluster size per DE: dispersion

kNClustersPerChPerTrack 

number of clusters per chamber per track

kNClustersPerDEPerTrack 

number of clusters per DE per track

Definition at line 106 of file AliAnalysisTaskMuonQA.h.

Constructor & Destructor Documentation

AliAnalysisTaskMuonQA::AliAnalysisTaskMuonQA ( )

Definition at line 65 of file AliAnalysisTaskMuonQA.cxx.

AliAnalysisTaskMuonQA::AliAnalysisTaskMuonQA ( const char *  name)

Constructor

Definition at line 85 of file AliAnalysisTaskMuonQA.cxx.

AliAnalysisTaskMuonQA::~AliAnalysisTaskMuonQA ( )
virtual

Destructor

Definition at line 119 of file AliAnalysisTaskMuonQA.cxx.

AliAnalysisTaskMuonQA::AliAnalysisTaskMuonQA ( const AliAnalysisTaskMuonQA rhs)
private

Not implemented.

Member Function Documentation

void AliAnalysisTaskMuonQA::ApplyAccCut ( Bool_t  flag = kTRUE)
inline

Use only tracks passing the acceptance cuts (Rabs, eta)

Definition at line 49 of file AliAnalysisTaskMuonQA.h.

TList * AliAnalysisTaskMuonQA::BuildListOfAllTriggerCases ( TString &  FiredTriggerClasses)
private

build the list of trigger for the counters from the fired trigger classes returned TList must be deleted by user

Definition at line 757 of file AliAnalysisTaskMuonQA.cxx.

Referenced by UserExec().

Double_t AliAnalysisTaskMuonQA::ChangeThetaRange ( Double_t  theta)
private

set theta range from -180 to +180 degrees

Definition at line 746 of file AliAnalysisTaskMuonQA.cxx.

Referenced by UserExec().

AliAnalysisTaskMuonQA::ClassDef ( AliAnalysisTaskMuonQA  ,
 
)
private
AliMuonTrackCuts* AliAnalysisTaskMuonQA::GetTrackCuts ( )
inline

Get track cuts.

Definition at line 54 of file AliAnalysisTaskMuonQA.h.

void AliAnalysisTaskMuonQA::NotifyRun ( )
virtual

Notify run

Definition at line 134 of file AliAnalysisTaskMuonQA.cxx.

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

Not implemented.

void AliAnalysisTaskMuonQA::SelectCharge ( Short_t  charge = 0)
inline

Select negative (<0), positive (>0) or all (==0) tracks to fill histograms.

Definition at line 35 of file AliAnalysisTaskMuonQA.h.

void AliAnalysisTaskMuonQA::SelectMatched ( Bool_t  flag = kTRUE)
inline

Select track matching the trigger to fill histograms.

Definition at line 46 of file AliAnalysisTaskMuonQA.h.

void AliAnalysisTaskMuonQA::SelectPhysics ( Bool_t  flag = kTRUE)
inline

Select events passing the physics selection to fill histograms.

Definition at line 38 of file AliAnalysisTaskMuonQA.h.

void AliAnalysisTaskMuonQA::SelectTrigger ( Bool_t  flag = kTRUE,
UInt_t  mask = AliVEvent::kMUON 
)
inline

Select events belonging to at least one of the trigger classes selected by the mask to fill histograms:

  • if the physics selection is used, apply the mask to the trigger word returned by the physics selection
  • if not, apply the mask to the trigger word of the physics selection task

Definition at line 43 of file AliAnalysisTaskMuonQA.h.

void AliAnalysisTaskMuonQA::SetTrackCuts ( AliMuonTrackCuts *  trackCuts)

Set track cuts

Definition at line 142 of file AliAnalysisTaskMuonQA.cxx.

void AliAnalysisTaskMuonQA::Terminate ( Option_t *  )
virtual

Normalize histograms Draw result to the screen Print statistics

Definition at line 603 of file AliAnalysisTaskMuonQA.cxx.

void AliAnalysisTaskMuonQA::UserCreateOutputObjects ( )
virtual

Create histograms and counters

Definition at line 151 of file AliAnalysisTaskMuonQA.cxx.

void AliAnalysisTaskMuonQA::UserExec ( Option_t *  )
virtual

Called for each event

Definition at line 317 of file AliAnalysisTaskMuonQA.cxx.

Member Data Documentation

const Float_t AliAnalysisTaskMuonQA::dMax = {176.6, 229.0, 308.84, 418.2, 522.0}
staticprivate

maximum diameter of each station

Definition at line 138 of file AliAnalysisTaskMuonQA.h.

Referenced by UserCreateOutputObjects().

Bool_t AliAnalysisTaskMuonQA::fApplyAccCut
private

use only tracks passing the acceptance cuts (Rabs, eta)

Definition at line 131 of file AliAnalysisTaskMuonQA.h.

Referenced by ApplyAccCut(), and UserExec().

AliCounterCollection* AliAnalysisTaskMuonQA::fEventCounters
private

event statistics

Definition at line 124 of file AliAnalysisTaskMuonQA.h.

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

TObjArray* AliAnalysisTaskMuonQA::fList
private

List of output object for everybody.

Definition at line 119 of file AliAnalysisTaskMuonQA.h.

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

TObjArray* AliAnalysisTaskMuonQA::fListExpert
private

List of output object for experts.

Definition at line 120 of file AliAnalysisTaskMuonQA.h.

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

TObjArray* AliAnalysisTaskMuonQA::fListNorm
private

Normalized histograms.

Definition at line 121 of file AliAnalysisTaskMuonQA.h.

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

TArrayI AliAnalysisTaskMuonQA::fMuonTrigIndex
private

Combined muon trigger index.

Definition at line 134 of file AliAnalysisTaskMuonQA.h.

Referenced by UserCreateOutputObjects(), and UserExec().

Short_t AliAnalysisTaskMuonQA::fSelectCharge
private

Fill histograms only with negative/position tracks (0=all)

Definition at line 126 of file AliAnalysisTaskMuonQA.h.

Referenced by SelectCharge(), and UserExec().

Bool_t AliAnalysisTaskMuonQA::fSelectMatched
private

Fill histograms only with tracks matching the trigger.

Definition at line 130 of file AliAnalysisTaskMuonQA.h.

Referenced by SelectMatched(), and UserExec().

Bool_t AliAnalysisTaskMuonQA::fSelectPhysics
private

Fill histograms only with events passing the physics selection.

Definition at line 127 of file AliAnalysisTaskMuonQA.h.

Referenced by SelectPhysics(), and UserExec().

Bool_t AliAnalysisTaskMuonQA::fSelectTrigger
private

Fill histograms only with events passing the trigger selection.

Definition at line 128 of file AliAnalysisTaskMuonQA.h.

Referenced by SelectTrigger(), and UserExec().

AliCounterCollection* AliAnalysisTaskMuonQA::fTrackCounters
private

track statistics

Definition at line 123 of file AliAnalysisTaskMuonQA.h.

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

AliMuonTrackCuts* AliAnalysisTaskMuonQA::fTrackCuts
private
UInt_t AliAnalysisTaskMuonQA::fTriggerMask
private

Trigger mask to be used when selecting events.

Definition at line 129 of file AliAnalysisTaskMuonQA.h.

Referenced by SelectTrigger(), and UserExec().

const Int_t AliAnalysisTaskMuonQA::nCh
staticprivate

number of tracking chambers

Definition at line 136 of file AliAnalysisTaskMuonQA.h.

Referenced by Terminate(), and UserCreateOutputObjects().

const Int_t AliAnalysisTaskMuonQA::nDE
staticprivate

number of DE

Definition at line 137 of file AliAnalysisTaskMuonQA.h.

Referenced by Terminate(), and UserCreateOutputObjects().


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