AliPhysics  9b6b435 (9b6b435)
AliAnalysisTaskSEDStarSpectra Class Reference

#include <AliAnalysisTaskSEDStarSpectra.h>

Inheritance diagram for AliAnalysisTaskSEDStarSpectra:

Public Member Functions

 AliAnalysisTaskSEDStarSpectra ()
 
 AliAnalysisTaskSEDStarSpectra (const Char_t *name, AliRDHFCutsDStartoKpipi *cuts)
 
virtual ~AliAnalysisTaskSEDStarSpectra ()
 
virtual void UserCreateOutputObjects ()
 Implementation of interface methods. More...
 
virtual void Init ()
 
virtual void LocalInit ()
 
virtual void UserExec (Option_t *option)
 
virtual void Terminate (Option_t *option)
 
void SetAODMismatchProtection (Int_t opt=1)
 
void SideBandBackground (AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout, TH1F **histlist)
 Background simulation. More...
 
void WrongSignForDStar (AliAODRecoCascadeHF *part, AliRDHFCutsDStartoKpipi *cuts, TList *listout)
 
void FillSpectrum (AliAODRecoCascadeHF *part, Int_t isDStar, AliRDHFCutsDStartoKpipi *cuts, Int_t isSel, TList *listout, TH1F **histlist)
 histos More...
 
void DefineHistograms ()
 
Int_t CheckOrigin (TClonesArray *arrayMC, const AliAODMCParticle *mcPartCandidate) const
 
void CreateImpactParameterHistos ()
 
void SetAnalysisType (Int_t anaType)
 set analysis type More...
 
void PrintAnalysisType ()
 
void SetMC (Bool_t theMCon)
 set MC usage More...
 
Bool_t GetMC () const
 
void SetRareSearch (Bool_t theRareOn)
 set rare mesons More...
 
Bool_t GetRareSearch () const
 
void SetDoImpactParameterHistos (Bool_t doImp=kTRUE)
 impact par study More...
 
Bool_t GetDoImpactParameterHistos () const
 
Float_t GetTrueImpactParameterD0 (const AliAODMCHeader *mcHeader, TClonesArray *arrayMC, const AliAODMCParticle *partDp) const
 
void SetDoDStarVsY (Bool_t theDStarVsY)
 

Private Types

enum  {
  kDzMass, kDstarMass, kDeltaMass, kptMass,
  ketaMass, kDzSgn, kDstarSgn, kDeltaSgn,
  kptSgn, ketaSgn, kDzBkg, kDstarBkg,
  kDeltaBkg, kptBkg, ketaBkg, kSideBandMass,
  kWrongSignMass
}
 

Private Member Functions

 AliAnalysisTaskSEDStarSpectra (const AliAnalysisTaskSEDStarSpectra &source)
 
AliAnalysisTaskSEDStarSpectraoperator= (const AliAnalysisTaskSEDStarSpectra &source)
 

Private Attributes

TH1F ** fAllhist
 
TH1F ** fPIDhist
 
Int_t fNPtBins
 
Int_t fEvents
 
Int_t fAnalysis
 n. of events More...
 
Double_t fD0Window
 0: HD; 1: UU; More...
 
Double_t fPeakWindow
 select width on D0Mass More...
 
Bool_t fUseMCInfo
 select width on DstarMass More...
 
Bool_t fDoSearch
 Use MC info. More...
 
TListfOutput
 Rare mesons. More...
 
TListfOutputAll
 ! User output2 More...
 
TListfOutputPID
 ! User output3 More...
 
Int_t fNSigma
 
AliRDHFCutsDStartoKpipifCuts
 n sigma for kaon PID More...
 
TH1F * fCEvents
 Cuts - sent to output slot 3. More...
 
TH2FfTrueDiff2
 ! More...
 
TH1F * fDeltaMassD1
 ! More...
 
AliNormalizationCounterfCounter
 !Counter for normalization slot 4 More...
 
Int_t fAODProtection
 
