CbmRoot
PairAnalysisSignalExt Class Reference

#include <PairAnalysisSignalExt.h>

Inheritance diagram for PairAnalysisSignalExt:
[legend]
Collaboration diagram for PairAnalysisSignalExt:
[legend]

Public Types

enum  EBackgroundMethod {
  kFittedMC = 0, kFitted, kLikeSign, kLikeSignArithm,
  kLikeSignRcorr, kLikeSignArithmRcorr, kLikeSignFit, kEventMixing,
  kEventMixingFit, kRotation, kCocktail
}
 
enum  ESignalExtractionMethod {
  kBinCounting = 0, kMCScaledMax, kMCScaledInt, kMCFitted,
  kCrystalBall, kGaus, kUserFunc
}
 
enum  EScalingMethod { kSclToRaw = 0, kSclToLikeSign }
 
enum  EFunction { kBoltzmann = 0, kPtExp, kHagedorn, kLevi }
 

Public Member Functions

 PairAnalysisSignalExt ()
 
 PairAnalysisSignalExt (const char *name, const char *title)
 
 ~PairAnalysisSignalExt ()
 
void SetMCSignalShape (TH1F *hist)
 
void SetIntegralRange (Double_t min, Double_t max)
 
void SetPlotRange (Double_t min, Double_t max)
 
void SetRebin (Int_t factor)
 
void SetStatRebin (Double_t stat)
 
void SetRebin (TArrayD *limits)
 
void SetRebin (TVectorD *limits)
 
void SetExtractionMethod (ESignalExtractionMethod method, PairAnalysisFunction *sigF=0x0)
 
void SetMixingCorrection (Bool_t mixcorr=kTRUE)
 
void SetMethod (EBackgroundMethod method)
 
void SetNTrackRotations (Int_t iterations)
 
void SetScaleBackgroundTo (EScalingMethod method, Double_t intMin, Double_t intMax, Double_t intMin2=0., Double_t intMax2=0.)
 
void SetCocktailContribution (TObjArray *arr, Bool_t subtract=kTRUE)
 
Bool_t IsCocktailSubtracted () const
 
Double_t GetIntegralMin () const
 
Double_t GetIntegralMax () const
 
Int_t GetRebin () const
 
TArrayD * GetRebinLimits () const
 
ESignalExtractionMethod GetExtractionMethod () const
 
EBackgroundMethod GetMethod () const
 
Double_t GetScaleMin () const
 
Double_t GetScaleMax () const
 
Double_t GetScaleMin2 () const
 
Double_t GetScaleMax2 () const
 
Double_t GetScaleFactor () const
 
const TVectorD & GetValues () const
 
const TVectorD & GetErrors () const
 
Double_t GetSignal () const
 
Double_t GetSignalError () const
 
Double_t GetBackground () const
 
Double_t GetBackgroundError () const
 
Double_t GetSignificance () const
 
Double_t GetSignificanceError () const
 
Double_t GetSB () const
 
Double_t GetSBError () const
 
Double_t GetMass () const
 
Double_t GetMassError () const
 
Double_t GetMassWidth () const
 
Double_t GetMassWidthError () const
 
Double_t GetMatchChi2NDF () const
 
Double_t GetMatchChi2NDFError () const
 
TH1 * GetMCSignalShape () const
 
TH1 * GetSignalHistogram () const
 
TH1 * GetSoverBHistogram () const
 
TH1 * GetSignificanceHistogram () const
 
TH1 * GetBackgroundHistogram () const
 
TH1 * GetUnlikeSignHistogram () const
 
TH1 * GetCocktailHistogram () const
 
TH1 * GetRfactorHistogram () const
 
TObject * GetPeakShape () const
 
TObject * DescribePeakShape (ESignalExtractionMethod method=kMCFitted, Bool_t replaceValErr=kFALSE, TH1F *mcShape=0x0)
 
TPaveText * DrawStats (Double_t x1=0., Double_t y1=0., Double_t x2=0., Double_t y2=0., TString opt="pRnbsSmrc")
 
Double_t ScaleHistograms (TH1 *histRaw, TH1 *histBackground, Double_t intMin, Double_t intMax)
 
Double_t ScaleHistograms (TH1 *histRaw, TH1 *histBackground, Double_t intMin, Double_t intMax, Double_t intMin2, Double_t intMax2)
 
void Print (Option_t *option="") const
 
void Process (TObjArray *const arrhist)
 
void ProcessLS ()
 
void ProcessEM ()
 
void ProcessTR ()
 
void ProcessCocktail ()
 
void Draw (const Option_t *option="")
 
TObject * FindObject (TObjArray *arrhist, PairAnalysis::EPairType type) const
 
TObject * FindObjectByTitle (TObjArray *arrhist, TString ref)
 
TObject * FindObject (const char *) const
 
TObject * FindObject (const TObject *) const
 
void SetParticleOfInterest (Int_t pdgcode)
 
void SetFitRange (Double_t min, Double_t max)
 
void SetUseIntegral (Bool_t flag=kTRUE)
 
void SetUseIntegral (Bool_t flag=kTRUE)
 
void SetFitOption (const char *opt)
 
void SetFitOption (const char *opt)
 
void SetFunctions (TF1 *const combined, TF1 *const sig=0, TF1 *const back=0, Int_t parM=1, Int_t parMres=2)
 
void SetDefault (EFunction predefinedFunc)
 
void SetDefaults (Int_t type)
 
void SetDefaults (Int_t type)
 
void CombineFunc (TF1 *const peak=0, TF1 *const bgnd=0)
 
void CombineFunc (TF1 *const peak=0, TF1 *const bgnd=0)
 
Double_t PeakFunMC (const Double_t *x, const Double_t *par)
 
Double_t PeakFunMC (const Double_t *x, const Double_t *par)
 
Double_t PeakFunCB (const Double_t *x, const Double_t *par)
 
Double_t PeakFunCB (const Double_t *x, const Double_t *par)
 
