AliPhysics  95775ff (95775ff)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine Class Reference

Analysis engine to produce detector response matrix in the D meson jet analysis. More...

#include <AliAnalysisTaskDmesonJetsDetectorResponse.h>

Inheritance diagram for AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine:

Public Member Functions

 ResponseEngine ()
 Default constructor, for ROOT I/O. More...
 
 ResponseEngine (ECandidateType_t type)
 
 ResponseEngine (const ResponseEngine &source)
 
ResponseEngineoperator= (const ResponseEngine &source)
 
virtual ~ResponseEngine ()
 
void SetMaxJetDmesonDistance (Double_t d)
 
void SetReconstructedAnalysisEngine (AnalysisEngine *reco)
 
void SetGeneratedAnalysisEngine (AnalysisEngine *truth)
 
Bool_t CheckInit ()
 
Bool_t IsInhibit () const
 
const char * GetName () const
 
void RunAnalysis ()
 Run the requested analysis for the current event. More...
 
TTreeBuildTree (const char *taskName)
 
TTreeGetTree () const
 
Bool_t FillTree (Bool_t applyKinCuts, Bool_t findNoDMesonRecoJets)
 
void AssignDataSlot (Int_t n)
 
Int_t GetDataSlotNumber () const
 

Protected Attributes

ECandidateType_t fCandidateType
 D meson candidate type. More...
 
Bool_t fInhibit
 Inhibit the task. More...
 
Double_t fMaxJetDmesonDistance
 Maximum distance between a generated D meson and a reconstructed jet, used for geometrical matching (in units of R) More...
 
TString fName
 ! D meson candidate name More...
 
TTreefTree
 ! Output tree More...
 
AliDmesonMatchInfoSummaryfCurrentDmeson
 ! Tree branch More...
 
AliJetInfoSummary ** fCurrentJetInfoReco
 ! Tree branch More...
 
AliJetInfoSummary ** fCurrentJetInfoTruth
 ! Tree branch More...
 
Int_t fDataSlotNumber
 ! Data slot where the tree output is posted More...
 
AnalysisEngine * fRecontructed
 ! Reconstructed level analysis engine More...
 
AnalysisEngine * fGenerated
 ! Generated level analysis engine More...
 

Friends

class AliAnalysisTaskDmesonJetsDetectorResponse
 
bool operator== (const ResponseEngine &lhs, const ResponseEngine &rhs)
 
bool operator!= (const ResponseEngine &lhs, const ResponseEngine &rhs)
 

Detailed Description

Analysis engine to produce detector response matrix in the D meson jet analysis.

Analysis engine to produce detector response matrix in the D meson jet analysis

Definition at line 110 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::ResponseEngine ( )

Default constructor, for ROOT I/O.

Definition at line 95 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::ResponseEngine ( ECandidateType_t  type)

Standard constructor with candidate type

Parameters
typeD meson candidate type (D0, D*, ...)

Definition at line 115 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::ResponseEngine ( const ResponseEngine source)

Copy constructor

Parameters
sourceReference to a valid AnalysisEngine to copy from.

Definition at line 135 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

virtual AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::~ResponseEngine ( )
inlinevirtual

Definition at line 116 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Member Function Documentation

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::AssignDataSlot ( Int_t  n)
inline

Definition at line 134 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

TTree * AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::BuildTree ( const char *  taskName)

Builds the tree where the output will be posted. Called from UserCreateOutputObject

Parameters
taskNameName of the underlying task
Returns
Newly created tree

Definition at line 180 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::CheckInit ( )

Checks if the response engine is properly set up. Otherwise inhibit the engine.

Parameters
kTRUEif successful

Definition at line 163 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::FillTree ( Bool_t  applyKinCuts,
Bool_t  findNoDMesonRecoJets 
)

Loops over the analysis output and posts the output in the tree. Apply kinematic cuts if requested.

Parameters
applyKinCutsWhether kinematic cuts should be applied
Returns
Always kTRUE.

Definition at line 219 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Int_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::GetDataSlotNumber ( ) const
inline
const char* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::GetName ( ) const
inline

Definition at line 126 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

TTree* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::GetTree ( ) const
inline
Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::IsInhibit ( ) const
inline

Definition at line 124 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine & AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::operator= ( const ResponseEngine source)

Assignement operator

Parameters
sourceReference to a valid AnalysisEngine to copy from.

Definition at line 154 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::RunAnalysis ( )

Run the requested analysis for the current event.

Definition at line 171 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::SetGeneratedAnalysisEngine ( AnalysisEngine *  truth)
inline

Definition at line 121 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::SetMaxJetDmesonDistance ( Double_t  d)
inline

Definition at line 118 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::SetReconstructedAnalysisEngine ( AnalysisEngine *  reco)
inline

Definition at line 120 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Friends And Related Function Documentation

bool operator!= ( const ResponseEngine lhs,
const ResponseEngine rhs 
)
friend

Definition at line 138 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

bool operator== ( const ResponseEngine lhs,
const ResponseEngine rhs 
)
friend

Definition at line 137 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Member Data Documentation

ECandidateType_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCandidateType
protected

D meson candidate type.

Definition at line 142 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliDmesonMatchInfoSummary* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentDmeson
protected

! Tree branch

Definition at line 148 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoReco
protected

! Tree branch

Definition at line 149 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoTruth
protected

! Tree branch

Definition at line 150 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Int_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fDataSlotNumber
protected

! Data slot where the tree output is posted

Definition at line 151 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by AssignDataSlot(), and GetDataSlotNumber().

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fGenerated
protected

! Generated level analysis engine

Definition at line 154 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by SetGeneratedAnalysisEngine().

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fInhibit
protected

Inhibit the task.

Definition at line 143 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by IsInhibit().

Double_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fMaxJetDmesonDistance
protected

Maximum distance between a generated D meson and a reconstructed jet, used for geometrical matching (in units of R)

Definition at line 144 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by SetMaxJetDmesonDistance().

TString AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fName
protected

! D meson candidate name

Definition at line 146 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by GetName().

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fRecontructed
protected

! Reconstructed level analysis engine

Definition at line 153 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by SetReconstructedAnalysisEngine().

TTree* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fTree
protected

! Output tree

Definition at line 147 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by GetTree().


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