Bool_t fDoImpParDstar
 -1: no protection, 0: check AOD/dAOD nEvents only, 1: check AOD/dAOD nEvents + TProcessID More...
 
Int_t fNImpParBins
 imppar studies More...
 
Float_t fLowerImpPar
 nunber of bins in impact parameter histos More...
 
Float_t fHigherImpPar
 lower limit in impact parameter (um) More...
 
Bool_t fDoDStarVsY
 higher limit in impact parameter (um) More...
 
THnSparseF * fHistMassPtImpParTCDs [5]
 flag to enable D* vs y More...
 

Detailed Description

Definition at line 31 of file AliAnalysisTaskSEDStarSpectra.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
kDzMass 
kDstarMass 
kDeltaMass 
kptMass 
ketaMass 
kDzSgn 
kDstarSgn 
kDeltaSgn 
kptSgn 
ketaSgn 
kDzBkg 
kDstarBkg 
kDeltaBkg 
kptBkg 
ketaBkg 
kSideBandMass 
kWrongSignMass 

Definition at line 82 of file AliAnalysisTaskSEDStarSpectra.h.

Constructor & Destructor Documentation

AliAnalysisTaskSEDStarSpectra::AliAnalysisTaskSEDStarSpectra ( )

Default ctor

Definition at line 71 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetDoDStarVsY().

AliAnalysisTaskSEDStarSpectra::AliAnalysisTaskSEDStarSpectra ( const Char_t name,
AliRDHFCutsDStartoKpipi cuts 
)

Constructor. Initialization of Inputs and Outputs

Definition at line 105 of file AliAnalysisTaskSEDStarSpectra.cxx.

AliAnalysisTaskSEDStarSpectra::~AliAnalysisTaskSEDStarSpectra ( )
virtual

destructor

Definition at line 149 of file AliAnalysisTaskSEDStarSpectra.cxx.

AliAnalysisTaskSEDStarSpectra::AliAnalysisTaskSEDStarSpectra ( const AliAnalysisTaskSEDStarSpectra source)
private

Member Function Documentation

Int_t AliAnalysisTaskSEDStarSpectra::CheckOrigin ( TClonesArray *  arrayMC,
const AliAODMCParticle *  mcPartCandidate 
) const

Definition at line 1134 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection(), and UserExec().

void AliAnalysisTaskSEDStarSpectra::CreateImpactParameterHistos ( )

Histos for impact paramter study

Definition at line 1207 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection(), and UserCreateOutputObjects().

void AliAnalysisTaskSEDStarSpectra::DefineHistograms ( )

Create histograms

Definition at line 616 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection(), and UserCreateOutputObjects().

void AliAnalysisTaskSEDStarSpectra::FillSpectrum ( AliAODRecoCascadeHF part,
Int_t  isDStar,
AliRDHFCutsDStartoKpipi cuts,
Int_t  isSel,
TList listout,
TH1F **  histlist 
)

histos

Fill histos for D* spectrum

Definition at line 973 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection(), and UserExec().

Bool_t AliAnalysisTaskSEDStarSpectra::GetDoImpactParameterHistos ( ) const
inline

Definition at line 71 of file AliAnalysisTaskSEDStarSpectra.h.

Bool_t AliAnalysisTaskSEDStarSpectra::GetMC ( ) const
inline

Definition at line 65 of file AliAnalysisTaskSEDStarSpectra.h.

Bool_t AliAnalysisTaskSEDStarSpectra::GetRareSearch ( ) const
inline

Definition at line 68 of file AliAnalysisTaskSEDStarSpectra.h.

Float_t AliAnalysisTaskSEDStarSpectra::GetTrueImpactParameterD0 ( const AliAODMCHeader *  mcHeader,
TClonesArray *  arrayMC,
const AliAODMCParticle *  partDp 
) const

true impact parameter calculation

Definition at line 1165 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by GetDoImpactParameterHistos(), and UserExec().

void AliAnalysisTaskSEDStarSpectra::Init ( )
virtual