Double_t PeakFunGauss (const Double_t *x, const Double_t *par)
 
Double_t PeakFunPowGaussPow (const Double_t *x, const Double_t *par)
 
Double_t PeakFunExpGaussExp (const Double_t *x, const Double_t *par)
 
TF1 * GetBoltzmann ()
 
TF1 * GetPtExp ()
 
TF1 * GetHagedorn ()
 
TF1 * GetLevi ()
 
TF1 * GetSignalFunction () const
 
TF1 * GetSignalFunction () const
 
TF1 * GetBackgroundFunction () const
 
TF1 * GetBackgroundFunction () const
 
TF1 * GetCombinedFunction () const
 
TF1 * GetCombinedFunction () const
 
Int_t GetParticleOfInterest () const
 
Int_t GetDof () const
 
Int_t GetDof () const
 
Double_t GetChi2Dof () const
 
Double_t GetChi2Dof () const
 
Double_t GetFitMin () const
 
Double_t GetFitMax () const
 
void SetFunction (TF1 *const combined, TF1 *const sig=0, TF1 *const back=0, Int_t parM=1, Int_t parMres=2)
 
Double_t PeakFunGaus (const Double_t *x, const Double_t *par)
 

Static Public Member Functions

static const char * GetValueName (Int_t i)
 
static TH1 * MergeObjects (TH1 *obj1, TH1 *obj2, Double_t val=+1.)
 

Protected Member Functions

void ScaleBackground ()
 
void FillSignificance (TH1 *hfill, TObject *signal, TH1 *hbgrd)
 
void SetSignificanceAndSOB ()
 
void SetFWHM ()
 
 PairAnalysisSignalExt (const PairAnalysisSignalExt &c)
 
PairAnalysisSignalExtoperator= (const PairAnalysisSignalExt &c)
 
Double_t PeakBgndFun (const Double_t *x, const Double_t *par)
 
Double_t PeakBgndFun (const Double_t *x, const Double_t *par)
 

Protected Attributes

TObjArray * fArrHists = NULL
 
TObjArray * fArrCocktail = NULL
 
TH1 * fHistSignal = NULL
 
TH1 * fHistSB = NULL
 
TH1 * fHistSgn = NULL
 
TH1 * fHistBackground
 
TH1 * fHistCocktail = NULL
 
TH1 * fHistDataPM = NULL
 
TH1 * fHistDataPP = NULL
 
TH1 * fHistDataMM = NULL
 
TH1 * fHistDataME
 
TH1 * fHistRfactor = NULL
 
TH1 * fHistSignalMC = NULL
 
TH1 * fHistMixPM = NULL
 
TH1 * fHistMixPP = NULL
 
TH1 * fHistMixMM = NULL
 
TH1 * fHistMixMP = NULL
 
TH1 * fHistDataTR = NULL
 
TVectorD fValues
 
TVectorD fErrors
 
Double_t fIntMin = 0.
 
Double_t fIntMax = 0.
 
Double_t fPlotMin = 0.
 
Double_t fPlotMax = 0.
 
Int_t fRebin = 1
 
Double_t fRebinStat = 1.
 
TArrayD * fBinLimits = NULL
 
EBackgroundMethod fMethod = kLikeSign
 
EScalingMethod fSclMethod = kSclToRaw
 
Double_t fScaleMin = 0.
 
Double_t fScaleMax = 0.
 
Double_t fScaleMin2 = 0.
 
Double_t fScaleMax2 = 0.
 
Int_t fNiterTR
 
Double_t fScaleFactor = 1.
 
Bool_t fMixingCorr
 
Bool_t fCocktailSubtr = kFALSE
 
PairAnalysisFunctionfExtrFunc = NULL
 
ESignalExtractionMethod fPeakMethod
 
Bool_t fPeakIsTF1 = kFALSE
 
Bool_t fProcessed = kFALSE
 
TF1 * fFuncSignal = NULL
 
TF1 * fFuncBackground = NULL
 
TF1 * fFuncSigBack = NULL
 
Double_t fFitMin = 0.
 
Double_t fFitMax = 0.
 
TParticlePDG * fPOI = NULL
 
Int_t fPOIpdg = 443
 
Int_t fParMass
 
Int_t fParMassWidth
 
TString fFitOpt = "SMNQE"
 
Bool_t fUseIntegral
 
Int_t fDof = 0
 
Double_t fChi2Dof = 0.
 
Int_t fNparPeak = 0
 
Int_t fNparBgnd = 0
 

Static Protected Attributes

static TObject * fgPeakShape
 
static TH1F * fgHistSimPM
 
static const char * fgkValueNames [7]
 
static const char * fgkBackgroundMethodNames [11]
 

Detailed Description

Definition at line 25 of file PairAnalysisSignalExt.h.

Member Enumeration Documentation

◆ EBackgroundMethod

Enumerator
kFittedMC 
kFitted 
kLikeSign 
kLikeSignArithm 
kLikeSignRcorr 
kLikeSignArithmRcorr 
kLikeSignFit 
kEventMixing 
kEventMixingFit 
kRotation 
kCocktail 

Definition at line 28 of file PairAnalysisSignalExt.h.

◆ EFunction

Enumerator
kBoltzmann 
kPtExp 
kHagedorn 
kLevi 

Definition at line 25 of file PairAnalysisFunction.h.

◆ EScalingMethod

Enumerator
kSclToRaw 
kSclToLikeSign 

Definition at line 52 of file PairAnalysisSignalExt.h.

◆ ESignalExtractionMethod

Enumerator
kBinCounting 
kMCScaledMax 
kMCScaledInt 
kMCFitted 
kCrystalBall 
kGaus 
kUserFunc 

Definition at line 42 of file PairAnalysisSignalExt.h.

Constructor & Destructor Documentation

◆ PairAnalysisSignalExt() [1/3]

PairAnalysisSignalExt::PairAnalysisSignalExt ( )

Definition at line 65 of file PairAnalysisSignalExt.cxx.

