AliPhysics  5a28df1 (5a28df1)
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)
 
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...
 
AnalysisEnginefRecontructed
 ! Reconstructed level analysis engine More...
 
AnalysisEnginefGenerated
 ! Generated level analysis engine More...
 
THistManagerfHistManagerResponse
 ! Histogram manager for response More...
 

Friends

class AliAnalysisTaskDmesonJetsDetectorResponse
 
bool operator< (const ResponseEngine &lhs, const ResponseEngine &rhs)
 
bool operator> (const ResponseEngine &lhs, const ResponseEngine &rhs)
 
bool operator<= (const ResponseEngine &lhs, const ResponseEngine &rhs)
 
bool operator>= (const ResponseEngine &lhs, const ResponseEngine &rhs)
 
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 112 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::ResponseEngine ( )

Default constructor, for ROOT I/O.

Definition at line 95 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

Referenced by operator=().

AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::ResponseEngine ( ECandidateType_t  type)

Standard constructor with candidate type

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

Definition at line 116 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Copy constructor

Parameters
sourceReference to a valid AnalysisEngine to copy from.

Definition at line 137 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Definition at line 118 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Member Function Documentation

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

Definition at line 136 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 198 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 181 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 251 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Definition at line 128 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), and FillTree().

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

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

void AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::RunAnalysis ( )

Run the requested analysis for the current event.

Definition at line 189 of file AliAnalysisTaskDmesonJetsDetectorResponse.cxx.

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

Definition at line 123 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 120 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Friends And Related Function Documentation

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

Definition at line 145 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 141 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 140 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

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

Definition at line 142 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Member Data Documentation

ECandidateType_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCandidateType
protected

D meson candidate type.

Definition at line 149 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree().

AliDmesonMatchInfoSummary* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentDmeson
protected

! Tree branch

Definition at line 155 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), and FillTree().

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoReco
protected

! Tree branch

Definition at line 156 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), and FillTree().

AliJetInfoSummary** AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fCurrentJetInfoTruth
protected

! Tree branch

Definition at line 157 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), and FillTree().

Int_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fDataSlotNumber
protected

! Data slot where the tree output is posted

Definition at line 158 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fGenerated
protected

! Generated level analysis engine

Definition at line 161 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), CheckInit(), and FillTree().

THistManager* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fHistManagerResponse
protected

! Histogram manager for response

Definition at line 163 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by FillTree().

Bool_t AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fInhibit
protected

Inhibit the task.

Definition at line 150 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by CheckInit().

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 151 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

TString AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fName
protected

! D meson candidate name

Definition at line 153 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by CheckInit().

AnalysisEngine* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fRecontructed
protected

! Reconstructed level analysis engine

Definition at line 160 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), CheckInit(), FillTree(), operator<(), and operator==().

TTree* AliAnalysisTaskDmesonJetsDetectorResponse::ResponseEngine::fTree
protected

! Output tree

Definition at line 154 of file AliAnalysisTaskDmesonJetsDetectorResponse.h.

Referenced by BuildTree(), and FillTree().


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