AliPhysics  05d84ab (05d84ab)
 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 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...
 
TTree * BuildTree (const char *taskName)
 
TTree * GetTree () const
 
Bool_t FillTree (Bool_t applyKinCuts)
 
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...
 
TString fName
 ! D meson candidate name More...
 
TTree * fTree
 ! 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...
 
AnalysisEnginefRecontructed
 ! Reconstructed level analysis engine More...
 
AnalysisEnginefGenerated
 ! 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 89 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 108 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Copy constructor

Parameters
sourceReference to a valid AnalysisEngine to copy from.

Definition at line 127 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 132 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 171 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 154 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

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 209 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Definition at line 124 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 122 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 145 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::RunAnalysis ( )

Run the requested analysis for the current event.

Definition at line 162 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Definition at line 119 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 118 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Friends And Related Function Documentation

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

Definition at line 136 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 135 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Member Data Documentation

ECandidateType_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCandidateType
protected

D meson candidate type.

Definition at line 140 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliDmesonMatchInfoSummary* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentDmeson
protected

! Tree branch

Definition at line 145 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoReco
protected

! Tree branch

Definition at line 146 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoTruth
protected

! Tree branch

Definition at line 147 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Int_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fDataSlotNumber
protected

! Data slot where the tree output is posted

Definition at line 148 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by AssignDataSlot(), and GetDataSlotNumber().

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fGenerated
protected

! Generated level analysis engine

Definition at line 151 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by SetGeneratedAnalysisEngine().

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fInhibit
protected

Inhibit the task.

Definition at line 141 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by IsInhibit().

TString AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fName
protected

! D meson candidate name

Definition at line 143 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by GetName().

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fRecontructed
protected

! Reconstructed level analysis engine

Definition at line 150 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by SetReconstructedAnalysisEngine().

TTree* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fTree
protected

! Output tree

Definition at line 144 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by GetTree().


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