◆ PairAnalysisSignalExt() [2/3]

PairAnalysisSignalExt::PairAnalysisSignalExt ( const char *  name,
const char *  title 
)

Definition at line 73 of file PairAnalysisSignalExt.cxx.

◆ ~PairAnalysisSignalExt()

◆ PairAnalysisSignalExt() [3/3]

PairAnalysisSignalExt::PairAnalysisSignalExt ( const PairAnalysisSignalExt c)
protected

Definition at line 82 of file PairAnalysisSignalExt.cxx.

Member Function Documentation

◆ CombineFunc() [1/2]

void PairAnalysisFunction::CombineFunc ( TF1 *const  peak = 0,
TF1 *const  bgnd = 0 
)
inherited

◆ CombineFunc() [2/2]

◆ DescribePeakShape()

◆ Draw()

void PairAnalysisSignalExt::Draw ( const Option_t *  option = "")
virtual

Draw signal extraction histograms into a canvas

additional plotting options to TH1::Draw():

"noMc": no mc signals are plotted "onlyMc": only mc signals are plotted "onlySig": only background subtracted signals are plotted "onlyRaw": only the raw unlike-sign spectra are plotted "cocktail": plot the sum of cocktail contributors added via SetCocktailContribution

"can": canvas is created with name: "cSignalExtraction" or re-used "logx,y,z": the axis are plotted in log-scale (labels are added automatically according to the range) "leg(f)": a ("filled") legend will be created with caption=className , can be modified by PairAnalysisHistos::SetName("mycaption"), change of legend position: see PairAnalysisStyler::SetLegendAlign

"line": draws a dashed line at zero "stat": draws a statistics box with default entries at top-right position, see DrawStats

"sb": calculates and plots the signal-over-background ratio instead of counts "sgn": calculates and plots the significance instead of counts

load style

activate std option for legend

add canvas

count number of drawn objects in pad

error style

automatic axis minimum and maximum

draw legend only once set legend coordinates, margins, fillstyle, fontsize

Reimplemented from PairAnalysisFunction.

Reimplemented in PairAnalysisSignalFit.

Definition at line 1154 of file PairAnalysisSignalExt.cxx.

References DrawStats(), fArrCocktail, fArrHists, fBinLimits, fCocktailSubtr, fgkBackgroundMethodNames, PairAnalysisSignalMC::fgkSignals, fgPeakShape, fHistBackground, fHistCocktail, fHistDataPM, fHistRfactor, fHistSB, fHistSgn, fHistSignal, FillSignificance(), FindObjectByTitle(), fMethod, fPeakIsTF1, fPlotMax, fPlotMin, fRebin, PairAnalysisHelper::GetContentMaximum(), PairAnalysisHelper::GetContentMinimum(), GetValueName(), i, PairAnalysisStyler::kBgrd, PairAnalysisStyler::kCocktail, kCocktail, kEventMixing, PairAnalysisStyler::kFit, PairAnalysisSignalMC::kNSignals, PairAnalysisStyler::kRaw, kRotation, PairAnalysisStyler::kSig, PairAnalysisStyler::LoadStyle(), max(), min(), PairAnalysisStyler::SetLegendAttributes(), and PairAnalysisStyler::Style().

◆ DrawStats()

TPaveText * PairAnalysisSignalExt::DrawStats ( Double_t  x1 = 0.,
Double_t  y1 = 0.,
Double_t  x2 = 0.,
Double_t  y2 = 0.,
TString  opt = "pRnbsSmrc" 
)

◆ FillSignificance()

void PairAnalysisSignalExt::FillSignificance ( TH1 *  hfill,
TObject *  signal,
TH1 *  hbgrd 
)
inlineprotected

fill significance histogram

TODO: signal error for TF1

Definition at line 386 of file PairAnalysisSignalExt.h.

References GetValueName(), i, and sgn().

Referenced by Draw().

◆ FindObject() [1/3]

TObject* PairAnalysisSignalExt::FindObject ( const char *  ) const
inline

Definition at line 200 of file PairAnalysisSignalExt.h.

◆ FindObject() [2/3]

TObject* PairAnalysisSignalExt::FindObject ( const TObject *  ) const
inline

Definition at line 204 of file PairAnalysisSignalExt.h.

◆ FindObject() [3/3]

TObject * PairAnalysisSignalExt::FindObject ( TObjArray *  arrhist,
PairAnalysis::EPairType  type 
) const
inline

Definition at line 283 of file PairAnalysisSignalExt.h.

References i, and PairAnalysis::PairClassName().

Referenced by Process().

◆ FindObjectByTitle()

TObject * PairAnalysisSignalExt::FindObjectByTitle ( TObjArray *  arrhist,
TString  ref 
)
inline

Definition at line 298 of file PairAnalysisSignalExt.h.

References i.

Referenced by Draw().

◆ GetBackground()

Double_t PairAnalysisSignalExt::GetBackground ( ) const
inline

Definition at line 128 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetBackgroundError()

Double_t PairAnalysisSignalExt::GetBackgroundError ( ) const
inline

Definition at line 129 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetBackgroundFunction() [1/2]

TF1* PairAnalysisFunction::GetBackgroundFunction ( ) const
inlineinherited

Definition at line 56 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fFuncBackground.

◆ GetBackgroundFunction() [2/2]

TF1* PairAnalysisFunction::GetBackgroundFunction ( ) const
inlineinherited

Definition at line 82 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFuncBackground.

◆ GetBackgroundHistogram()

TH1* PairAnalysisSignalExt::GetBackgroundHistogram ( ) const
inline

Definition at line 150 of file PairAnalysisSignalExt.h.

References fHistBackground.

◆ GetBoltzmann()

TF1 * PairAnalysisFunction::GetBoltzmann ( )
inherited

◆ GetChi2Dof() [1/2]

Double_t PairAnalysisFunction::GetChi2Dof ( ) const
inlineinherited

Definition at line 60 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fChi2Dof.

