AliPhysics  master (3d17d9d)
AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse Class Reference

Output handler for D meson jet analysis. More...

#include <AliAnalysisTaskDmesonJetsSub.h>

Inheritance diagram for AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse:

Public Member Functions

 OutputHandlerTHnSparse ()
 Constructor. More...
 OutputHandlerTHnSparse (AnalysisEngine *eng)
 Constructor. More...
virtual ~OutputHandlerTHnSparse ()
virtual Bool_t FillOutput (Bool_t applyKinCuts)
virtual void BuildOutputObject (const char *taskName)
Bool_t FillHnSparse (THnSparse *h, const AliDmesonJetInfo &DmesonJet, std::string n)
Bool_t IsAnyJetInAcceptance (const AliDmesonJetInfo &dMesonJet) const
void SetEnabledAxis (UInt_t axis)
- Public Member Functions inherited from AliAnalysisTaskDmesonJetsSub::OutputHandler
 OutputHandler ()
 Constructor. More...
 OutputHandler (AnalysisEngine *eng)
 Constructor. More...
virtual ~OutputHandler ()
virtual TObjectGetOutputObject () const
virtual Int_t GetDataSlotNumber () const

Protected Attributes

UInt_t fEnabledAxis
 ! Use bit defined in EAxis_t to enable axis in the THnSparse More...
- Protected Attributes inherited from AliAnalysisTaskDmesonJetsSub::OutputHandler
ECandidateType_t fCandidateType
 ! Candidate type More...
EMCMode_t fMCMode
 ! MC mode: No MC (data and MC detector level), background-only (MC), signal-only (MC), MC truth (particle level) More...
Int_t fNMassBins
 ! Mass number of bins More...
Double_t fMinMass
 ! Min mass in histogram axis More...
Double_t fMaxMass
 ! Max mass in histogram axis More...
std::vector< AliHFJetDefinition > * fJetDefinitions
 ! Jet definitions More...
Float_t fPtBinWidth
 ! Histogram pt bin width More...
Float_t fMaxPt
 ! Histogram pt limit More...
Bool_t fD0Extended
 ! Store extended information in the tree (only for D0 mesons) More...
 ! Object conatining the event information (centrality, pt hard, weight, etc.) More...
std::map< int, AliDmesonJetInfo > * fDmesonJets
 ! Array containing the D meson jets More...
 ! Histograms More...
TString fName
 ! Name of this object More...

Private Member Functions

 OutputHandlerTHnSparse (const OutputHandlerTHnSparse &source)
OutputHandlerTHnSparseoperator= (const OutputHandlerTHnSparse &source)

Detailed Description

Output handler for D meson jet analysis.

This class encapsulates the handler of the output of the analysis The output is stored in a THnSparse with user defined axis

Definition at line 550 of file AliAnalysisTaskDmesonJetsSub.h.

Constructor & Destructor Documentation

AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::OutputHandlerTHnSparse ( )


Definition at line 883 of file AliAnalysisTaskDmesonJetsSub.cxx.

AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::OutputHandlerTHnSparse ( AnalysisEngine eng)


Definition at line 890 of file AliAnalysisTaskDmesonJetsSub.cxx.

virtual AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::~OutputHandlerTHnSparse ( )

Definition at line 555 of file AliAnalysisTaskDmesonJetsSub.h.

AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::OutputHandlerTHnSparse ( const OutputHandlerTHnSparse source)

Member Function Documentation

void AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::BuildOutputObject ( const char *  taskName)

Allocate a THnSparse histogram

paramAnalysis parameters used to properly set some of the axis

Reimplemented from AliAnalysisTaskDmesonJetsSub::OutputHandler.

Definition at line 900 of file AliAnalysisTaskDmesonJetsSub.cxx.

Referenced by AliAnalysisTaskDmesonJetsSub::UserCreateOutputObjects().

Bool_t AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::FillHnSparse ( THnSparse *  h,
const AliDmesonJetInfo DmesonJet,
std::string  n 

Fill a THnSparse using information from a AliDmesonJetInfo object

hValid pointer to a THnSparse object
DmesonJetConst reference to an AliDmesonJetInfo object
nJet name

Definition at line 1107 of file AliAnalysisTaskDmesonJetsSub.cxx.

Referenced by FillOutput().

Bool_t AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::FillOutput ( Bool_t  applyKinCuts)

Post the output with D meson jets found in the current event

kTRUE on success

Reimplemented from AliAnalysisTaskDmesonJetsSub::OutputHandler.

Definition at line 1063 of file AliAnalysisTaskDmesonJetsSub.cxx.

Bool_t AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::IsAnyJetInAcceptance ( const AliDmesonJetInfo dMesonJet) const

Checks whether any of the D meson jets is in the acceptance

Constreference to a valid AliDmesonJetInfo object

Definition at line 1051 of file AliAnalysisTaskDmesonJetsSub.cxx.

Referenced by FillOutput().

OutputHandlerTHnSparse& AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::operator= ( const OutputHandlerTHnSparse source)
void AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::SetEnabledAxis ( UInt_t  axis)

Member Data Documentation

UInt_t AliAnalysisTaskDmesonJetsSub::OutputHandlerTHnSparse::fEnabledAxis

! Use bit defined in EAxis_t to enable axis in the THnSparse

Definition at line 567 of file AliAnalysisTaskDmesonJetsSub.h.

Referenced by BuildOutputObject().

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