LauCPFitModel.cc
Go to the documentation of this file.
48 LauCPFitModel::LauCPFitModel(LauIsobarDynamics* negModel, LauIsobarDynamics* posModel, Bool_t tagged, const TString& tagVarName) : LauAbsFitModel(),
92 for (LauBkgndEmbDataList::iterator iter = negBkgndTree_.begin(); iter != negBkgndTree_.end(); ++iter) {
95 for (LauBkgndEmbDataList::iterator iter = posBkgndTree_.begin(); iter != posBkgndTree_.end(); ++iter) {
121 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : The LauParameter pointer is null." << std::endl;
125 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal yield." << std::endl;
129 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal asymmetry." << std::endl;
135 if ( ! name.Contains("signalEvents") && !( name.BeginsWith("signal") && name.EndsWith("Events") ) ) {
144 void LauCPFitModel::setNSigEvents( LauParameter* nSigEvents, LauParameter* sigAsym, Bool_t forceAsym )
147 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : The event LauParameter pointer is null." << std::endl;
151 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : The asym LauParameter pointer is null." << std::endl;
156 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal yield." << std::endl;
160 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal asymmetry." << std::endl;
179 std::cerr << "ERROR in LauCPFitModel::setNBgkndEvents : The background yield LauParameter pointer is null." << std::endl;
184 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : Invalid background class \"" << nBkgndEvents->name() << "\"." << std::endl;
185 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
192 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background yield." << std::endl;
197 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background asymmetry." << std::endl;
212 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : The background yield LauParameter pointer is null." << std::endl;
217 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : The background asym LauParameter pointer is null." << std::endl;
222 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : Invalid background class \"" << nBkgndEvents->name() << "\"." << std::endl;
223 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
230 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background yield." << std::endl;
235 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background asymmetry." << std::endl;
249 void LauCPFitModel::splitSignalComponent( const TH2* dpHisto, const Bool_t upperHalf, const Bool_t fluctuateBins, LauScfMap* scfMap )
252 std::cerr << "ERROR in LauCPFitModel::splitSignalComponent : Have already setup SCF." << std::endl;
257 std::cerr << "ERROR in LauCPFitModel::splitSignalComponent : The histogram pointer is null." << std::endl;
263 scfFracHist_->setEffHisto( dpHisto, kTRUE, fluctuateBins, 0.0, 0.0, upperHalf, daughters->squareDP() );
274 std::cerr << "ERROR in LauCPFitModel::splitSignalComponent : Have already setup SCF." << std::endl;
286 void LauCPFitModel::setBkgndDPModels(const TString& bkgndClass, LauAbsBkgndDPModel* negModel, LauAbsBkgndDPModel* posModel)
289 std::cerr << "ERROR in LauCPFitModel::setBkgndDPModels : One or both of the model pointers is null." << std::endl;
295 std::cerr << "ERROR in LauCPFitModel::setBkgndDPModel : Invalid background class \"" << bkgndClass << "\"." << std::endl;
296 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
311 std::cerr << "ERROR in LauCPFitModel::setSignalPdfs : One or both of the PDF pointers is null." << std::endl;
317 std::cerr << "ERROR in LauCPFitModel::setSignalPdfs : The negative PDF pointer is null." << std::endl;
321 std::cerr << "WARNING in LauCPFitModel::setSignalPdfs : Doing an untagged fit so will not use the positive PDF." << std::endl;
332 std::cerr << "ERROR in LauCPFitModel::setSCFPdfs : One or both of the PDF pointers is null." << std::endl;
338 std::cerr << "ERROR in LauCPFitModel::setSCFPdfs : The negative PDF pointer is null." << std::endl;
342 std::cerr << "WARNING in LauCPFitModel::setSCFPdfs : Doing an untagged fit so will not use the positive PDF." << std::endl;
349 void LauCPFitModel::setBkgndPdfs(const TString& bkgndClass, LauAbsPdf* negPdf, LauAbsPdf* posPdf)
353 std::cerr << "ERROR in LauCPFitModel::setBkgndPdfs : One or both of the PDF pointers is null." << std::endl;
359 std::cerr << "ERROR in LauCPFitModel::setBkgndPdfs : The negative PDF pointer is null." << std::endl;
363 std::cerr << "WARNING in LauCPFitModel::setBkgndPdfs : Doing an untagged fit so will not use the positive PDF." << std::endl;
369 std::cerr << "ERROR in LauCPFitModel::setBkgndPdfs : Invalid background class \"" << bkgndClass << "\"." << std::endl;
370 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
389 std::cerr << "ERROR in LauCPFitModel::setMagPhase : " << negParent_ << " signal DP model doesn't contain component \"" << compName << "\"." << std::endl;
393 std::cerr << "ERROR in LauCPFitModel::setMagPhase : " << posParent_ << " signal DP model doesn't contain component \"" << conjName << "\"." << std::endl;
398 for (std::vector<LauAbsCoeffSet*>::const_iterator iter=coeffPars_.begin(); iter!=coeffPars_.end(); ++iter) {
400 std::cerr << "ERROR in LauCPFitModel::setAmpCoeffSet : Have already set coefficients for \"" << compName << "\"." << std::endl;
415 std::cout << "INFO in LauCPFitModel::setAmpCoeffSet : Added coefficients for component \"" << compName << "\" to the fit model." << std::endl;
431 std::cerr << "ERROR in LauCPFitModel::initialise : Signal model doesn't exist for any variable." << std::endl;
438 std::cerr << "ERROR in LauCPFitModel::initialise : the pointer to one (neg or pos) of the signal DP models is null.\n";
448 for (LauBkgndDPModelList::const_iterator dpmodel_iter = negBkgndDPModels_.begin(); dpmodel_iter != negBkgndDPModels_.end(); ++dpmodel_iter ) {
450 std::cerr << "ERROR in LauCPFitModel::initialise : The pointer to one of the background DP models is null.\n";
456 for (LauBkgndDPModelList::const_iterator dpmodel_iter = posBkgndDPModels_.begin(); dpmodel_iter != posBkgndDPModels_.end(); ++dpmodel_iter ) {
458 std::cerr << "ERROR in LauCPFitModel::initialise : The pointer to one of the background DP models is null.\n";
472 for ( LauPdfList::const_iterator pdf_iter = negSignalPdfs_.begin(); pdf_iter != negSignalPdfs_.end(); ++pdf_iter ) {
474 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
482 for ( LauPdfList::const_iterator pdf_iter = negScfPdfs_.begin(); pdf_iter != negScfPdfs_.end(); ++pdf_iter ) {
484 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
491 std::cerr << "ERROR in LauCPFitModel::initialise : There are " << nsigpdfvars << " TM signal PDF variables but " << nscfpdfvars << " SCF signal PDF variables." << std::endl;
496 for (LauBkgndPdfsList::const_iterator bgclass_iter = negBkgndPdfs_.begin(); bgclass_iter != negBkgndPdfs_.end(); ++bgclass_iter) {
499 for ( LauPdfList::const_iterator pdf_iter = pdfList.begin(); pdf_iter != pdfList.end(); ++pdf_iter ) {
501 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
508 std::cerr << "ERROR in LauCPFitModel::initialise : There are " << nsigpdfvars << " signal PDF variables but " << nbkgndpdfvars << " bkgnd PDF variables." << std::endl;
529 std::cerr << "ERROR in LauCPFitModel::initialise : Number of fit parameters not of expected size. Exiting" << std::endl;
538 //std::cout << "INFO in LauCPFitModel::recalculateNormalizationInDPModels : Recalc Norm in DP model" << std::endl;
551 std::cerr << "ERROR in LauCPFitModel::initialiseDPModels : Unequal number of signal DP components in the negative and positive models: " << nNegAmp << " != " << nPosAmp << std::endl;
555 std::cerr << "ERROR in LauCPFitModel::initialiseDPModels : Number of signal DP components in the model (" << nNegAmp << ") not equal to number of coefficients supplied (" << nSigComp_ << ")." << std::endl;
560 std::cout << "INFO in LauCPFitModel::initialiseDPModels : Initialising signal DP model" << std::endl;
565 for (LauBkgndDPModelList::iterator iter = negBkgndDPModels_.begin(); iter != negBkgndDPModels_.end(); ++iter) {
568 for (LauBkgndDPModelList::iterator iter = posBkgndDPModels_.begin(); iter != posBkgndDPModels_.end(); ++iter) {
583 std::cout << "INFO in LauCPFitModel::setSignalDPParameters : Setting the initial fit parameters for the signal DP model." << std::endl;
597 // Obtain the resonance parameters and place them in the vector of fit variables and in a separate vector
605 for ( LauParameterPList::iterator iter = negSigDPPars.begin(); iter != negSigDPPars.end(); ++iter ) {
611 for ( LauParameterPList::iterator iter = posSigDPPars.begin(); iter != posSigDPPars.end(); ++iter ) {
622 // NB all of them are passed to the fit, even though some have been fixed through parameter.fixed(kTRUE)
641 for (LauBkgndPdfsList::iterator iter = negBkgndPdfs_.begin(); iter != negBkgndPdfs_.end(); ++iter) {
645 for (LauBkgndPdfsList::iterator iter = posBkgndPdfs_.begin(); iter != posBkgndPdfs_.end(); ++iter) {
662 for (LauBkgndYieldList::const_iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
665 std::cerr << "ERROR in LauCPFitModel::setFitNEvents : Background yield not defined." << std::endl;
675 std::cout << "INFO in LauCPFitModel::setFitNEvents : Initialising number of events for signal and background components..." << std::endl;
680 std::cout << "INFO in LauCPFitModel::setFitNEvents : Initialising number of events for background components (and hence signal)..." << std::endl;
695 for (LauBkgndYieldList::iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
724 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << negFitFrac_.size() << std::endl;
729 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << negFitFrac_[i].size() << std::endl;
736 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << posFitFrac_.size() << std::endl;
741 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << posFitFrac_[i].size() << std::endl;
746 // Add the positive and negative fit fractions that have not been corrected for the efficiency for each signal component
749 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << negFitFracEffUnCorr_.size() << std::endl;
754 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << negFitFracEffUnCorr_[i].size() << std::endl;
761 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << posFitFracEffUnCorr_.size() << std::endl;
766 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: " << posFitFracEffUnCorr_[i].size() << std::endl;
964 for (LauBkgndYieldList::iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
980 for (LauBkgndPdfsList::iterator iter = negBkgndPdfs_.begin(); iter != negBkgndPdfs_.end(); ++iter) {
983 for (LauBkgndPdfsList::iterator iter = posBkgndPdfs_.begin(); iter != posBkgndPdfs_.end(); ++iter) {
998 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << negFitFrac.size() << std::endl;
1003 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << negFitFrac[i].size() << std::endl;
1010 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << posFitFrac.size() << std::endl;
1015 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << posFitFrac[i].size() << std::endl;
1022 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << negFitFracEffUnCorr.size() << std::endl;
1027 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << negFitFracEffUnCorr[i].size() << std::endl;
1034 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << posFitFracEffUnCorr.size() << std::endl;
1039 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: " << posFitFracEffUnCorr[i].size() << std::endl;
1080 for (negExtraIter = negExtraPars.begin(); negExtraIter != negExtraPars.end(); ++negExtraIter) {
1087 for (posExtraIter = posExtraPars.begin(); posExtraIter != posExtraPars.end(); ++posExtraIter) {
1124 ntuple->storeCorrMatrix(this->iExpt(), this->nll(), this->fitStatus(), this->covarianceMatrix());
1144 output << negParent_ << " FitFraction for component " << i << " (" << compName << ") = " << negFitFrac_[i][i] << std::endl;
1146 output << negParent_ << " overall DP rate (integral of matrix element squared) = " << negDPRate_ << std::endl;
1147 output << negParent_ << " average efficiency weighted by whole DP dynamics = " << negMeanEff_ << std::endl;
1153 output << posParent_ << " FitFraction for component " << i << " (" << conjName << ") = " << posFitFrac_[i][i] << std::endl;
1155 output << posParent_ << " overall DP rate (integral of matrix element squared) = " << posDPRate_ << std::endl;
1156 output << posParent_ << " average efficiency weighted by whole DP dynamics = " << posMeanEff_ << std::endl;
1163 output << "Fit Fraction asymmetry for component " << i << " (" << compName << ") = " << fitFracAsymm_[i] << std::endl;
1178 std::cout << "INFO in LauCPFitModel::writeOutTable : Writing out results of the fit to the tex file " << outputFile << std::endl;
1192 fout << "Component & " << negParent_ << " Fit Fraction & " << posParent_ << " Fit Fraction & Fit Fraction Asymmetry & ACP \\\\" << std::endl;
1275 for (LauBkgndPdfsList::const_iterator iter = negBkgndPdfs_.begin(); iter != negBkgndPdfs_.end(); ++iter) {
1279 for (LauBkgndPdfsList::const_iterator iter = posBkgndPdfs_.begin(); iter != posBkgndPdfs_.end(); ++iter) {
1295 std::cout << "INFO in LauCPFitModel::checkInitFitParams : Setting random parameters for the signal model" << std::endl;
1303 std::cout << "INFO in LauCPFitModel::randomiseInitFitPars : Randomising the initial fit magnitudes and phases of the components..." << std::endl;
1370 std::cout << " : Signal asymmetry = " << sigAsym << " and number of signal events = " << signalEvents_->genValue() << std::endl;
1375 std::cout << " : " << bkgndClass << " asymmetry = " << asymPar->genValue() << " and number of " << bkgndClass << " events = " << evtsPar->genValue() << std::endl;
1464 if (iEvt%500 == 0) {std::cout << "INFO in LauCPFitModel::genExpt : Generated event number " << iEvt << " out of " << nEvtsGen << " " << type << " events." << std::endl;}
1481 std::cerr << "ERROR in LauCPFitModel::genExpt : Fit Fraction array of unexpected dimension: " << negFitFrac.size() << std::endl;
1486 std::cerr << "ERROR in LauCPFitModel::genExpt : Fit Fraction array of unexpected dimension: " << negFitFrac[i].size() << std::endl;
1492 std::cerr << "ERROR in LauCPFitModel::genExpt : Fit Fraction array of unexpected dimension: " << posFitFrac.size() << std::endl;
1497 std::cerr << "ERROR in LauCPFitModel::genExpt : Fit Fraction array of unexpected dimension: " << posFitFrac[i].size() << std::endl;
1679 std::cerr << "WARNING in LauCPFitModel::generateSignalEvent : Source of embedded signal events used up, clearing the list of used events." << std::endl;
1722 std::cerr << "ERROR in LauCPFitModel::generateBkgndEvent : Can't find the DP model for background class \"" << bkgndClass << "\"." << std::endl;
1739 std::cerr << "WARNING in LauCPFitModel::generateBkgndEvent : Source of embedded " << bkgndClass << " events used up, clearing the list of used events." << std::endl;
1780 for (LauPdfList::const_iterator pdf_iter = negSignalPdfs_.begin(); pdf_iter != negSignalPdfs_.end(); ++pdf_iter) {
1782 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
1815 void LauCPFitModel::generateExtraPdfValues(LauPdfList* extraPdfs, LauEmbeddedData* embeddedData)
1825 std::cerr << "ERROR in LauCPFitModel::generateExtraPdfValues : Null pointer to PDF list." << std::endl;
1830 //std::cerr << "WARNING in LauCPFitModel::generateExtraPdfValues : PDF list is empty." << std::endl;
1835 for (LauPdfList::iterator pdf_iter = extraPdfs->begin(); pdf_iter != extraPdfs->end(); ++pdf_iter) {
1842 for ( LauFitData::const_iterator var_iter = genValues.begin(); var_iter != genValues.end(); ++var_iter ) {
1900 for (LauBkgndYieldList::iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
1911 for (LauBkgndYieldList::const_iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
1939 for (LauBkgndDPModelList::iterator iter = negBkgndDPModels_.begin(); iter != negBkgndDPModels_.end(); ++iter) {
1942 for (LauBkgndDPModelList::iterator iter = posBkgndDPModels_.begin(); iter != posBkgndDPModels_.end(); ++iter) {
1951 for (LauBkgndPdfsList::iterator iter = negBkgndPdfs_.begin(); iter != negBkgndPdfs_.end(); ++iter) {
1957 for (LauBkgndPdfsList::iterator iter = posBkgndPdfs_.begin(); iter != posBkgndPdfs_.end(); ++iter) {
1965 std::cerr << "ERROR in LauCPFitModel::cacheInputFitVars : Input data does not contain DP branches and so can't cache the SCF fraction." << std::endl;
1993 std::cerr << "ERROR in LauCPFitModel::cacheInputFitVars : Input data does not contain branch \"" << tagVarName_ << "\"." << std::endl;
2012 // given true bin in the LauScfMap object. (What this means is that when Laura is provided with
2058 std::cerr << "ERROR in LauCPFitModel::getTotEvtLikelihood : Charge/tag not accepted value: " << curEvtCharge_ << std::endl;
2107 Double_t bkgndEvents = bkgndEvents_[bkgndID]->value() * 0.5 * (1.0 - curEvtCharge_ * bkgndAsym_[bkgndID]->value());
2121 for (LauBkgndYieldList::const_iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end(); ++iter) {
2242 for (std::vector<Int_t>::const_iterator iter = trueBins->begin(); iter != trueBins->end(); ++iter)
2408 for (LauPdfList::const_iterator pdf_iter = extraPdfs->begin(); pdf_iter != extraPdfs->end(); ++pdf_iter) {
2415 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2434 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2446 std::cerr << "WARNING in LauCPFitModel::addSPlotNtupleBranches : Can't yet deal with 3D PDFs." << std::endl;
2452 Double_t LauCPFitModel::setSPlotNtupleBranchValues(LauPdfList* extraPdfs, const TString& prefix, UInt_t iEvt)
2458 for (LauPdfList::iterator pdf_iter = extraPdfs->begin(); pdf_iter != extraPdfs->end(); ++pdf_iter) {
2470 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2489 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2502 std::cerr << "WARNING in LauCPFitModel::setSPlotNtupleBranchValues : Can't yet deal with 3D PDFs." << std::endl;
2516 for (LauPdfList::const_iterator pdf_iter = negSignalPdfs_.begin(); pdf_iter != negSignalPdfs_.end(); ++pdf_iter) {
2519 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2574 for (LauPdfList::const_iterator pdf_iter = negSignalPdfs_.begin(); pdf_iter != negSignalPdfs_.end(); ++pdf_iter) {
2578 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2593 for (LauPdfList::const_iterator pdf_iter = negScfPdfs_.begin(); pdf_iter != negScfPdfs_.end(); ++pdf_iter) {
2597 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2613 for (LauPdfList::const_iterator pdf_iter = pdfList.begin(); pdf_iter != pdfList.end(); ++pdf_iter) {
2617 for ( std::vector<TString>::const_iterator var_iter = varNames.begin(); var_iter != varNames.end(); ++var_iter ) {
2634 std::cout << "INFO in LauCPFitModel::storePerEvtLlhds : Storing per-event likelihood values..." << std::endl;
2696 this->setSPlotNtupleDoubleBranchValue("efficiency",0.5*(posSigModel_->getEvtEff() + negSigModel_->getEvtEff()) );
2698 this->setSPlotNtupleDoubleBranchValue("scffraction",0.5*(posSigModel_->getEvtScfFraction() + negSigModel_->getEvtScfFraction()));
2779 std::cout << "INFO in LauCPFitModel::storePerEvtLlhds : Finished storing per-event likelihood values." << std::endl;
2787 std::cerr << "ERROR in LauCPFitModel::embedNegSignal : Already embedding signal from a file." << std::endl;
2792 std::cerr << "WARNING in LauCPFitModel::embedNegSignal : Conflicting options provided, will not reuse events at all." << std::endl;
2800 std::cerr << "ERROR in LauCPFitModel::embedNegSignal : Problem creating data tree for embedding." << std::endl;
2808 void LauCPFitModel::embedNegBkgnd(const TString& bkgndClass, const TString& fileName, const TString& treeName,
2812 std::cerr << "ERROR in LauCPFitModel::embedBkgnd : Invalid background class \"" << bkgndClass << "\"." << std::endl;
2813 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
2820 std::cerr << "ERROR in LauCPFitModel::embedNegBkgnd : Already embedding background from a file." << std::endl;
2825 std::cerr << "WARNING in LauCPFitModel::embedNegBkgnd : Conflicting options provided, will not reuse events at all." << std::endl;
2833 std::cerr << "ERROR in LauCPFitModel::embedNegBkgnd : Problem creating data tree for embedding." << std::endl;
2845 std::cerr << "ERROR in LauCPFitModel::embedPosSignal : Already embedding signal from a file." << std::endl;
2850 std::cerr << "WARNING in LauCPFitModel::embedPosSignal : Conflicting options provided, will not reuse events at all." << std::endl;
2858 std::cerr << "ERROR in LauCPFitModel::embedPosSignal : Problem creating data tree for embedding." << std::endl;
2866 void LauCPFitModel::embedPosBkgnd(const TString& bkgndClass, const TString& fileName, const TString& treeName,
2870 std::cerr << "ERROR in LauCPFitModel::embedBkgnd : Invalid background class \"" << bkgndClass << "\"." << std::endl;
2871 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed." << std::endl;
2878 std::cerr << "ERROR in LauCPFitModel::embedPosBkgnd : Already embedding background from a file." << std::endl;
2883 std::cerr << "WARNING in LauCPFitModel::embedPosBkgnd : Conflicting options provided, will not reuse events at all." << std::endl;
2891 std::cerr << "ERROR in LauCPFitModel::embedPosBkgnd : Problem creating data tree for embedding." << std::endl;
2898 void LauCPFitModel::weightEvents( const TString& /*dataFileName*/, const TString& /*dataTreeName*/ )
2900 std::cerr << "ERROR in LauCPFitModel::weightEvents : Method not available for this fit model." << std::endl;
void generateExtraPdfValues(LauPdfList *extraPdfs, LauEmbeddedData *embeddedData) Generate from the extra PDFs. Definition: LauCPFitModel.cc:1815 void modifyDataTree() Recache the amplitude values for those that have changed. Definition: LauIsobarDynamics.cc:2237 virtual void addSPlotNtupleIntegerBranch(const TString &name) Add a branch to the sPlot tree for storing an integer. Definition: LauAbsFitModel.cc:438 The abstract interface for a background Dalitz plot model. Definition: LauAbsBkgndDPModel.hh:31 Bool_t squareDP() const Are the square Dalitz plot co-ordinates being calculated? Definition: LauKinematics.hh:51 virtual LauSPlot::NameSet variableNames() const Returns the names of all variables in the fit. Definition: LauCPFitModel.cc:2509 Double_t getc23() const Get the cosine of the helicity angle theta23. Definition: LauKinematics.hh:193 TRandom * randomFun() Access the singleton random number generator with a particular seed. Definition: LauRandom.cc:20 Bool_t fixed() const Check whether the parameter is fixed or floated. Definition: LauParameter.hh:195 LauKinematics * negKinematics_ The B- Dalitz plot kinematics object. Definition: LauCPFitModel.hh:451 UInt_t eventsPerExpt() const Obtain the total number of events in the current experiment. Definition: LauAbsFitModel.hh:209 virtual void printAsymmetries(std::ostream &output) Print the asymmetries. Definition: LauCPFitModel.cc:1159 Bool_t writeLatexTable() const Determine whether writing out of the latex table is enabled. Definition: LauAbsFitModel.hh:169 void addSPlotNtupleBranches(const LauPdfList *extraPdfs, const TString &prefix) Add sPlot branches for the extra PDFs. Definition: LauCPFitModel.cc:2404 void setExtraPdfParameters() Set the fit parameters for the extra PDFs. Definition: LauCPFitModel.cc:619 void updateCoeffs(const std::vector< LauComplex > &coeffs) Update the complex coefficients for the resonances. Definition: LauIsobarDynamics.cc:2395 void updateSqDPKinematics(Double_t mPrime, Double_t thetaPrime) Update all kinematic quantities based on the square DP co-ordinates m' and theta'. Definition: LauKinematics.cc:99 LauBkgndDPModelList posBkgndDPModels_ The B+ background Dalitz plot models. Definition: LauCPFitModel.hh:448 void setEffHisto(const TH2 *effHisto, Bool_t useInterpolation=kTRUE, Bool_t fluctuateBins=kFALSE, Double_t avEff=-1.0, Double_t absError=-1.0, Bool_t useUpperHalfOnly=kFALSE, Bool_t squareDP=kFALSE) Set the efficiency variation across the phase space using a predetermined 2D histogram. Definition: LauEffModel.cc:55 void cacheInfo(LauPdfList &pdfList, const LauFitDataTree &theData) Have all PDFs in the list cache the data. Definition: LauAbsFitModel.cc:1245 virtual void setGenNtupleIntegerBranchValue(const TString &name, Int_t value) Set the value of an integer branch in the gen tree. Definition: LauAbsFitModel.cc:413 File containing declaration of LauAsymmCalc class. ClassImp(LauAbsCoeffSet) UInt_t nNormPar_ Number of normalisation parameters (yields, asymmetries) Definition: LauCPFitModel.hh:487 Bool_t getReweightedEvent(LauIsobarDynamics *dynamics) Retrieve an event from the data sample, applying an accept/reject based on the given DP model... Definition: LauEmbeddedData.cc:59 Bool_t hasResonance(const TString &resName) const Check whether this model includes a named resonance. Definition: LauIsobarDynamics.cc:2416 void calcExtraFractions(Bool_t initValues=kFALSE) Calculate the CP-conserving and CP-violating fit fractions. Definition: LauCPFitModel.cc:863 Class that defines the particular 3-body decay under study. Definition: LauDaughters.hh:33 UInt_t addFitParameters(LauPdfList &pdfList) Add parameters of the PDFs in the list to the list of all fit parameters. Definition: LauAbsFitModel.cc:1141 Class for calculating the asymmetry between two variables. Definition: LauAsymmCalc.hh:25 Double_t getDPNorm() const Retrieve the normalisation factor for the log-likelihood function. Definition: LauIsobarDynamics.hh:402 Double_t getc13() const Get the cosine of the helicity angle theta13. Definition: LauKinematics.hh:199 File containing declaration of LauAbsCoeffSet class. void calcExtraInfo(const Bool_t init=kFALSE) Calculate the fit fractions, mean efficiency and total DP rate. Definition: LauIsobarDynamics.cc:1803 TH2 * trueHist(Int_t trueBin) Retrieve the migration histogram for trueBin. Definition: LauScfMap.cc:176 std::vector< LauComplex > negCoeffs_ The complex coefficients for B-. Definition: LauCPFitModel.hh:592 std::multimap< TString, std::pair< TString, TString > > TwoDMap Type to associate the name of the species that have 2D PDFs with the names of the two variables invol... Definition: LauSPlot.hh:68 void listBinCentres(std::vector< Double_t > &xCoords, std::vector< Double_t > &yCoords) const Create lists of the co-ordinates of the centres of true bins. Definition: LauScfMap.cc:114 virtual void getEvtExtraLikelihoods(UInt_t iEvt) Determine the signal and background likelihood for the extra variables for a given event... Definition: LauCPFitModel.cc:2287 File containing declaration of LauDaughters class. const std::vector< Int_t > * trueBins(Int_t recoBin) const Find which true bins contribute to the given reco bin. Definition: LauScfMap.cc:155 virtual Bool_t genExpt() Toy MC generation and fitting overloaded functions. Definition: LauCPFitModel.cc:1381 virtual void setGenNtupleDoubleBranchValue(const TString &name, Double_t value) Set the value of a double branch in the gen tree. Definition: LauAbsFitModel.cc:418 void embedNegSignal(const TString &fileName, const TString &treeName, Bool_t reuseEventsWithinEnsemble, Bool_t reuseEventsWithinExperiment=kFALSE, Bool_t useReweighting=kFALSE) Embed full simulation events for the B- signal, rather than generating toy from the PDFs... Definition: LauCPFitModel.cc:2782 File containing declaration of LauScfMap class. Double_t getEvtthPrime() const Retrieve the square Dalitz plot coordinate, theta', for the current event. Definition: LauIsobarDynamics.hh:268 std::vector< Double_t > fakeSCFFracs_ The cached values of the SCF fraction for each bin centre. Definition: LauCPFitModel.hh:574 TString getConjResName(const TString &resName) const Retrieve the name of the charge conjugate of a named resonance. Definition: LauIsobarDynamics.cc:2426 std::vector< std::vector< LauParameter > > LauParArray Type to define an array of parameters. Definition: LauParameter.hh:576 LauAbsEffModel * getEffModel() Retrieve the model for the efficiency across the Dalitz plot. Definition: LauIsobarDynamics.hh:432 virtual void printParValues() const =0 Print the current values of the parameters. Bool_t storeSignalMCMatch(LauEmbeddedData *embeddedData) Store the MC truth info on the TM/SCF nature of the embedded signal event. Definition: LauCPFitModel.cc:1852 File containing declaration of LauPrint class. Pure abstract base class for defining the efficiency description across the signal Dalitz plot... Definition: LauAbsEffModel.hh:32 LauGenInfo eventsToGenerate() Determine the number of events to generate for each hypothesis. Definition: LauCPFitModel.cc:1310 Double_t prodPdfValue(LauPdfList &pdfList, UInt_t iEvt) Calculate the product of the per-event likelihoods of the PDFs in the list. Definition: LauAbsFitModel.cc:1252 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:31 const LauParArray & getFitFractions() const Retrieve the fit fractions for the amplitude components. Definition: LauIsobarDynamics.hh:372 Bool_t squareDP() const Determine to use or not the square Dalitz plot. Definition: LauDaughters.hh:78 Double_t getEvtScfFraction() const Retrieve the fraction of events that are poorly reconstructed (the self cross feed fraction) for the ... Definition: LauIsobarDynamics.hh:280 Double_t getValue(const TString &name) const Get the value of a specified branch. Definition: LauEmbeddedData.cc:175 std::vector< Double_t > bkgndTotalLike_ Total background likelihood(s) Definition: LauCPFitModel.hh:649 void calcLikelihoodInfo(const UInt_t iEvt) Calculate the likelihood (and all associated information) for the given event number. Definition: LauIsobarDynamics.cc:2172 LauParameter getMeanEff() const Retrieve the mean efficiency across the Dalitz plot. Definition: LauIsobarDynamics.hh:360 std::vector< Double_t > recoSCFFracs_ The cached values of the SCF fraction for each event. Definition: LauCPFitModel.hh:571 std::set< LauParameter * > LauParameterPSet Set of parameter pointers. Definition: LauAbsFitModel.hh:330 File containing declaration of LauKinematics class. virtual void setSPlotNtupleDoubleBranchValue(const TString &name, Double_t value) Set the value of a double branch in the sPlot tree. Definition: LauAbsFitModel.cc:453 File containing declaration of LauEmbeddedData class. std::vector< Double_t > bkgndExtraLike_ Background likelihood value(s) from extra PDFs. Definition: LauCPFitModel.hh:640 void printFitParameters(const LauPdfList &pdfList, std::ostream &fout) const Print the fit parameters for all PDFs in the list. Definition: LauAbsFitModel.cc:1221 Bool_t haveBranch(const TString &name) const Boolean to determine whether branch exists. Definition: LauEmbeddedData.hh:75 File containing declaration of LauCPFitModel class. virtual void cacheInputFitVars() Read in the input fit data variables, e.g. m13Sq and m23Sq. Definition: LauCPFitModel.cc:1918 void setSignalDPParameters() Set the fit parameters for the DP model. Definition: LauCPFitModel.cc:574 Double_t getEvtmPrime() const Retrieve the square Dalitz plot coordinate, m', for the current event. Definition: LauIsobarDynamics.hh:262 void appendBinCentres(LauFitDataTree *inputData) Append fake data points to the inputData for each bin in the SCF smearing matrix. ... Definition: LauCPFitModel.cc:2007 File containing declaration of LauIsobarDynamics class. virtual UInt_t index() const Retrieve the index number of the coefficient set. Definition: LauAbsCoeffSet.hh:146 void updateKinematics(Double_t m13Sq, Double_t m23Sq) Update all kinematic quantities based on the DP co-ordinates m13Sq and m23Sq. Definition: LauKinematics.cc:82 void fillDataTree(const LauFitDataTree &fitDataTree) Fill the internal data structure that caches the resonance dynamics. Definition: LauIsobarDynamics.cc:2274 virtual void checkInitFitParams() Check the initial fit parameters. Definition: LauCPFitModel.cc:1288 const LauParameterList & extraPars() const Access the extra variables. Definition: LauAbsFitModel.hh:670 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:232 virtual void recalculateNormalisation() Recalculate Normalization the signal DP models. Definition: LauCPFitModel.cc:536 std::vector< LauParameter * > LauParameterPList List of parameter pointers. Definition: LauAbsFitModel.hh:326 virtual void finaliseFitResults(const TString &tablePrefixName) Get the fit results and store them. Definition: LauCPFitModel.cc:935 Double_t getEvtm23Sq() const Retrieve the invariant mass squared of the second and third daughters in the current event... Definition: LauIsobarDynamics.hh:256 virtual void printFitFractions(std::ostream &output) Print the fit fractions, total DP rate and mean efficiency. Definition: LauCPFitModel.cc:1138 Double_t calcEfficiency(const LauKinematics *kinematics) const Determine the efficiency for a given point in the Dalitz plot. Definition: LauEffModel.cc:261 LauParArray negFitFracEffUnCorr_ Fit B- fractions (uncorrected for the efficiency) Definition: LauCPFitModel.hh:499 std::vector< LauParameter * > & getFloatingParameters() Retrieve the floating parameters of the resonance models. Definition: LauIsobarDynamics.hh:462 LauParArray posFitFracEffUnCorr_ Fit B+ fractions (uncorrected for the efficiency) Definition: LauCPFitModel.hh:502 virtual void addGenNtupleIntegerBranch(const TString &name) Add a branch to the gen tree for storing an integer. Definition: LauAbsFitModel.cc:403 const LauComplex & getEvtDPAmp() const Retrieve the total amplitude for the current event. Definition: LauIsobarDynamics.hh:244 Int_t binNumber(Double_t xCoord, Double_t yCoord) const Find the global bin number for the given co-ordinates. Definition: LauScfMap.cc:144 Bool_t doPoissonSmearing() const Determine whether Poisson smearing is enabled for the toy MC generation. Definition: LauAbsFitModel.hh:142 Double_t getc12() const Get the cosine of the helicity angle theta12. Definition: LauKinematics.hh:187 std::vector< LauPdfList > LauBkgndPdfsList Typedef for a vector of background PDFs. Definition: LauCPFitModel.hh:223 void calcAsymmetries(Bool_t initValues=kFALSE) Calculate the CP asymmetries. Definition: LauCPFitModel.cc:916 std::map< TString, Double_t > NumbMap Type to associate a category name with a double precision number, e.g. a yield or PDF value for a giv... Definition: LauSPlot.hh:62 Bool_t doEMLFit() const Determine whether an extended maximum likelihood fit it being performed. Definition: LauAbsFitModel.hh:108 LauParameter getDPRate() const Retrieve the overall Dalitz plot rate. Definition: LauIsobarDynamics.hh:366 File containing declaration of LauComplex class. LauFitData getValues(const std::vector< TString > &names) const Get values of specified branches. Definition: LauEmbeddedData.cc:186 const LauParArray & getFitFractionsEfficiencyUncorrected() const Retrieve the fit fractions for the amplitude components. Definition: LauIsobarDynamics.hh:378 virtual void setNBkgndEvents(LauParameter *nBkgndEvents) Set the background event yield(s) Definition: LauCPFitModel.cc:176 virtual LauSPlot::NumbMap fixdSpeciesNames() const Returns the names and yields of species that are fixed in the fit. Definition: LauCPFitModel.cc:2548 Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:34 void storeCorrMatrix(UInt_t iExpt, Double_t NLL, Int_t fitStatus, const TMatrixD &covMatrix) Store the correlation matrix and other fit information. Definition: LauFitNtuple.cc:64 void clearFitParVectors() Clear the vectors containing fit parameters. Definition: LauAbsFitModel.cc:284 virtual void setAmpCoeffSet(LauAbsCoeffSet *coeffSet) Set the DP amplitude coefficients. Definition: LauCPFitModel.cc:381 Class to store the data for embedding in toy experiments. Definition: LauEmbeddedData.hh:33 UInt_t getnTotAmp() const Retrieve the total number of amplitude components. Definition: LauIsobarDynamics.hh:384 virtual void addSPlotNtupleDoubleBranch(const TString &name) Add a branch to the sPlot tree for storing a double. Definition: LauAbsFitModel.cc:443 virtual void setupSPlotNtupleBranches() Add branches to store experiment number and the event number within the experiment. Definition: LauCPFitModel.cc:2337 void clearExtraVarVectors() Clear the vectors containing extra ntuple variables. Definition: LauAbsFitModel.cc:299 void getEmbeddedEvent(LauKinematics *kinematics) Retrieve an event from the data sample. Definition: LauEmbeddedData.cc:140 void splitSignalComponent(const TH2 *dpHisto, const Bool_t upperHalf=kFALSE, const Bool_t fluctuateBins=kFALSE, LauScfMap *scfMap=0) Split the signal component into well-reconstructed and mis-reconstructed parts. Definition: LauCPFitModel.cc:249 std::vector< LauParameter > getExtraParameters() Retrieve any extra parameters/quantities (e.g. K-matrix total fit fractions) Definition: LauIsobarDynamics.hh:456 std::vector< Double_t > bkgndDPLike_ Background DP likelihood value(s) Definition: LauCPFitModel.hh:631 void embedNegBkgnd(const TString &bgClass, const TString &fileName, const TString &treeName, Bool_t reuseEventsWithinEnsemble, Bool_t reuseEventsWithinExperiment=kFALSE) Embed full simulation events for the given background class, rather than generating toy from the PDFs... Definition: LauCPFitModel.cc:2808 void appendFakePoints(const std::vector< Double_t > &xCoords, const std::vector< Double_t > &yCoords) Add fake events to the data. Definition: LauFitDataTree.cc:182 File containing declaration of LauAbsPdf class. Bool_t storeDPEff() const Determine whether the efficiency information should be stored in the sPlot ntuple. Definition: LauAbsFitModel.hh:190 LauBkgndReuseEventsList reuseBkgnd_ Vector of booleans to reuse background events. Definition: LauCPFitModel.hh:621 UInt_t bkgndClassID(const TString &className) const The number assigned to a background class. Definition: LauAbsFitModel.cc:254 const LauFitData & getData(UInt_t iEvt) const Retrieve the data for a given event. Definition: LauFitDataTree.cc:312 File containing LauRandom namespace. Bool_t useRandomInitFitPars() const Determine whether the initial values of the fit parameters, in particular the isobar coefficient para... Definition: LauAbsFitModel.hh:193 File containing declaration of LauEffModel class. virtual void setNSigEvents(LauParameter *nSigEvents) Set the signal event yield. Definition: LauCPFitModel.cc:118 virtual void weightEvents(const TString &dataFileName, const TString &dataTreeName) Weight events based on the DP model. Definition: LauCPFitModel.cc:2898 Bool_t validBkgndClass(const TString &className) const Check if the given background class is in the list. Definition: LauAbsFitModel.cc:237 virtual void writeOutTable(const TString &outputFile) Write the fit results in latex table format. Definition: LauCPFitModel.cc:1171 Class that implements the efficiency description across the signal Dalitz plot. Definition: LauEffModel.hh:37 const LauParameterPSet & resPars() const Access the fit variables which affect the DP normalisation. Definition: LauAbsFitModel.hh:666 UInt_t nUsedEvents() const Retrieve the number of events that have already been sampled. Definition: LauEmbeddedData.hh:69 void storeParsAndErrors(const std::vector< LauParameter * > &fitVars, const std::vector< LauParameter > &extraVars) Store parameters and their errors. Definition: LauFitNtuple.cc:134 virtual void setSPlotNtupleIntegerBranchValue(const TString &name, Int_t value) Set the value of an integer branch in the sPlot tree. Definition: LauAbsFitModel.cc:448 Double_t setSPlotNtupleBranchValues(LauPdfList *extraPdfs, const TString &prefix, UInt_t iEvt) Set the branches for the sPlot ntuple with extra PDFs. Definition: LauCPFitModel.cc:2452 std::vector< LauComplex > posCoeffs_ The complex coefficients for B+. Definition: LauCPFitModel.hh:595 void updateSigEvents() Update the signal events after Minuit sets background parameters. Definition: LauCPFitModel.cc:1893 Class for defining signal dynamics using the isobar model. Definition: LauIsobarDynamics.hh:39 virtual void setupBkgndVectors() Define the length of the background vectors. Definition: LauCPFitModel.cc:101 File containing LauConstants namespace. void setSignalPdfs(LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the signal PDFs. Definition: LauCPFitModel.cc:307 virtual LauSPlot::TwoDMap twodimPDFs() const Returns the species and variables for all 2D PDFs in the fit. Definition: LauCPFitModel.cc:2567 virtual LauSPlot::NumbMap freeSpeciesNames() const Returns the names and yields of species that are free in the fit. Definition: LauCPFitModel.cc:2529 LauEffModel * scfFracHist_ The histogram giving the DP-dependence of the SCF fraction. Definition: LauCPFitModel.hh:565 void printFormat(std::ostream &stream, Double_t value) const Method to choose the printing format to a specified level of precision. Definition: LauPrint.cc:32 ToyMCStatus checkToyMC(Bool_t printErrorMessages=kTRUE, Bool_t printInfoMessages=kFALSE) Check the status of the toy MC generation. Definition: LauIsobarDynamics.cc:2106 Bool_t haveBranch(const TString &name) const Check if the named branch is stored. Definition: LauFitDataTree.cc:237 virtual void propagateParUpdates() Calculate things that depend on the fit parameters after they have been updated by Minuit... Definition: LauCPFitModel.cc:1878 Class for representing the 4D smearing matrix for mis-reconstructed signal (self cross feed) ... Definition: LauScfMap.hh:29 virtual void storePerEvtLlhds() Store the per event likelihood values. Definition: LauCPFitModel.cc:2632 Double_t getEvtEff() const Retrieve the efficiency for the current event. Definition: LauIsobarDynamics.hh:274 UInt_t nBkgndClasses() const Returns the number of background classes. Definition: LauAbsFitModel.hh:227 const TString & bkgndClassName(UInt_t classID) const Get the name of a background class from the number. Definition: LauAbsFitModel.cc:272 std::vector< Double_t > recoJacobians_ The cached values of the sqDP jacobians for each event. Definition: LauCPFitModel.hh:577 Bool_t enableEmbedding() const Determine whether embedding of events is enabled in the generation. Definition: LauAbsFitModel.hh:151 virtual Double_t getEventSum() const Get the total number of events. Definition: LauCPFitModel.cc:2116 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:117 const TMatrixD & covarianceMatrix() const Access the fit covariance matrix. Definition: LauAbsFitModel.hh:700 const LauParameterPList & fitPars() const Access the fit variables. Definition: LauAbsFitModel.hh:662 Bool_t usingScfModel() Check whether a self cross feed fraction model is being used. Definition: LauIsobarDynamics.hh:450 LauBkgndDPModelList negBkgndDPModels_ The B- background Dalitz plot models. Definition: LauCPFitModel.hh:445 virtual void addGenNtupleDoubleBranch(const TString &name) Add a branch to the gen tree for storing a double. Definition: LauAbsFitModel.cc:408 Double_t calcSqDPJacobian() Calculate the Jacobian for the transformation m23^2, m13^2 -> m', theta' (square DP) ... Definition: LauKinematics.cc:125 void updateFitParameters(LauPdfList &pdfList) Update the fit parameters for all PDFs in the list. Definition: LauAbsFitModel.cc:1214 void embedPosBkgnd(const TString &bgClass, const TString &fileName, const TString &treeName, Bool_t reuseEventsWithinEnsemble, Bool_t reuseEventsWithinExperiment=kFALSE) Embed full simulation events for the given background class, rather than generating toy from the PDFs... Definition: LauCPFitModel.cc:2866 std::vector< Double_t > fakeJacobians_ The cached values of the sqDP jacobians for each true bin. Definition: LauCPFitModel.hh:580 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:132 virtual Double_t getEvtSCFDPLikelihood(UInt_t iEvt) Calculate the SCF likelihood for the DP for a given event. Definition: LauCPFitModel.cc:2215 File containing declaration of LauAbsBkgndDPModel class. void setSCFPdfs(LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the SCF PDF for a given variable. Definition: LauCPFitModel.cc:328 std::map< std::pair< TString, Int_t >, std::pair< Int_t, Double_t > > LauGenInfo Define a map to be used to store a category name and numbers. Definition: LauCPFitModel.hh:217 void setBkgndPdfs(const TString &bkgndClass, LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the background PDFs. Definition: LauCPFitModel.cc:349 Double_t prob(Int_t recoBin, Int_t trueBin) const Probability of a true event in the given true bin migrating to the reco bin. Definition: LauScfMap.cc:165 void initialise(const std::vector< LauComplex > &coeffs) Initialise the Dalitz plot dynamics. Definition: LauIsobarDynamics.cc:241 virtual Double_t getTotEvtLikelihood(UInt_t iEvt) Get the total likelihood for each event. Definition: LauCPFitModel.cc:2050 virtual void getEvtDPLikelihood(UInt_t iEvt) Calculate the signal and background likelihoods for the DP for a given event. Definition: LauCPFitModel.cc:2128 Double_t getEvtm13Sq() const Retrieve the invariant mass squared of the first and third daughters in the current event... Definition: LauIsobarDynamics.hh:250 void setBkgndDPModels(const TString &bkgndClass, LauAbsBkgndDPModel *negModel, LauAbsBkgndDPModel *posModel) Set the background DP models. Definition: LauCPFitModel.cc:286 std::set< TString > NameSet Type to store names, e.g. of the discriminating/control variables. Definition: LauSPlot.hh:59 File containing declaration of LauFitNtuple class. LauKinematics * posKinematics_ The B+ Dalitz plot kinematics object. Definition: LauCPFitModel.hh:454 void embedPosSignal(const TString &fileName, const TString &treeName, Bool_t reuseEventsWithinEnsemble, Bool_t reuseEventsWithinExperiment=kFALSE, Bool_t useReweighting=kFALSE) Embed full simulation events for the B+ signal, rather than generating toy from the PDFs... Definition: LauCPFitModel.cc:2840 std::vector< LauParameter > fitFracAsymm_ The fit fraction asymmetries. Definition: LauCPFitModel.hh:511 void setExtraNtupleVars() Set-up other parameters that are derived from the fit results, e.g. fit fractions. Definition: LauCPFitModel.cc:708 virtual Bool_t passVeto(const LauKinematics *kinematics) const =0 Determine whether the given DP position is outside the vetoes. Generated by 1.8.5 |