◆ GetChi2Dof() [2/2]

Double_t PairAnalysisFunction::GetChi2Dof ( ) const
inlineinherited

Definition at line 87 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fChi2Dof.

◆ GetCocktailHistogram()

TH1* PairAnalysisSignalExt::GetCocktailHistogram ( ) const
inline

Definition at line 152 of file PairAnalysisSignalExt.h.

References fHistCocktail.

◆ GetCombinedFunction() [1/2]

TF1* PairAnalysisFunction::GetCombinedFunction ( ) const
inlineinherited

Definition at line 57 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fFuncSigBack.

◆ GetCombinedFunction() [2/2]

TF1* PairAnalysisFunction::GetCombinedFunction ( ) const
inlineinherited

Definition at line 83 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFuncSigBack.

Referenced by DescribePeakShape().

◆ GetDof() [1/2]

Int_t PairAnalysisFunction::GetDof ( ) const
inlineinherited

Definition at line 59 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fDof.

◆ GetDof() [2/2]

Int_t PairAnalysisFunction::GetDof ( ) const
inlineinherited

Definition at line 86 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fDof.

◆ GetErrors()

const TVectorD& PairAnalysisSignalExt::GetErrors ( ) const
inline

Definition at line 125 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetExtractionMethod()

ESignalExtractionMethod PairAnalysisSignalExt::GetExtractionMethod ( ) const
inline

Definition at line 114 of file PairAnalysisSignalExt.h.

References fPeakMethod.

◆ GetFitMax()

Double_t PairAnalysisFunction::GetFitMax ( ) const
inlineinherited

Definition at line 89 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFitMax.

◆ GetFitMin()

Double_t PairAnalysisFunction::GetFitMin ( ) const
inlineinherited

Definition at line 88 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFitMin.

◆ GetHagedorn()

TF1 * PairAnalysisFunction::GetHagedorn ( )
inherited

◆ GetIntegralMax()

Double_t PairAnalysisSignalExt::GetIntegralMax ( ) const
inline

Definition at line 111 of file PairAnalysisSignalExt.h.

References fIntMax.

◆ GetIntegralMin()

Double_t PairAnalysisSignalExt::GetIntegralMin ( ) const
inline

Definition at line 110 of file PairAnalysisSignalExt.h.

References fIntMin.

◆ GetLevi()

TF1 * PairAnalysisFunction::GetLevi ( )
inherited

◆ GetMass()

Double_t PairAnalysisSignalExt::GetMass ( ) const
inline

Definition at line 134 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetMassError()

Double_t PairAnalysisSignalExt::GetMassError ( ) const
inline

Definition at line 135 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetMassWidth()

Double_t PairAnalysisSignalExt::GetMassWidth ( ) const
inline

Definition at line 136 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetMassWidthError()

Double_t PairAnalysisSignalExt::GetMassWidthError ( ) const
inline

Definition at line 137 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetMatchChi2NDF()

Double_t PairAnalysisSignalExt::GetMatchChi2NDF ( ) const
inline

Definition at line 138 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetMatchChi2NDFError()

Double_t PairAnalysisSignalExt::GetMatchChi2NDFError ( ) const
inline

Definition at line 139 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetMCSignalShape()

TH1* PairAnalysisSignalExt::GetMCSignalShape ( ) const
inline

Definition at line 146 of file PairAnalysisSignalExt.h.

References fHistSignalMC.

◆ GetMethod()

EBackgroundMethod PairAnalysisSignalExt::GetMethod ( ) const
inline

Definition at line 115 of file PairAnalysisSignalExt.h.

References fMethod.

◆ GetParticleOfInterest()

Int_t PairAnalysisFunction::GetParticleOfInterest ( ) const
inlineinherited

Definition at line 85 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fPOIpdg.

◆ GetPeakShape()

TObject* PairAnalysisSignalExt::GetPeakShape ( ) const
inline

Definition at line 154 of file PairAnalysisSignalExt.h.

References fgPeakShape.

◆ GetPtExp()

TF1 * PairAnalysisFunction::GetPtExp ( )
inherited

◆ GetRebin()

Int_t PairAnalysisSignalExt::GetRebin ( ) const
inline

Definition at line 112 of file PairAnalysisSignalExt.h.

References fRebin.

◆ GetRebinLimits()

TArrayD* PairAnalysisSignalExt::GetRebinLimits ( ) const
inline

Definition at line 113 of file PairAnalysisSignalExt.h.

References fBinLimits.

◆ GetRfactorHistogram()

TH1* PairAnalysisSignalExt::GetRfactorHistogram ( ) const
inline

Definition at line 153 of file PairAnalysisSignalExt.h.

References fHistRfactor.

◆ GetSB()

Double_t PairAnalysisSignalExt::GetSB ( ) const
inline

Definition at line 132 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetSBError()

Double_t PairAnalysisSignalExt::GetSBError ( ) const
inline

Definition at line 133 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetScaleFactor()

Double_t PairAnalysisSignalExt::GetScaleFactor ( ) const
inline

Definition at line 123 of file PairAnalysisSignalExt.h.

References fScaleFactor.

◆ GetScaleMax()

Double_t PairAnalysisSignalExt::GetScaleMax ( ) const
inline

Definition at line 117 of file PairAnalysisSignalExt.h.

References fScaleMax.

◆ GetScaleMax2()

Double_t PairAnalysisSignalExt::GetScaleMax2 ( ) const
inline

Definition at line 119 of file PairAnalysisSignalExt.h.

References fScaleMax2.

◆ GetScaleMin()

Double_t PairAnalysisSignalExt::GetScaleMin ( ) const
inline

Definition at line 116 of file PairAnalysisSignalExt.h.

References fScaleMin.

◆ GetScaleMin2()

Double_t PairAnalysisSignalExt::GetScaleMin2 ( ) const
inline

Definition at line 118 of file PairAnalysisSignalExt.h.

References fScaleMin2.

◆ GetSignal()

