AliPhysics  3aa38c9 (3aa38c9)
AliDJetTTreeReader Class Reference

Implementation of an abstract class to read the invariant mass histograms used to extract the raw yield. More...

#include <AliDJetTTreeReader.h>

Inheritance diagram for AliDJetTTreeReader:

Public Member Functions

 AliDJetTTreeReader ()
 
 AliDJetTTreeReader (const AliDJetTTreeReader &source)
 
virtual ~AliDJetTTreeReader ()
 
void SetInputTreename (TString treename)
 
void SetInputDBranchname (TString dname)
 
void SetInputJetBranchname (TString jetname)
 
void AddInputFileName (std::string filename)
 
void SetMassEdgesAndBinWidthForMassPlot (Double_t mmin, Double_t mmax, Double_t mbinwidth)
 
TChainGenerateChain ()
 
Bool_t ExtractInputMassPlotEffScale ()
 
Bool_t ExtractInputMassPlotSideband ()
 
- Public Member Functions inherited from AliDJetVReader
 AliDJetVReader ()
 
 AliDJetVReader (const AliDJetVReader &source)
 
virtual ~AliDJetVReader ()
 
void SetPtBinEdgesForMassPlot (Double_t ptmin, Double_t ptmax)
 
void SetMassRebin (UInt_t r)
 
void SetEfficiencyWeightSB (Bool_t b)
 
UInt_t GetMassRebin () const
 
void SetDmesonPtBins (Int_t nbins=0, Double_t *ptedges=0x0)
 
void SetJetPtBins (Int_t nbins=0, Double_t *ptedges=0x0)
 
void SetJetzBins (Int_t nbins=0, Double_t *zedges=0x0)
 
void SetDmesonEfficiency (Double_t *effvalues=0x0)
 
TH1DGetMassPlot ()
 
TH2DGetMassVsJetPtPlot ()
 
TH2DGetMassVsJetzPlot ()
 

Protected Attributes

std::vector< std::string > fInputFileNames
 Name of input file. More...
 
TString fTreeName
 Name of input TTree. More...
 
TString fDBranchName
 Name of input branch for D meson. More...
 
TString fJetBranchName
 Name of input branch for jet. More...
 
Double_t fmassmin
 Mass lower edge of inv.mass plots. More...
 
Double_t fmassmax
 Mass upper edge of inv.mass plots. More...
 
Double_t fmasswidth
 Mass plots bin width. More...
 
- Protected Attributes inherited from AliDJetVReader
Double_t fpTmin
 pT lower edge of mass plot to evaluate variations of yields More...
 
Double_t fpTmax
 pT upper edge of mass plot to evaluate variations of yields More...
 
Int_t fnDbins
 Number of D-meson pT bins (for eff scaling) More...
 
Double_tfDbinpTedges
 D-meson pt bin edges values. More...
 
Int_t fnJetPtbins
 Number of jet pT bins to be used for spectrum. More...
 
Double_tfJetPtBinEdges
 Jet pT bin edges to be used for spectrum. More...
 
Int_t fnJetzbins
 Number of jet z bins to be used for spectrum. More...
 
Double_tfJetzBinEdges
 Jet z bin edges to be used for spectrum. More...
 
Double_tfDEffValues
 D-meson efficiency values. More...
 
UInt_t fMassRebin
 Rebin the mass histogram axis. More...
 
Bool_t fEfficiencyWeightSB
 If true the efficiency is applied as a weight in the inv mass distribution also in the side-band method (this is always the case for the inv.mass fit method in jet pt bins) More...
 
TH1DfMassPlot
 !Mass spectra to be fitted More...
 
TH2DfMassVsJetPtPlot
 !Mass vs jet pt (SB method) More...
 
TH2DfMassVsJetzPlot
 !Mass vs jet z (SB method) More...
 

Detailed Description

Implementation of an abstract class to read the invariant mass histograms used to extract the raw yield.

Implementation of an abstract class to read the invariant mass histograms used to extract the raw yield. This implementation takes a TTree histogram as input.

Definition at line 37 of file AliDJetTTreeReader.h.

Constructor & Destructor Documentation

