CbmRoot
|
#include <PairAnalysisSignalExt.h>
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) | |
PairAnalysisSignalExt & | operator= (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 |
PairAnalysisFunction * | fExtrFunc = 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] |
Definition at line 25 of file PairAnalysisSignalExt.h.
Enumerator | |
---|---|
kFittedMC | |
kFitted | |
kLikeSign | |
kLikeSignArithm | |
kLikeSignRcorr | |
kLikeSignArithmRcorr | |
kLikeSignFit | |
kEventMixing | |
kEventMixingFit | |
kRotation | |
kCocktail |
Definition at line 28 of file PairAnalysisSignalExt.h.
|
inherited |
Enumerator | |
---|---|
kBoltzmann | |
kPtExp | |
kHagedorn | |
kLevi |
Definition at line 25 of file PairAnalysisFunction.h.
Enumerator | |
---|---|
kSclToRaw | |
kSclToLikeSign |
Definition at line 52 of file PairAnalysisSignalExt.h.
Enumerator | |
---|---|
kBinCounting | |
kMCScaledMax | |
kMCScaledInt | |
kMCFitted | |
kCrystalBall | |
kGaus | |
kUserFunc |
Definition at line 42 of file PairAnalysisSignalExt.h.
PairAnalysisSignalExt::PairAnalysisSignalExt | ( | ) |
Definition at line 65 of file PairAnalysisSignalExt.cxx.
PairAnalysisSignalExt::PairAnalysisSignalExt | ( | const char * | name, |
const char * | title | ||
) |
Definition at line 73 of file PairAnalysisSignalExt.cxx.
PairAnalysisSignalExt::~PairAnalysisSignalExt | ( | ) |
Definition at line 117 of file PairAnalysisSignalExt.cxx.
References fArrCocktail, fArrHists, fBinLimits, fExtrFunc, fHistBackground, fHistCocktail, fHistDataME, fHistDataMM, fHistDataPM, fHistDataPP, fHistRfactor, fHistSB, fHistSgn, fHistSignal, and fHistSignalMC.
|
protected |
Definition at line 82 of file PairAnalysisSignalExt.cxx.
|
inherited |
|
inherited |
Definition at line 314 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFitMax, PairAnalysisFunction::fFitMin, PairAnalysisFunction::fFuncBackground, PairAnalysisFunction::fFuncSigBack, PairAnalysisFunction::fFuncSignal, PairAnalysisFunction::fNparBgnd, PairAnalysisFunction::fNparPeak, and PairAnalysisFunction::PeakBgndFun().
TObject * PairAnalysisSignalExt::DescribePeakShape | ( | ESignalExtractionMethod | method = kMCFitted , |
Bool_t | replaceValErr = kFALSE , |
||
TH1F * | mcShape = 0x0 |
||
) |
Definition at line 388 of file PairAnalysisSignalExt.cxx.
References fErrors, fExtrFunc, PairAnalysisFunction::fFitMax, PairAnalysisFunction::fFitMin, fgHistSimPM, fgPeakShape, fHistSignal, fIntMax, fIntMin, fPeakIsTF1, fPeakMethod, PairAnalysisFunction::fPOIpdg, fRebin, fValues, PairAnalysisFunction::GetCombinedFunction(), kBinCounting, kCrystalBall, kGaus, kMCFitted, kMCScaledInt, kMCScaledMax, kUserFunc, PairAnalysisFunction::PairAnalysisFunction(), PairAnalysisFunction::PeakFunCB(), PairAnalysisFunction::PeakFunGauss(), PairAnalysisFunction::PeakFunMC(), SetFWHM(), and SetSignificanceAndSOB().
Referenced by ProcessCocktail(), ProcessEM(), ProcessLS(), and ProcessTR().
|
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().
TPaveText * PairAnalysisSignalExt::DrawStats | ( | Double_t | x1 = 0. , |
Double_t | y1 = 0. , |
||
Double_t | x2 = 0. , |
||
Double_t | y2 = 0. , |
||
TString | opt = "pRnbsSmrc" |
||
) |
Definition at line 140 of file PairAnalysisSignalExt.cxx.
References fErrors, fgkValueNames, fIntMax, fIntMin, PairAnalysisFunction::fPOI, and fValues.
Referenced by PairAnalysisSignalFit::Draw(), and Draw().
|
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().
|
inline |
Definition at line 200 of file PairAnalysisSignalExt.h.
|
inline |
Definition at line 204 of file PairAnalysisSignalExt.h.
|
inline |
Definition at line 283 of file PairAnalysisSignalExt.h.
References i, and PairAnalysis::PairClassName().
Referenced by Process().
|
inline |
|
inline |
Definition at line 128 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 129 of file PairAnalysisSignalExt.h.
References fErrors.
|
inlineinherited |
Definition at line 56 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fFuncBackground.
|
inlineinherited |
Definition at line 82 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFuncBackground.
|
inline |
Definition at line 150 of file PairAnalysisSignalExt.h.
References fHistBackground.
|
inherited |
Definition at line 361 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncSigBack, and PairAnalysisFunction::fPOI.
Referenced by PairAnalysisFunction::SetDefault().
|
inlineinherited |
Definition at line 60 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fChi2Dof.
|
inlineinherited |
Definition at line 87 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fChi2Dof.
|
inline |
Definition at line 152 of file PairAnalysisSignalExt.h.
References fHistCocktail.
|
inlineinherited |
Definition at line 57 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fFuncSigBack.
|
inlineinherited |
Definition at line 83 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFuncSigBack.
Referenced by DescribePeakShape().
|
inlineinherited |
Definition at line 59 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fDof.
|
inlineinherited |
Definition at line 86 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fDof.
|
inline |
Definition at line 125 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 114 of file PairAnalysisSignalExt.h.
References fPeakMethod.
|
inlineinherited |
Definition at line 89 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFitMax.
|
inlineinherited |
Definition at line 88 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFitMin.
|
inherited |
Definition at line 385 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncSigBack.
Referenced by PairAnalysisFunction::SetDefault().
|
inline |
Definition at line 111 of file PairAnalysisSignalExt.h.
References fIntMax.
|
inline |
Definition at line 110 of file PairAnalysisSignalExt.h.
References fIntMin.
|
inherited |
Definition at line 398 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncSigBack, and PairAnalysisFunction::fPOI.
Referenced by PairAnalysisFunction::SetDefault().
|
inline |
Definition at line 134 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 135 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 136 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 137 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 138 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 139 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 146 of file PairAnalysisSignalExt.h.
References fHistSignalMC.
|
inline |
Definition at line 115 of file PairAnalysisSignalExt.h.
References fMethod.
|
inlineinherited |
Definition at line 85 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fPOIpdg.
|
inline |
Definition at line 154 of file PairAnalysisSignalExt.h.
References fgPeakShape.
|
inherited |
Definition at line 375 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncSigBack.
Referenced by PairAnalysisFunction::SetDefault().
|
inline |
Definition at line 112 of file PairAnalysisSignalExt.h.
References fRebin.
|
inline |
Definition at line 113 of file PairAnalysisSignalExt.h.
References fBinLimits.
|
inline |
Definition at line 153 of file PairAnalysisSignalExt.h.
References fHistRfactor.
|
inline |
Definition at line 132 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 133 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 123 of file PairAnalysisSignalExt.h.
References fScaleFactor.
|
inline |
Definition at line 117 of file PairAnalysisSignalExt.h.
References fScaleMax.
|
inline |
Definition at line 119 of file PairAnalysisSignalExt.h.
References fScaleMax2.
|
inline |
Definition at line 116 of file PairAnalysisSignalExt.h.
References fScaleMin.
|
inline |
Definition at line 118 of file PairAnalysisSignalExt.h.
References fScaleMin2.
|
inline |
Definition at line 126 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 127 of file PairAnalysisSignalExt.h.
References fErrors.
|
inlineinherited |
Definition at line 55 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fFuncSignal.
|
inlineinherited |
Definition at line 81 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFuncSignal.
|
inline |
Definition at line 147 of file PairAnalysisSignalExt.h.
References fHistSignal.
|
inline |
Definition at line 130 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 131 of file PairAnalysisSignalExt.h.
References fErrors.
|
inline |
Definition at line 149 of file PairAnalysisSignalExt.h.
References fHistSgn.
|
inline |
Definition at line 148 of file PairAnalysisSignalExt.h.
References fHistSB.
|
inline |
Definition at line 151 of file PairAnalysisSignalExt.h.
References fHistDataPM.
|
inlinestatic |
Definition at line 140 of file PairAnalysisSignalExt.h.
References fgkValueNames, and i.
Referenced by Draw(), and FillSignificance().
|
inline |
Definition at line 124 of file PairAnalysisSignalExt.h.
References fValues.
|
inline |
Definition at line 109 of file PairAnalysisSignalExt.h.
References fCocktailSubtr.
|
static |
Definition at line 321 of file PairAnalysisSignalExt.cxx.
References i.
|
protected |
|
protectedinherited |
|
protectedinherited |
Definition at line 339 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncBackground, PairAnalysisFunction::fFuncSignal, PairAnalysisFunction::fNparPeak, and x.
Referenced by PairAnalysisFunction::CombineFunc().
|
inherited |
|
inherited |
Definition at line 121 of file PairAnalysisFunction.cxx.
References x.
Referenced by DescribePeakShape().
|
inherited |
Definition at line 177 of file PairAnalysisFunction.cxx.
References x.
|
inherited |
Definition at line 130 of file PairAnalysisSignalFunc.cxx.
References x.
|
inherited |
Definition at line 202 of file PairAnalysisFunction.cxx.
References x.
Referenced by DescribePeakShape().
|
inherited |
|
inherited |
Definition at line 99 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fgHistSimPM, and x.
Referenced by DescribePeakShape().
|
inherited |
Definition at line 148 of file PairAnalysisFunction.cxx.
References x.
|
virtual |
Reimplemented from PairAnalysisFunction.
Reimplemented in PairAnalysisSignalFit.
Definition at line 214 of file PairAnalysisSignalExt.cxx.
References fErrors, fIntMax, fIntMin, fScaleFactor, and fValues.
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().
void PairAnalysisSignalExt::ProcessCocktail | ( | ) |
Definition at line 1120 of file PairAnalysisSignalExt.cxx.
References DescribePeakShape(), fArrCocktail, fErrors, fgHistSimPM, fHistBackground, fHistCocktail, fHistDataPM, fHistSignal, fIntMax, fIntMin, fPeakMethod, fProcessed, fValues, and ScaleBackground().
Referenced by Process().
void PairAnalysisSignalExt::ProcessEM | ( | ) |
Definition at line 1020 of file PairAnalysisSignalExt.cxx.
References DescribePeakShape(), fCocktailSubtr, fErrors, fgHistSimPM, fHistBackground, fHistCocktail, fHistDataPM, fHistMixMP, fHistSignal, fIntMax, fIntMin, fPeakMethod, fProcessed, fValues, and ScaleBackground().
Referenced by Process().
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().
void PairAnalysisSignalExt::ProcessTR | ( | ) |
Definition at line 1070 of file PairAnalysisSignalExt.cxx.
References DescribePeakShape(), fCocktailSubtr, fErrors, fgHistSimPM, fHistBackground, fHistCocktail, fHistDataPM, fHistDataTR, fHistSignal, fIntMax, fIntMin, fNiterTR, fPeakMethod, fProcessed, fValues, and ScaleBackground().
Referenced by Process().
|
protected |
Definition at line 1551 of file PairAnalysisSignalExt.cxx.
References fHistBackground, fHistDataMM, fHistDataPM, fHistDataPP, fScaleFactor, fScaleMax, fScaleMax2, fScaleMin, fScaleMin2, fSclMethod, kSclToLikeSign, kSclToRaw, and ScaleHistograms().
Referenced by ProcessCocktail(), ProcessEM(), ProcessLS(), and ProcessTR().
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().
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().
|
inline |
Definition at line 102 of file PairAnalysisSignalExt.h.
References fArrCocktail, and fCocktailSubtr.
|
inherited |
use a predefined function, that internally sets the "fFuncSigBack"
Definition at line 240 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::GetBoltzmann(), PairAnalysisFunction::GetHagedorn(), PairAnalysisFunction::GetLevi(), PairAnalysisFunction::GetPtExp(), PairAnalysisFunction::kBoltzmann, PairAnalysisFunction::kHagedorn, PairAnalysisFunction::kLevi, and PairAnalysisFunction::kPtExp.
|
inherited |
|
inherited |
Definition at line 254 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncBackground, PairAnalysisFunction::fFuncSigBack, and PairAnalysisFunction::fFuncSignal.
|
inline |
Definition at line 80 of file PairAnalysisSignalExt.h.
References fExtrFunc, and fPeakMethod.
|
inlineinherited |
Definition at line 32 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fFitOpt.
|
inlineinherited |
Definition at line 46 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFitOpt.
|
inlineinherited |
Definition at line 41 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fFitMax, PairAnalysisFunction::fFitMin, max(), and min().
|
inherited |
|
inherited |
Definition at line 216 of file PairAnalysisFunction.cxx.
References PairAnalysisFunction::fFuncBackground, PairAnalysisFunction::fFuncSigBack, PairAnalysisFunction::fFuncSignal, PairAnalysisFunction::fParMass, and PairAnalysisFunction::fParMassWidth.
|
inlineprotected |
Definition at line 341 of file PairAnalysisSignalExt.h.
References fErrors, fgPeakShape, fValues, and i.
Referenced by DescribePeakShape().
|
inline |
|
inline |
Definition at line 62 of file PairAnalysisSignalExt.h.
References fgHistSimPM, and fHistSignalMC.
|
inline |
Definition at line 89 of file PairAnalysisSignalExt.h.
References fMethod.
|
inline |
Definition at line 85 of file PairAnalysisSignalExt.h.
References fMixingCorr.
|
inline |
Definition at line 90 of file PairAnalysisSignalExt.h.
References fNiterTR.
|
inlineinherited |
Definition at line 37 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fPOI, and PairAnalysisFunction::fPOIpdg.
|
inline |
|
inline |
Definition at line 74 of file PairAnalysisSignalExt.h.
References fRebin.
|
inline |
Definition at line 76 of file PairAnalysisSignalExt.h.
References fBinLimits.
|
inline |
Definition at line 77 of file PairAnalysisSignalExt.h.
References fBinLimits.
|
inline |
Definition at line 91 of file PairAnalysisSignalExt.h.
References fScaleMax, fScaleMax2, fScaleMin, fScaleMin2, and fSclMethod.
|
inlineprotected |
Definition at line 314 of file PairAnalysisSignalExt.h.
References fErrors, and fValues.
Referenced by DescribePeakShape(), PairAnalysisSignalFit::ProcessFit(), and PairAnalysisSignalFit::ProcessFitLS().
|
inline |
Definition at line 75 of file PairAnalysisSignalExt.h.
References fRebinStat.
|
inlineinherited |
Definition at line 31 of file PairAnalysisSignalFunc.h.
References PairAnalysisFunction::fUseIntegral.
|
inlineinherited |
Definition at line 45 of file PairAnalysisFunction.h.
References PairAnalysisFunction::fUseIntegral.
|
protected |
Definition at line 211 of file PairAnalysisSignalExt.h.
Referenced by Draw(), Process(), ProcessCocktail(), SetCocktailContribution(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 210 of file PairAnalysisSignalExt.h.
Referenced by Draw(), Process(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 242 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetRebinLimits(), Process(), SetRebin(), and ~PairAnalysisSignalExt().
|
protectedinherited |
Definition at line 121 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::GetChi2Dof(), PairAnalysisSignalFit::Print(), and PairAnalysisFunction::Print().
|
protected |
Definition at line 256 of file PairAnalysisSignalExt.h.
Referenced by Draw(), IsCocktailSubtracted(), Process(), ProcessEM(), ProcessLS(), ProcessTR(), and SetCocktailContribution().
|
protectedinherited |
Definition at line 120 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::GetDof(), PairAnalysisSignalFit::Print(), and PairAnalysisFunction::Print().
|
protected |
Definition at line 233 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), DrawStats(), GetBackgroundError(), GetErrors(), GetMassError(), GetMassWidthError(), GetMatchChi2NDFError(), GetSBError(), GetSignalError(), GetSignificanceError(), Print(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), SetFWHM(), and SetSignificanceAndSOB().
|
protected |
Definition at line 258 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), SetExtractionMethod(), and ~PairAnalysisSignalExt().
|
protectedinherited |
Definition at line 107 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), DescribePeakShape(), PairAnalysisSignalFit::Draw(), PairAnalysisFunction::GetFitMax(), PairAnalysisSignalFit::Print(), PairAnalysisFunction::Print(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and PairAnalysisFunction::SetFitRange().
|
protectedinherited |
Definition at line 106 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), DescribePeakShape(), PairAnalysisSignalFit::Draw(), PairAnalysisFunction::GetFitMin(), PairAnalysisSignalFit::Print(), PairAnalysisFunction::Print(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and PairAnalysisFunction::SetFitRange().
|
protectedinherited |
Definition at line 116 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and PairAnalysisFunction::SetFitOption().
|
protectedinherited |
Definition at line 103 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), PairAnalysisSignalFit::Draw(), PairAnalysisFunction::GetBackgroundFunction(), PairAnalysisFunction::PeakBgndFun(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), PairAnalysisFunction::SetDefaults(), PairAnalysisFunction::SetFunctions(), and PairAnalysisFunction::~PairAnalysisFunction().
|
protectedinherited |
Definition at line 104 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), PairAnalysisSignalFit::Draw(), PairAnalysisFunction::GetBoltzmann(), PairAnalysisFunction::GetCombinedFunction(), PairAnalysisFunction::GetHagedorn(), PairAnalysisFunction::GetLevi(), PairAnalysisFunction::GetPtExp(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), PairAnalysisFunction::SetDefaults(), PairAnalysisFunction::SetFunctions(), and PairAnalysisFunction::~PairAnalysisFunction().
|
protectedinherited |
Definition at line 102 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), PairAnalysisFunction::GetSignalFunction(), PairAnalysisFunction::PeakBgndFun(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisFunction::SetDefaults(), PairAnalysisFunction::SetFunctions(), and PairAnalysisFunction::~PairAnalysisFunction().
|
staticprotected |
Definition at line 266 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), ProcessCocktail(), ProcessEM(), ProcessLS(), ProcessTR(), and SetMCSignalShape().
|
staticprotected |
Definition at line 274 of file PairAnalysisSignalExt.h.
Referenced by Draw().
|
staticprotected |
Definition at line 272 of file PairAnalysisSignalExt.h.
Referenced by DrawStats(), and GetValueName().
|
staticprotected |
Definition at line 262 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), Draw(), GetPeakShape(), Process(), and SetFWHM().
|
protected |
Definition at line 215 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetBackgroundHistogram(), Process(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), ScaleBackground(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 217 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetCocktailHistogram(), Process(), ProcessCocktail(), ProcessEM(), ProcessLS(), ProcessTR(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 221 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 220 of file PairAnalysisSignalExt.h.
Referenced by PairAnalysisSignalFit::Draw(), Process(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ScaleBackground(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 218 of file PairAnalysisSignalExt.h.
Referenced by PairAnalysisSignalFit::Draw(), Draw(), GetUnlikeSignHistogram(), Process(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), ScaleBackground(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 219 of file PairAnalysisSignalExt.h.
Referenced by PairAnalysisSignalFit::Draw(), Process(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ScaleBackground(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 230 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ProcessTR().
|
protected |
Definition at line 228 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ProcessLS().
|
protected |
Definition at line 229 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ProcessEM().
|
protected |
Definition at line 226 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ProcessLS().
|
protected |
Definition at line 227 of file PairAnalysisSignalExt.h.
Referenced by Process(), and ProcessLS().
|
protected |
Definition at line 223 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetRfactorHistogram(), Process(), ProcessLS(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 213 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetSoverBHistogram(), Process(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 214 of file PairAnalysisSignalExt.h.
Referenced by Draw(), GetSignificanceHistogram(), Process(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 212 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), Draw(), GetSignalHistogram(), Process(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 224 of file PairAnalysisSignalExt.h.
Referenced by GetMCSignalShape(), SetMCSignalShape(), and ~PairAnalysisSignalExt().
|
protected |
Definition at line 236 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), PairAnalysisSignalFit::Draw(), DrawStats(), GetIntegralMax(), Print(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), and SetIntegralRange().
|
protected |
Definition at line 235 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), PairAnalysisSignalFit::Draw(), DrawStats(), GetIntegralMin(), Print(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), and SetIntegralRange().
|
protected |
Definition at line 245 of file PairAnalysisSignalExt.h.
Referenced by PairAnalysisSignalFit::Draw(), Draw(), GetMethod(), PairAnalysisSignalFit::Process(), Process(), ProcessLS(), and SetMethod().
|
protected |
Definition at line 254 of file PairAnalysisSignalExt.h.
Referenced by ProcessLS(), and SetMixingCorrection().
|
protected |
Definition at line 251 of file PairAnalysisSignalExt.h.
Referenced by ProcessTR(), and SetNTrackRotations().
|
protectedinherited |
Definition at line 124 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc().
|
protectedinherited |
Definition at line 123 of file PairAnalysisFunction.h.
Referenced by PairAnalysisFunction::CombineFunc(), and PairAnalysisFunction::PeakBgndFun().
|
protectedinherited |
Definition at line 111 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and PairAnalysisFunction::SetFunctions().
|
protectedinherited |
Definition at line 113 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and PairAnalysisFunction::SetFunctions().
|
protected |
Definition at line 263 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), Draw(), and Process().
|
protected |
Definition at line 259 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), GetExtractionMethod(), ProcessCocktail(), ProcessEM(), ProcessLS(), ProcessTR(), and SetExtractionMethod().
|
protected |
Definition at line 238 of file PairAnalysisSignalExt.h.
Referenced by Draw(), and SetPlotRange().
|
protected |
Definition at line 237 of file PairAnalysisSignalExt.h.
Referenced by Draw(), and SetPlotRange().
|
protectedinherited |
Definition at line 109 of file PairAnalysisFunction.h.
Referenced by DrawStats(), PairAnalysisFunction::GetBoltzmann(), PairAnalysisFunction::GetLevi(), and PairAnalysisFunction::SetParticleOfInterest().
|
protectedinherited |
Definition at line 110 of file PairAnalysisFunction.h.
Referenced by DescribePeakShape(), PairAnalysisFunction::GetParticleOfInterest(), and PairAnalysisFunction::SetParticleOfInterest().
|
protected |
Definition at line 265 of file PairAnalysisSignalExt.h.
Referenced by Process(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), and ProcessTR().
|
protected |
Definition at line 240 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), Draw(), GetRebin(), Process(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), and SetRebin().
|
protected |
Definition at line 241 of file PairAnalysisSignalExt.h.
Referenced by Process(), and SetStatRebin().
|
protected |
Definition at line 253 of file PairAnalysisSignalExt.h.
Referenced by GetScaleFactor(), Print(), ScaleBackground(), and ScaleHistograms().
|
protected |
Definition at line 248 of file PairAnalysisSignalExt.h.
Referenced by GetScaleMax(), ScaleBackground(), and SetScaleBackgroundTo().
|
protected |
Definition at line 250 of file PairAnalysisSignalExt.h.
Referenced by GetScaleMax2(), ScaleBackground(), and SetScaleBackgroundTo().
|
protected |
Definition at line 247 of file PairAnalysisSignalExt.h.
Referenced by GetScaleMin(), ScaleBackground(), and SetScaleBackgroundTo().
|
protected |
Definition at line 249 of file PairAnalysisSignalExt.h.
Referenced by GetScaleMin2(), ScaleBackground(), and SetScaleBackgroundTo().
|
protected |
Definition at line 246 of file PairAnalysisSignalExt.h.
Referenced by ScaleBackground(), and SetScaleBackgroundTo().
|
protectedinherited |
Definition at line 117 of file PairAnalysisFunction.h.
Referenced by PairAnalysisSignalFit::ProcessFit(), and PairAnalysisFunction::SetUseIntegral().
|
protected |
Definition at line 232 of file PairAnalysisSignalExt.h.
Referenced by DescribePeakShape(), DrawStats(), GetBackground(), GetMass(), GetMassWidth(), GetMatchChi2NDF(), GetSB(), GetSignal(), GetSignificance(), GetValues(), Print(), ProcessCocktail(), ProcessEM(), PairAnalysisSignalFit::ProcessFit(), PairAnalysisSignalFit::ProcessFitLS(), ProcessLS(), ProcessTR(), SetFWHM(), and SetSignificanceAndSOB().