Double_t PairAnalysisSignalExt::GetSignal ( ) const
inline

Definition at line 126 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetSignalError()

Double_t PairAnalysisSignalExt::GetSignalError ( ) const
inline

Definition at line 127 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetSignalFunction() [1/2]

TF1* PairAnalysisFunction::GetSignalFunction ( ) const
inlineinherited

Definition at line 55 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fFuncSignal.

◆ GetSignalFunction() [2/2]

TF1* PairAnalysisFunction::GetSignalFunction ( ) const
inlineinherited

Definition at line 81 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFuncSignal.

◆ GetSignalHistogram()

TH1* PairAnalysisSignalExt::GetSignalHistogram ( ) const
inline

Definition at line 147 of file PairAnalysisSignalExt.h.

References fHistSignal.

◆ GetSignificance()

Double_t PairAnalysisSignalExt::GetSignificance ( ) const
inline

Definition at line 130 of file PairAnalysisSignalExt.h.

References fValues.

◆ GetSignificanceError()

Double_t PairAnalysisSignalExt::GetSignificanceError ( ) const
inline

Definition at line 131 of file PairAnalysisSignalExt.h.

References fErrors.

◆ GetSignificanceHistogram()

TH1* PairAnalysisSignalExt::GetSignificanceHistogram ( ) const
inline

Definition at line 149 of file PairAnalysisSignalExt.h.

References fHistSgn.

◆ GetSoverBHistogram()

TH1* PairAnalysisSignalExt::GetSoverBHistogram ( ) const
inline

Definition at line 148 of file PairAnalysisSignalExt.h.

References fHistSB.

◆ GetUnlikeSignHistogram()

TH1* PairAnalysisSignalExt::GetUnlikeSignHistogram ( ) const
inline

Definition at line 151 of file PairAnalysisSignalExt.h.

References fHistDataPM.

◆ GetValueName()

static const char* PairAnalysisSignalExt::GetValueName ( Int_t  i)
inlinestatic

Definition at line 140 of file PairAnalysisSignalExt.h.

References fgkValueNames, and i.

Referenced by Draw(), and FillSignificance().

◆ GetValues()

const TVectorD& PairAnalysisSignalExt::GetValues ( ) const
inline

Definition at line 124 of file PairAnalysisSignalExt.h.

References fValues.

◆ IsCocktailSubtracted()

Bool_t PairAnalysisSignalExt::IsCocktailSubtracted ( ) const
inline

Definition at line 109 of file PairAnalysisSignalExt.h.

References fCocktailSubtr.

◆ MergeObjects()

TH1 * PairAnalysisSignalExt::MergeObjects ( TH1 *  obj1,
TH1 *  obj2,
Double_t  val = +1. 
)
static

Definition at line 321 of file PairAnalysisSignalExt.cxx.

References i.

◆ operator=()

PairAnalysisSignalExt& PairAnalysisSignalExt::operator= ( const PairAnalysisSignalExt c)
protected

◆ PeakBgndFun() [1/2]

Double_t PairAnalysisFunction::PeakBgndFun ( const Double_t *  x,
const Double_t *  par 
)
protectedinherited

◆ PeakBgndFun() [2/2]

Double_t PairAnalysisFunction::PeakBgndFun ( const Double_t *  x,
const Double_t *  par 
)
protectedinherited

◆ PeakFunCB() [1/2]

Double_t PairAnalysisFunction::PeakFunCB ( const Double_t *  x,
const Double_t *  par 
)
inherited

◆ PeakFunCB() [2/2]

Double_t PairAnalysisFunction::PeakFunCB ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 121 of file PairAnalysisFunction.cxx.

References x.

Referenced by DescribePeakShape().

◆ PeakFunExpGaussExp()

Double_t PairAnalysisFunction::PeakFunExpGaussExp ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 177 of file PairAnalysisFunction.cxx.

References x.

◆ PeakFunGaus()

Double_t PairAnalysisFunction::PeakFunGaus ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 130 of file PairAnalysisSignalFunc.cxx.

References x.

◆ PeakFunGauss()

Double_t PairAnalysisFunction::PeakFunGauss ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 202 of file PairAnalysisFunction.cxx.

References x.

Referenced by DescribePeakShape().

◆ PeakFunMC() [1/2]

Double_t PairAnalysisFunction::PeakFunMC ( const Double_t *  x,
const Double_t *  par 
)
inherited

◆ PeakFunMC() [2/2]

Double_t PairAnalysisFunction::PeakFunMC ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 99 of file PairAnalysisFunction.cxx.

References PairAnalysisFunction::fgHistSimPM, and x.

Referenced by DescribePeakShape().

◆ PeakFunPowGaussPow()

Double_t PairAnalysisFunction::PeakFunPowGaussPow ( const Double_t *  x,
const Double_t *  par 
)
inherited

Definition at line 148 of file PairAnalysisFunction.cxx.

References x.

◆ Print()

void PairAnalysisSignalExt::Print ( Option_t *  option = "") const
virtual

Reimplemented from PairAnalysisFunction.

Reimplemented in PairAnalysisSignalFit.

Definition at line 214 of file PairAnalysisSignalExt.cxx.

References fErrors, fIntMax, fIntMin, fScaleFactor, and fValues.

◆ Process()

void PairAnalysisSignalExt::Process ( TObjArray *const  arrhist)

This function needs to be implemented by the signal extraction classes. Here all the work should be done.

The signal extraction is done on the mass spectra. The TObjArray should contain the Inv. Mass spectra of the 8 possible combinations for single and mixed events defined in PairAnalysis.cxx

rebin all other individualy

Definition at line 596 of file PairAnalysisSignalExt.cxx.