Initialization

Definition at line 173 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by LocalInit().

virtual void AliAnalysisTaskSEDStarSpectra::LocalInit ( )
inlinevirtual

Definition at line 43 of file AliAnalysisTaskSEDStarSpectra.h.

AliAnalysisTaskSEDStarSpectra& AliAnalysisTaskSEDStarSpectra::operator= ( const AliAnalysisTaskSEDStarSpectra source)
private

Referenced by SetDoDStarVsY().

void AliAnalysisTaskSEDStarSpectra::PrintAnalysisType ( )
inline

Definition at line 61 of file AliAnalysisTaskSEDStarSpectra.h.

void AliAnalysisTaskSEDStarSpectra::SetAnalysisType ( Int_t  anaType)
inline

set analysis type

Definition at line 60 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AddTaskDStarSpectra().

void AliAnalysisTaskSEDStarSpectra::SetAODMismatchProtection ( Int_t  opt = 1)
inline

Definition at line 48 of file AliAnalysisTaskSEDStarSpectra.h.

void AliAnalysisTaskSEDStarSpectra::SetDoDStarVsY ( Bool_t  theDStarVsY)
inline

Definition at line 75 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AddTaskDStarSpectra().

void AliAnalysisTaskSEDStarSpectra::SetDoImpactParameterHistos ( Bool_t  doImp = kTRUE)
inline

impact par study

Definition at line 70 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AddTaskDStarSpectra().

void AliAnalysisTaskSEDStarSpectra::SetMC ( Bool_t  theMCon)
inline

set MC usage

Definition at line 64 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AddTaskDStarSpectra().

void AliAnalysisTaskSEDStarSpectra::SetRareSearch ( Bool_t  theRareOn)
inline

set rare mesons

Definition at line 67 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AddTaskDStarSpectra().

void AliAnalysisTaskSEDStarSpectra::SideBandBackground ( AliAODRecoCascadeHF part,
AliRDHFCutsDStartoKpipi cuts,
Int_t  isSel,
TList listout,
TH1F **  histlist 
)

Background simulation.

D* side band background method. Two side bands, in M(Kpi) are taken at ~6 sigmas (expected detector resolution) on the left and right frm the D0 mass. Each band has a width of ~5 sigmas. Two band needed for opening angle considerations

Definition at line 1042 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection(), and UserExec().

void AliAnalysisTaskSEDStarSpectra::Terminate ( Option_t option)
virtual

The Terminate() function is the last function to be called during a query. It always runs on the client, it can be used to present the results graphically or save the results to file.

Definition at line 550 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by LocalInit().

void AliAnalysisTaskSEDStarSpectra::UserCreateOutputObjects ( )
virtual

Implementation of interface methods.

output

Definition at line 582 of file AliAnalysisTaskSEDStarSpectra.cxx.

void AliAnalysisTaskSEDStarSpectra::UserExec ( Option_t option)
virtual

user exec

Definition at line 188 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by LocalInit().

void AliAnalysisTaskSEDStarSpectra::WrongSignForDStar ( AliAODRecoCascadeHF part,
AliRDHFCutsDStartoKpipi cuts,
TList listout 
)

assign the wrong charge to the soft pion to create background

Definition at line 1066 of file AliAnalysisTaskSEDStarSpectra.cxx.

Referenced by SetAODMismatchProtection().

Member Data Documentation

TH1F** AliAnalysisTaskSEDStarSpectra::fAllhist
private
Int_t AliAnalysisTaskSEDStarSpectra::fAnalysis
private

n. of events

Definition at line 88 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by PrintAnalysisType(), SetAnalysisType(), and UserExec().

Int_t AliAnalysisTaskSEDStarSpectra::fAODProtection
private

Definition at line 103 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by SetAODMismatchProtection(), and UserExec().

TH1F* AliAnalysisTaskSEDStarSpectra::fCEvents
private

Cuts - sent to output slot 3.

!