AliDJetTTreeReader::AliDJetTTreeReader ( )

Default constructor.

Definition at line 33 of file AliDJetTTreeReader.cxx.

AliDJetTTreeReader::AliDJetTTreeReader ( const AliDJetTTreeReader source)

Copy constructor.

Parameters
[in]sourceConst reference to an object to copy from

Definition at line 49 of file AliDJetTTreeReader.cxx.

AliDJetTTreeReader::~AliDJetTTreeReader ( )
virtual

Destructor

Definition at line 64 of file AliDJetTTreeReader.cxx.

Member Function Documentation

void AliDJetTTreeReader::AddInputFileName ( std::string  filename)
inline

Definition at line 47 of file AliDJetTTreeReader.h.

Bool_t AliDJetTTreeReader::ExtractInputMassPlotEffScale ( )
virtual

Extract the input mass plots for the efficiency scaled method.

Implements AliDJetVReader.

Definition at line 85 of file AliDJetTTreeReader.cxx.

Referenced by SetMassEdgesAndBinWidthForMassPlot().

Bool_t AliDJetTTreeReader::ExtractInputMassPlotSideband ( )
virtual

Extract the input mass plots for the side band method.

Implements AliDJetVReader.

Definition at line 120 of file AliDJetTTreeReader.cxx.

Referenced by SetMassEdgesAndBinWidthForMassPlot().

TChain * AliDJetTTreeReader::GenerateChain ( )

Generates the chain containing the D-tagged jet candidates.

Returns
Pointer to a new chain

Definition at line 72 of file AliDJetTTreeReader.cxx.

Referenced by ExtractInputMassPlotEffScale(), ExtractInputMassPlotSideband(), and SetMassEdgesAndBinWidthForMassPlot().

void AliDJetTTreeReader::SetInputDBranchname ( TString  dname)
inline

Definition at line 45 of file AliDJetTTreeReader.h.

void AliDJetTTreeReader::SetInputJetBranchname ( TString  jetname)
inline

Definition at line 46 of file AliDJetTTreeReader.h.

void AliDJetTTreeReader::SetInputTreename ( TString  treename)
inline

Definition at line 44 of file AliDJetTTreeReader.h.

void AliDJetTTreeReader::SetMassEdgesAndBinWidthForMassPlot ( Double_t  mmin,
Double_t  mmax,
Double_t  mbinwidth 
)
inline

Definition at line 48 of file AliDJetTTreeReader.h.

Member Data Documentation

TString AliDJetTTreeReader::fDBranchName
protected

Name of input branch for D meson.

Definition at line 59 of file AliDJetTTreeReader.h.

Referenced by ExtractInputMassPlotEffScale(), ExtractInputMassPlotSideband(), and SetInputDBranchname().

std::vector<std::string> AliDJetTTreeReader::fInputFileNames
protected

Name of input file.

Definition at line 57 of file AliDJetTTreeReader.h.

Referenced by AddInputFileName(), and GenerateChain().

TString AliDJetTTreeReader::fJetBranchName
protected

Name of input branch for jet.

Definition at line 60 of file AliDJetTTreeReader.h.

Referenced by ExtractInputMassPlotEffScale(), ExtractInputMassPlotSideband(), and SetInputJetBranchname().

Double_t AliDJetTTreeReader::fmassmax
protected

Mass upper edge of inv.mass plots.

Definition at line 62 of file AliDJetTTreeReader.h.

Referenced by ExtractInputMassPlotEffScale(), ExtractInputMassPlotSideband(), and SetMassEdgesAndBinWidthForMassPlot().

Double_t AliDJetTTreeReader::fmassmin
protected

Mass lower edge of inv.mass plots.

Definition at line 61 of file AliDJetTTreeReader.h.

Referenced by ExtractInputMassPlotEffScale(), ExtractInputMassPlotSideband(), and SetMassEdgesAndBinWidthForMassPlot().

Double_t AliDJetTTreeReader::fmasswidth
protected
TString AliDJetTTreeReader::fTreeName
protected

Name of input TTree.

Definition at line 58 of file AliDJetTTreeReader.h.

Referenced by GenerateChain(), and SetInputTreename().


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