References fArrCocktail, fArrHists, fBinLimits, fCocktailSubtr, fgPeakShape, fHistBackground, fHistCocktail, fHistDataME, fHistDataMM, fHistDataPM, fHistDataPP, fHistDataTR, fHistMixMM, fHistMixMP, fHistMixPM, fHistMixPP, fHistRfactor, fHistSB, fHistSgn, fHistSignal, FindObject(), fMethod, fPeakIsTF1, fProcessed, fRebin, fRebinStat, i, kCocktail, kEventMixing, kLikeSign, kLikeSignArithm, kLikeSignArithmRcorr, kLikeSignRcorr, PairAnalysis::kMEMM, PairAnalysis::kMEMP, PairAnalysis::kMEPM, PairAnalysis::kMEPP, kRotation, PairAnalysis::kSEMM, PairAnalysis::kSEPM, PairAnalysis::kSEPMRot, PairAnalysis::kSEPP, PairAnalysisHelper::MakeStatBinLimits(), ProcessCocktail(), ProcessEM(), ProcessLS(), and ProcessTR().

Referenced by PairAnalysisSignalFit::Process().

◆ ProcessCocktail()

void PairAnalysisSignalExt::ProcessCocktail ( )

◆ ProcessEM()

◆ ProcessLS()

void PairAnalysisSignalExt::ProcessLS ( )