Definition at line 99 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by DefineHistograms(), Terminate(), UserExec(), and ~AliAnalysisTaskSEDStarSpectra().

AliNormalizationCounter* AliAnalysisTaskSEDStarSpectra::fCounter
private

!Counter for normalization slot 4

Definition at line 102 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by UserCreateOutputObjects(), and UserExec().

AliRDHFCutsDStartoKpipi* AliAnalysisTaskSEDStarSpectra::fCuts
private

n sigma for kaon PID

Definition at line 97 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AliAnalysisTaskSEDStarSpectra(), Init(), UserExec(), and ~AliAnalysisTaskSEDStarSpectra().

Double_t AliAnalysisTaskSEDStarSpectra::fD0Window
private

0: HD; 1: UU;

Definition at line 89 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by SideBandBackground(), UserExec(), and WrongSignForDStar().

TH1F* AliAnalysisTaskSEDStarSpectra::fDeltaMassD1
private
Bool_t AliAnalysisTaskSEDStarSpectra::fDoDStarVsY
private

higher limit in impact parameter (um)

Definition at line 109 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by DefineHistograms(), SetDoDStarVsY(), and UserExec().

Bool_t AliAnalysisTaskSEDStarSpectra::fDoImpParDstar
private

-1: no protection, 0: check AOD/dAOD nEvents only, 1: check AOD/dAOD nEvents + TProcessID

flag to activate protection against AOD-dAOD mismatch.

Definition at line 105 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by GetDoImpactParameterHistos(), SetDoImpactParameterHistos(), UserCreateOutputObjects(), and UserExec().

Bool_t AliAnalysisTaskSEDStarSpectra::fDoSearch
private

Use MC info.

Definition at line 92 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by GetRareSearch(), SetRareSearch(), and UserExec().

Int_t AliAnalysisTaskSEDStarSpectra::fEvents
private

Definition at line 87 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by UserExec().

Float_t AliAnalysisTaskSEDStarSpectra::fHigherImpPar
private

lower limit in impact parameter (um)

Definition at line 108 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by CreateImpactParameterHistos().

THnSparseF* AliAnalysisTaskSEDStarSpectra::fHistMassPtImpParTCDs[5]
private

flag to enable D* vs y

! histograms for impact paramter studies

Definition at line 111 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by AliAnalysisTaskSEDStarSpectra(), CreateImpactParameterHistos(), UserExec(), and ~AliAnalysisTaskSEDStarSpectra().

Float_t AliAnalysisTaskSEDStarSpectra::fLowerImpPar
private

nunber of bins in impact parameter histos

Definition at line 107 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by CreateImpactParameterHistos().

Int_t AliAnalysisTaskSEDStarSpectra::fNImpParBins
private

imppar studies

Definition at line 106 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by CreateImpactParameterHistos().

Int_t AliAnalysisTaskSEDStarSpectra::fNPtBins
private
Int_t AliAnalysisTaskSEDStarSpectra::fNSigma
private

Definition at line 96 of file AliAnalysisTaskSEDStarSpectra.h.

TList* AliAnalysisTaskSEDStarSpectra::fOutput
private
TList* AliAnalysisTaskSEDStarSpectra::fOutputAll
private
TList* AliAnalysisTaskSEDStarSpectra::fOutputPID
private
Double_t AliAnalysisTaskSEDStarSpectra::fPeakWindow
private

select width on D0Mass

Definition at line 90 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by FillSpectrum(), and UserExec().

TH1F** AliAnalysisTaskSEDStarSpectra::fPIDhist
private
TH2F* AliAnalysisTaskSEDStarSpectra::fTrueDiff2
private

!

Definition at line 100 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by DefineHistograms(), Terminate(), and UserExec().

Bool_t AliAnalysisTaskSEDStarSpectra::fUseMCInfo
private

select width on DstarMass

Definition at line 91 of file AliAnalysisTaskSEDStarSpectra.h.

Referenced by FillSpectrum(), GetMC(), SetMC(), and UserExec().


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