TODO: set bin error of empty bins to 0.5*TMath::ChisquareQuantile(0.6827,2) according to PDG and RooFit (http://pdg.lbl.gov/2011/reviews/rpp2011-rev-statistics.pdf) The lower limit should of course be 0, use TGraphAsymmError of when fitting the distributions

Definition at line 915 of file PairAnalysisSignalExt.cxx.

References DescribePeakShape(), fCocktailSubtr, fErrors, fgHistSimPM, fHistBackground, fHistCocktail, fHistDataMM, fHistDataPM, fHistDataPP, fHistMixMM, fHistMixPM, fHistMixPP, fHistRfactor, fHistSignal, fIntMax, fIntMin, fMethod, fMixingCorr, fPeakMethod, fProcessed, fValues, kLikeSignArithm, kLikeSignArithmRcorr, kLikeSignRcorr, and ScaleBackground().

Referenced by Process().

◆ ProcessTR()

◆ ScaleBackground()

void PairAnalysisSignalExt::ScaleBackground ( )
protected

◆ ScaleHistograms() [1/2]

Double_t PairAnalysisSignalExt::ScaleHistograms ( TH1 *  histRaw,
TH1 *  histBackground,
Double_t  intMin,
Double_t  intMax 
)

Definition at line 243 of file PairAnalysisSignalExt.cxx.

References fScaleFactor.

Referenced by ScaleBackground(), and ScaleHistograms().

◆ ScaleHistograms() [2/2]

Double_t PairAnalysisSignalExt::ScaleHistograms ( TH1 *  histRaw,
TH1 *  histBackground,
Double_t  intMin,
Double_t  intMax,
Double_t  intMin2,
Double_t  intMax2 
)

Definition at line 277 of file PairAnalysisSignalExt.cxx.

References fScaleFactor, and ScaleHistograms().

◆ SetCocktailContribution()

void PairAnalysisSignalExt::SetCocktailContribution ( TObjArray *  arr,
Bool_t  subtract = kTRUE 
)
inline

Definition at line 102 of file PairAnalysisSignalExt.h.

References fArrCocktail, and fCocktailSubtr.

◆ SetDefault()

void PairAnalysisFunction::SetDefault ( EFunction  predefinedFunc)
inherited

◆ SetDefaults() [1/2]

void PairAnalysisFunction::SetDefaults ( Int_t  type)
inherited

◆ SetDefaults() [2/2]

void PairAnalysisFunction::SetDefaults ( Int_t  type)
inherited

◆ SetExtractionMethod()

void PairAnalysisSignalExt::SetExtractionMethod ( ESignalExtractionMethod  method,
PairAnalysisFunction sigF = 0x0 
)
inline

Definition at line 80 of file PairAnalysisSignalExt.h.

References fExtrFunc, and fPeakMethod.

◆ SetFitOption() [1/2]

void PairAnalysisFunction::SetFitOption ( const char *  opt)
inlineinherited

Definition at line 32 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fFitOpt.

◆ SetFitOption() [2/2]

void PairAnalysisFunction::SetFitOption ( const char *  opt)
inlineinherited

Definition at line 46 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fFitOpt.

◆ SetFitRange()

void PairAnalysisFunction::SetFitRange ( Double_t  min,
Double_t  max 
)
inlineinherited

◆ SetFunction()

void PairAnalysisFunction::SetFunction ( TF1 *const  combined,
TF1 *const  sig = 0,
TF1 *const  back = 0,
Int_t  parM = 1,
Int_t  parMres = 2 
)
inherited

◆ SetFunctions()

void PairAnalysisFunction::SetFunctions ( TF1 *const  combined,
TF1 *const  sig = 0,
TF1 *const  back = 0,
Int_t  parM = 1,
Int_t  parMres = 2 
)
inherited

◆ SetFWHM()

void PairAnalysisSignalExt::SetFWHM ( )
inlineprotected

Definition at line 341 of file PairAnalysisSignalExt.h.

References fErrors, fgPeakShape, fValues, and i.

Referenced by DescribePeakShape().

◆ SetIntegralRange()

void PairAnalysisSignalExt::SetIntegralRange ( Double_t  min,
Double_t  max 
)
inline

Definition at line 66 of file PairAnalysisSignalExt.h.

References fIntMax, fIntMin, max(), and min().

◆ SetMCSignalShape()

void PairAnalysisSignalExt::SetMCSignalShape ( TH1F *  hist)
inline

Definition at line 62 of file PairAnalysisSignalExt.h.

References fgHistSimPM, and fHistSignalMC.

◆ SetMethod()

void PairAnalysisSignalExt::SetMethod ( EBackgroundMethod  method)
inline

Definition at line 89 of file PairAnalysisSignalExt.h.

References fMethod.

◆ SetMixingCorrection()

void PairAnalysisSignalExt::SetMixingCorrection ( Bool_t  mixcorr = kTRUE)
inline

Definition at line 85 of file PairAnalysisSignalExt.h.

References fMixingCorr.

◆ SetNTrackRotations()

void PairAnalysisSignalExt::SetNTrackRotations ( Int_t  iterations)
inline

Definition at line 90 of file PairAnalysisSignalExt.h.

References fNiterTR.

◆ SetParticleOfInterest()

void PairAnalysisFunction::SetParticleOfInterest ( Int_t  pdgcode)
inlineinherited

◆ SetPlotRange()

void PairAnalysisSignalExt::SetPlotRange ( Double_t  min,
Double_t  max 
)
inline

Definition at line 70 of file PairAnalysisSignalExt.h.

References fPlotMax, fPlotMin, max(), and min().

◆ SetRebin() [1/3]

void PairAnalysisSignalExt::SetRebin ( Int_t  factor)
inline

Definition at line 74 of file PairAnalysisSignalExt.h.

References fRebin.

◆ SetRebin() [2/3]

void PairAnalysisSignalExt::SetRebin ( TArrayD *  limits)
inline

Definition at line 76 of file PairAnalysisSignalExt.h.

References fBinLimits.

◆ SetRebin() [3/3]

void PairAnalysisSignalExt::SetRebin ( TVectorD *  limits)
inline

Definition at line 77 of file PairAnalysisSignalExt.h.

References fBinLimits.

◆ SetScaleBackgroundTo()

void PairAnalysisSignalExt::SetScaleBackgroundTo ( EScalingMethod  method,
Double_t  intMin,
Double_t  intMax,
Double_t  intMin2 = 0.,
Double_t  intMax2 = 0. 
)
inline

Definition at line 91 of file PairAnalysisSignalExt.h.

References fScaleMax, fScaleMax2, fScaleMin, fScaleMin2, and fSclMethod.

◆ SetSignificanceAndSOB()

void PairAnalysisSignalExt::SetSignificanceAndSOB ( )
inlineprotected

◆ SetStatRebin()

void PairAnalysisSignalExt::SetStatRebin ( Double_t  stat)
inline

Definition at line 75 of file PairAnalysisSignalExt.h.

References fRebinStat.

◆ SetUseIntegral() [1/2]

void PairAnalysisFunction::SetUseIntegral ( Bool_t  flag = kTRUE)
inlineinherited

Definition at line 31 of file PairAnalysisSignalFunc.h.

References PairAnalysisFunction::fUseIntegral.

◆ SetUseIntegral() [2/2]

void PairAnalysisFunction::SetUseIntegral ( Bool_t  flag = kTRUE)
inlineinherited

Definition at line 45 of file PairAnalysisFunction.h.

References PairAnalysisFunction::fUseIntegral.

Member Data Documentation

◆ fArrCocktail

TObjArray* PairAnalysisSignalExt::fArrCocktail = NULL
protected

◆ fArrHists

TObjArray* PairAnalysisSignalExt::fArrHists = NULL
protected

Definition at line 210 of file PairAnalysisSignalExt.h.

Referenced by Draw(), Process(), and ~PairAnalysisSignalExt().

◆ fBinLimits

TArrayD* PairAnalysisSignalExt::fBinLimits = NULL
protected

◆ fChi2Dof

Double_t PairAnalysisFunction::fChi2Dof = 0.
protectedinherited

◆ fCocktailSubtr

Bool_t PairAnalysisSignalExt::fCocktailSubtr = kFALSE
protected

◆ fDof

Int_t PairAnalysisFunction::fDof = 0
protectedinherited

◆ fErrors

◆ fExtrFunc

PairAnalysisFunction* PairAnalysisSignalExt::fExtrFunc = NULL
protected

◆ fFitMax

◆ fFitMin

◆ fFitOpt

TString PairAnalysisFunction::fFitOpt = "SMNQE"
protectedinherited

◆ fFuncBackground

◆ fFuncSigBack

◆ fFuncSignal

◆ fgHistSimPM

TH1F* PairAnalysisSignalExt::fgHistSimPM
staticprotected

◆ fgkBackgroundMethodNames

const char * PairAnalysisSignalExt::fgkBackgroundMethodNames
staticprotected
Initial value:
= {
"FittedMC",
"Fitted",
"like-sign",
"like-sign (arithm.)",
"like-sign #times R(#Deltam)",
"like-sign (arithm.) #times R(#Deltam)",
"fitted like-sign",
"mixed event",
"fitted mixed event",
"track rotation",
"cocktail"}

Definition at line 274 of file PairAnalysisSignalExt.h.

Referenced by Draw().

◆ fgkValueNames

const char * PairAnalysisSignalExt::fgkValueNames
staticprotected
Initial value:
=
{"S", "B", "S/#sqrt{S+B}", "S/B", "Mass", "MassWidth", "ChiSqNDFmatch"}

Definition at line 272 of file PairAnalysisSignalExt.h.

Referenced by DrawStats(), and GetValueName().

◆ fgPeakShape

TObject* PairAnalysisSignalExt::fgPeakShape
staticprotected

Definition at line 262 of file PairAnalysisSignalExt.h.

Referenced by DescribePeakShape(), Draw(), GetPeakShape(), Process(), and SetFWHM().

◆ fHistBackground

◆ fHistCocktail

TH1* PairAnalysisSignalExt::fHistCocktail = NULL
protected

◆ fHistDataME

TH1* PairAnalysisSignalExt::fHistDataME
protected
Initial value:
=
NULL

Definition at line 221 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ~PairAnalysisSignalExt().

◆ fHistDataMM

TH1* PairAnalysisSignalExt::fHistDataMM = NULL
protected

◆ fHistDataPM

◆ fHistDataPP

TH1* PairAnalysisSignalExt::fHistDataPP = NULL
protected

◆ fHistDataTR

TH1* PairAnalysisSignalExt::fHistDataTR = NULL
protected

Definition at line 230 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ProcessTR().

◆ fHistMixMM

TH1* PairAnalysisSignalExt::fHistMixMM = NULL
protected

Definition at line 228 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ProcessLS().

◆ fHistMixMP

TH1* PairAnalysisSignalExt::fHistMixMP = NULL
protected

Definition at line 229 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ProcessEM().

◆ fHistMixPM

TH1* PairAnalysisSignalExt::fHistMixPM = NULL
protected

Definition at line 226 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ProcessLS().

◆ fHistMixPP

TH1* PairAnalysisSignalExt::fHistMixPP = NULL
protected

Definition at line 227 of file PairAnalysisSignalExt.h.

Referenced by Process(), and ProcessLS().

◆ fHistRfactor

TH1* PairAnalysisSignalExt::fHistRfactor = NULL
protected

◆ fHistSB

TH1* PairAnalysisSignalExt::fHistSB = NULL
protected

Definition at line 213 of file PairAnalysisSignalExt.h.

Referenced by Draw(), GetSoverBHistogram(), Process(), and ~PairAnalysisSignalExt().

◆ fHistSgn

TH1* PairAnalysisSignalExt::fHistSgn = NULL
protected

◆ fHistSignal

◆ fHistSignalMC

TH1* PairAnalysisSignalExt::fHistSignalMC = NULL
protected

◆ fIntMax

◆ fIntMin

◆ fMethod

EBackgroundMethod PairAnalysisSignalExt::fMethod = kLikeSign
protected

◆ fMixingCorr

Bool_t PairAnalysisSignalExt::fMixingCorr
protected
Initial value:
=
kFALSE

Definition at line 254 of file PairAnalysisSignalExt.h.

Referenced by ProcessLS(), and SetMixingCorrection().

◆ fNiterTR

Int_t PairAnalysisSignalExt::fNiterTR
protected
Initial value:
=
1

Definition at line 251 of file PairAnalysisSignalExt.h.

Referenced by ProcessTR(), and SetNTrackRotations().

◆ fNparBgnd

Int_t PairAnalysisFunction::fNparBgnd = 0
protectedinherited

Definition at line 124 of file PairAnalysisFunction.h.

Referenced by PairAnalysisFunction::CombineFunc().

◆ fNparPeak

Int_t PairAnalysisFunction::fNparPeak = 0
protectedinherited

◆ fParMass

Int_t PairAnalysisFunction::fParMass
protectedinherited

◆ fParMassWidth

Int_t PairAnalysisFunction::fParMassWidth
protectedinherited

◆ fPeakIsTF1

Bool_t PairAnalysisSignalExt::fPeakIsTF1 = kFALSE
protected

Definition at line 263 of file PairAnalysisSignalExt.h.

Referenced by DescribePeakShape(), Draw(), and Process().

◆ fPeakMethod

ESignalExtractionMethod PairAnalysisSignalExt::fPeakMethod
protected

◆ fPlotMax

Double_t PairAnalysisSignalExt::fPlotMax = 0.
protected

Definition at line 238 of file PairAnalysisSignalExt.h.

Referenced by Draw(), and SetPlotRange().

◆ fPlotMin

Double_t PairAnalysisSignalExt::fPlotMin = 0.
protected

Definition at line 237 of file PairAnalysisSignalExt.h.

Referenced by Draw(), and SetPlotRange().

◆ fPOI

TParticlePDG* PairAnalysisFunction::fPOI = NULL
protectedinherited

◆ fPOIpdg

Int_t PairAnalysisFunction::fPOIpdg = 443
protectedinherited

◆ fProcessed

Bool_t PairAnalysisSignalExt::fProcessed = kFALSE
protected

◆ fRebin

Int_t PairAnalysisSignalExt::fRebin = 1
protected

◆ fRebinStat

Double_t PairAnalysisSignalExt::fRebinStat = 1.
protected

Definition at line 241 of file PairAnalysisSignalExt.h.

Referenced by Process(), and SetStatRebin().

◆ fScaleFactor

Double_t PairAnalysisSignalExt::fScaleFactor = 1.
protected

Definition at line 253 of file PairAnalysisSignalExt.h.

Referenced by GetScaleFactor(), Print(), ScaleBackground(), and ScaleHistograms().

◆ fScaleMax

Double_t PairAnalysisSignalExt::fScaleMax = 0.
protected

Definition at line 248 of file PairAnalysisSignalExt.h.

Referenced by GetScaleMax(), ScaleBackground(), and SetScaleBackgroundTo().

◆ fScaleMax2

Double_t PairAnalysisSignalExt::fScaleMax2 = 0.
protected

Definition at line 250 of file PairAnalysisSignalExt.h.

Referenced by GetScaleMax2(), ScaleBackground(), and SetScaleBackgroundTo().

◆ fScaleMin

Double_t PairAnalysisSignalExt::fScaleMin = 0.
protected

Definition at line 247 of file PairAnalysisSignalExt.h.

Referenced by GetScaleMin(), ScaleBackground(), and SetScaleBackgroundTo().

◆ fScaleMin2

Double_t PairAnalysisSignalExt::fScaleMin2 = 0.
protected

Definition at line 249 of file PairAnalysisSignalExt.h.

Referenced by GetScaleMin2(), ScaleBackground(), and SetScaleBackgroundTo().

◆ fSclMethod

EScalingMethod PairAnalysisSignalExt::fSclMethod = kSclToRaw
protected

Definition at line 246 of file PairAnalysisSignalExt.h.

Referenced by ScaleBackground(), and SetScaleBackgroundTo().

◆ fUseIntegral

Bool_t PairAnalysisFunction::fUseIntegral
protectedinherited
Initial value:
=
kFALSE

Definition at line 117 of file PairAnalysisFunction.h.

Referenced by PairAnalysisSignalFit::ProcessFit(), and PairAnalysisFunction::SetUseIntegral().

◆ fValues


The documentation for this class was generated from the following files:
PairAnalysisSignalExt::kBinCounting
@ kBinCounting
Definition: PairAnalysisSignalExt.h:43