LauCPFitModel.cc
Go to the documentation of this file.
162 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal yield."
167 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal asymmetry."
179 signalEvents_->range( -2.0 * ( TMath::Abs( value ) + 1.0 ), 2.0 * ( TMath::Abs( value ) + 1.0 ) );
184 void LauCPFitModel::setNSigEvents( LauParameter* nSigEvents, LauParameter* sigAsym, Bool_t forceAsym )
198 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal yield."
203 std::cerr << "ERROR in LauCPFitModel::setNSigEvents : You are trying to overwrite the signal asymmetry."
211 signalEvents_->range( -2.0 * ( TMath::Abs( value ) + 1.0 ), 2.0 * ( TMath::Abs( value ) + 1.0 ) );
223 std::cerr << "ERROR in LauCPFitModel::setNBgkndEvents : The background yield LauParameter pointer is null."
231 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
239 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background yield."
245 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background asymmetry."
264 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : The background yield LauParameter pointer is null."
270 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : The background asym LauParameter pointer is null."
278 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
286 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background yield."
292 std::cerr << "ERROR in LauCPFitModel::setNBkgndEvents : You are trying to overwrite the background asymmetry."
364 std::cerr << "ERROR in LauCPFitModel::setBkgndDPModels : One or both of the model pointers is null."
373 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
401 std::cerr << "WARNING in LauCPFitModel::setSignalPdfs : Doing an untagged fit so will not use the positive PDF."
425 std::cerr << "WARNING in LauCPFitModel::setSCFPdfs : Doing an untagged fit so will not use the positive PDF."
433 void LauCPFitModel::setBkgndPdfs( const TString& bkgndClass, LauAbsPdf* negPdf, LauAbsPdf* posPdf )
449 std::cerr << "WARNING in LauCPFitModel::setBkgndPdfs : Doing an untagged fit so will not use the positive PDF."
458 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
477 std::cerr << "ERROR in LauCPFitModel::setAmpCoeffSet : Unequal number of signal DP components in the negative and positive models: "
543 std::cerr << "ERROR in LauCPFitModel::initialise : Signal model doesn't exist for any variable."
551 std::cerr << "ERROR in LauCPFitModel::initialise : the pointer to one (neg or pos) of the signal DP models is null.\n";
567 std::cerr << "ERROR in LauCPFitModel::initialise : The pointer to one of the background DP models is null.\n";
578 std::cerr << "ERROR in LauCPFitModel::initialise : The pointer to one of the background DP models is null.\n";
591 std::cerr << "ERROR in LauCPFitModel::initialise : Unequal number of signal DP components in the negative and positive models: "
596 std::cerr << "ERROR in LauCPFitModel::initialise : Number of signal DP components in the model ("
710 std::cerr << "ERROR in LauCPFitModel::initialise : Number of fit parameters not of expected size. Exiting"
720 //std::cout << "INFO in LauCPFitModel::recalculateNormalizationInDPModels : Recalc Norm in DP model" << std::endl;
757 std::cout << "INFO in LauCPFitModel::setSignalDPParameters : Setting the initial fit parameters for the signal DP model."
766 // Obtain the resonance parameters and place them in the vector of fit variables and in a separate vector
777 // NB all of them are passed to the fit, even though some have been fixed through parameter.fixed(kTRUE)
820 for ( LauBkgndYieldList::const_iterator iter = bkgndEvents_.begin(); iter != bkgndEvents_.end();
833 std::cout << "INFO in LauCPFitModel::setFitNEvents : Initialising number of events for signal and background components..."
838 std::cout << "INFO in LauCPFitModel::setFitNEvents : Initialising number of events for background components (and hence signal)..."
873 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
879 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
887 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
893 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
899 // Add the positive and negative fit fractions that have not been corrected for the efficiency for each signal component
902 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
908 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
916 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
922 std::cerr << "ERROR in LauCPFitModel::setExtraNtupleVars : Initial Fit Fraction array of unexpected dimension: "
955 for ( negExtraIter = negExtraPars.begin(); negExtraIter != negExtraPars.end(); ++negExtraIter ) {
962 for ( posExtraIter = posExtraPars.begin(); posExtraIter != posExtraPars.end(); ++posExtraIter ) {
1167 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1173 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1181 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1187 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1195 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1201 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1209 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1215 std::cerr << "ERROR in LauCPFitModel::finaliseFitResults : Fit Fraction array of unexpected dimension: "
1298 ntuple->storeParsAndErrors( this->fitPars(), this->multiDimConstrainedPars(), this->extraPars() );
1326 output << negParent_ << " overall DP rate (integral of matrix element squared) = " << negDPRate_
1338 output << posParent_ << " overall DP rate (integral of matrix element squared) = " << posDPRate_
1364 std::cout << "INFO in LauCPFitModel::writeOutTable : Writing out results of the fit to the tex file "
1487 std::cout << "INFO in LauCPFitModel::checkInitFitParams : Setting random parameters for the signal model"
1496 std::cout << "INFO in LauCPFitModel::randomiseInitFitPars : Randomising the initial fit magnitudes and phases of the components..."
1506 // by temporarily fixing all imported parameters, and then freeing those not set to be fixed when imported,
1508 // Convoluted, but beats changing the behaviour of functions that call checkInitFitParams or the coeffSet
1606 // Print out the information on what we're generating, but only if none of the parameters are blind (otherwise we risk unblinding them!)
1645 const Bool_t storeSCFTruthInfo = ( useSCF_ || ( this->enableEmbedding() && negSignalTree_ != 0 &&
1932 std::cerr << "WARNING in LauCPFitModel::generateSignalEvent : Source of embedded signal events used up, clearing the list of used events."
1976 std::cerr << "ERROR in LauCPFitModel::generateBkgndEvent : Can't find the DP model for background class \""
2075 void LauCPFitModel::generateExtraPdfValues( LauPdfPList* extraPdfs, LauEmbeddedData* embeddedData )
2091 //std::cerr << "WARNING in LauCPFitModel::generateExtraPdfValues : PDF list is empty." << std::endl;
2241 std::cerr << "ERROR in LauCPFitModel::cacheInputFitVars : Input data does not contain DP branches and so can't cache the SCF fraction."
2270 std::cerr << "ERROR in LauCPFitModel::cacheInputFitVars : Input data does not contain branch \""
2290 // given true bin in the LauScfMap object. (What this means is that when Laura is provided with
2685 void LauCPFitModel::addSPlotNtupleBranches( const LauPdfPList* extraPdfs, const TString& prefix )
2796 std::cerr << "WARNING in LauCPFitModel::setSPlotNtupleBranchValues : Can't yet deal with 3D PDFs."
2843 << "\" is a LauFormulaPar, which implies it is perhaps not entirely free to float in the fit, so the sWeight calculation may not be reliable"
2953 std::cout << "INFO in LauCPFitModel::storePerEvtLlhds : Storing per-event likelihood values..."
3106 std::cout << "INFO in LauCPFitModel::storePerEvtLlhds : Finished storing per-event likelihood values."
3110 std::map<TString, LauComplex> LauCPFitModel::getDPAmps( const Double_t m13Sq, const Double_t m23Sq )
3171 std::cerr << "WARNING in LauCPFitModel::getDPLikelihoods : calculation of SCF likelihoods not currently implemented in this function\n";
3206 std::cerr << "ERROR in LauCPFitModel::embedNegSignal : Problem creating data tree for embedding."
3226 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
3234 std::cerr << "ERROR in LauCPFitModel::embedNegBkgnd : Already embedding background from a file."
3239 negBkgndTree_[bkgndID] = new LauEmbeddedData( fileName, treeName, reuseEventsWithinExperiment );
3244 std::cerr << "ERROR in LauCPFitModel::embedNegBkgnd : Problem creating data tree for embedding."
3271 std::cerr << "ERROR in LauCPFitModel::embedPosSignal : Problem creating data tree for embedding."
3291 std::cerr << " : Background class names must be provided in \"setBkgndClassNames\" before any other background-related actions can be performed."
3299 std::cerr << "ERROR in LauCPFitModel::embedPosBkgnd : Already embedding background from a file."
3304 posBkgndTree_[bkgndID] = new LauEmbeddedData( fileName, treeName, reuseEventsWithinExperiment );
3309 std::cerr << "ERROR in LauCPFitModel::embedPosBkgnd : Problem creating data tree for embedding."
3326 std::cout << "INFO in LauCPFitModel::weightEvents : will store DP model weights and the square DP jacobian\n";
3327 std::cout << " : the DP model weights can be used on their own to weight events that were generated flat in phase space\n";
3328 std::cout << " : or they can be multiplied by the jacobian to weight events that were generated flat in the square DP\n";
3329 std::cout << " : or they can be multiplied by max(1.0, jacobian) to weight events that were generated quasi-flat in the square DP"
3332 std::cout << "INFO in LauCPFitModel::weightEvents : will store DP model weights suitable for weighting events that were generated flat in phase space"
3347 std::cerr << "WARNING in LauCPFitModel::weightEvents : Cannot find MC truth DP coordinate branches in supplied data, aborting."
3352 std::cerr << "WARNING in LauCPFitModel::weightEvents : Cannot find branch specifying event charge in supplied data, aborting."
virtual Double_t getTotEvtLikelihood(UInt_t iEvt) Get the total likelihood for each event. Definition: LauCPFitModel.cc:2328 virtual void printParValues() const =0 Print the current values of the parameters. File containing declaration of LauEffModel class. File containing declaration of LauAbsPdf class. virtual void getEvtDPLikelihood(UInt_t iEvt) Calculate the signal and background likelihoods for the DP for a given event. Definition: LauCPFitModel.cc:2411 Double_t getEventWeight() Calculate the acceptance rate, for events with the current kinematics, when generating events accordi... Definition: LauIsobarDynamics.cc:2940 File containing LauRandom namespace. Bool_t doEMLFit() const Determine whether an extended maximum likelihood fit it being performed. Definition: LauAbsFitModel.hh:117 void setExtraNtupleVars() Set-up other parameters that are derived from the fit results, e.g. fit fractions. Definition: LauCPFitModel.cc:857 Int_t resonanceIndex(const TString &resName) const Retrieve the index for the given resonance. Definition: LauIsobarDynamics.cc:999 const LauAbsResonance * getResonance(const UInt_t resIndex) const Retrieve a resonance by its index. Definition: LauIsobarDynamics.cc:1043 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:3254 UInt_t addResonanceParameters(LauParameter *param) Add the given parameter to the list of resonance parameters and the list of all fit parameters. Definition: LauAbsFitModel.cc:994 Class for defining the abstract interface for complex coefficient classes. Definition: LauAbsCoeffSet.hh:48 const TString & getResonanceName() const Get the name of the resonance. Definition: LauAbsResonance.hh:158 TH2 * trueHist(Int_t trueBin) Retrieve the migration histogram for trueBin. Definition: LauScfMap.cc:190 Double_t getc13() const Get the cosine of the helicity angle theta13. Definition: LauKinematics.hh:275 const LauParArray & getFitFractionsEfficiencyUncorrected() const Retrieve the fit fractions for the amplitude components. Definition: LauIsobarDynamics.hh:507 LauEffModel * scfFracHist_ The histogram giving the DP-dependence of the SCF fraction. Definition: LauCPFitModel.hh:662 Bool_t doPoissonSmearing() const Determine whether Poisson smearing is enabled for the toy MC generation. Definition: LauAbsFitModel.hh:126 Double_t getc23() const Get the cosine of the helicity angle theta23. Definition: LauKinematics.hh:267 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:128 void calcLikelihoodInfo(const UInt_t iEvt) Calculate the likelihood (and all associated information) for the given event number. Definition: LauIsobarDynamics.cc:2725 virtual void storePerEvtLlhds() Store the per event likelihood values. Definition: LauCPFitModel.cc:2951 Double_t getDPNorm() const Retrieve the normalisation factor for the log-likelihood function. Definition: LauIsobarDynamics.hh:534 virtual void cacheInputFitVars() Read in the input fit data variables, e.g. m13Sq and m23Sq. Definition: LauCPFitModel.cc:2188 virtual void setGenNtupleIntegerBranchValue(const TString &name, Int_t value) Set the value of an integer branch in the gen tree. Definition: LauAbsFitModel.cc:382 virtual Bool_t genExpt() Toy MC generation and fitting overloaded functions. Definition: LauCPFitModel.cc:1624 Double_t getValue(const TString &name) const Get the value of a specified branch. Definition: LauEmbeddedData.cc:193 virtual void printAsymmetries(std::ostream &output) Print the asymmetries. Definition: LauCPFitModel.cc:1344 virtual void setupSPlotNtupleBranches() Add branches to store experiment number and the event number within the experiment. Definition: LauCPFitModel.cc:2618 Double_t getEvtEff() const Retrieve the efficiency for the current event. Definition: LauIsobarDynamics.hh:355 virtual void getEvtExtraLikelihoods(UInt_t iEvt) Determine the signal and background likelihood for the extra variables for a given event. Definition: LauCPFitModel.cc:2566 virtual Bool_t verifyFitData(const TString &dataFileName, const TString &dataTreeName) Open the input file and verify that all required variables are present. Definition: LauAbsFitModel.cc:557 const LauFitData & getData(UInt_t iEvt) const Retrieve the data for a given event. Definition: LauFitDataTree.cc:376 The abstract interface for a background Dalitz plot model. Definition: LauAbsBkgndDPModel.hh:45 virtual void writeOutTable(const TString &outputFile) Write the fit results in latex table format. Definition: LauCPFitModel.cc:1357 virtual TString name() const Retrieve the name of the coefficient set. Definition: LauAbsCoeffSet.hh:134 std::vector< Double_t > fakeJacobians_ The cached values of the sqDP jacobians for each true bin. Definition: LauCPFitModel.hh:677 LauParArray negFitFracEffUnCorr_ Fit B- fractions (uncorrected for the efficiency) Definition: LauCPFitModel.hh:596 LauCPFitModel(LauIsobarDynamics *negModel, LauIsobarDynamics *posModel, Bool_t tagged=kTRUE, const TString &tagVarName="charge") Constructor. Definition: LauCPFitModel.cc:68 void setBkgndPdfs(const TString &bkgndClass, LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the background PDFs. Definition: LauCPFitModel.cc:433 Bool_t withinDPLimits2(const Double_t m13Sq, const Double_t m23Sq) const Check whether a given (m13Sq,m23Sq) point is within the kinematic limits of the Dalitz plot (alternat... Definition: LauKinematics.cc:477 UInt_t nNormPar_ Number of normalisation parameters (yields, asymmetries) Definition: LauCPFitModel.hh:584 void appendFakePoints(const std::vector< Double_t > &xCoords, const std::vector< Double_t > &yCoords) Add fake events to the data. Definition: LauFitDataTree.cc:234 Bool_t storeDPEff() const Determine whether the efficiency information should be stored in the sPlot ntuple. Definition: LauAbsFitModel.hh:177 File containing declaration of LauScfMap class. void setBkgndDPModels(const TString &bkgndClass, LauAbsBkgndDPModel *negModel, LauAbsBkgndDPModel *posModel) Set the background DP models. Definition: LauCPFitModel.cc:359 Bool_t squareDP() const Determine to use or not the square Dalitz plot. Definition: LauDaughters.hh:102 Double_t calcEfficiency(const LauKinematics *kinematics) const Determine the efficiency for a given point in the Dalitz plot. Definition: LauEffModel.cc:367 Double_t getm13Max() const Get the m13 maximum defined as (mParent - m2) Definition: LauKinematics.hh:371 void cacheInfo(LauPdfPList &pdfList, const LauFitDataTree &theData) Have all PDFs in the list cache the data. Definition: LauAbsFitModel.cc:1125 void generateExtraPdfValues(LauPdfPList *extraPdfs, LauEmbeddedData *embeddedData) Generate from the extra PDFs. Definition: LauCPFitModel.cc:2075 File containing declaration of LauFitNtuple class. void calcExtraFractions(Bool_t initValues=kFALSE) Calculate the CP-conserving and CP-violating fit fractions. Definition: LauCPFitModel.cc:1020 Bool_t enableEmbedding() const Determine whether embedding of events is enabled in the generation. Definition: LauAbsFitModel.hh:135 void fillDataTree(const LauFitDataTree &fitDataTree) Fill the internal data structure that caches the resonance dynamics. Definition: LauIsobarDynamics.cc:2829 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:68 void updateKinematics(const Double_t m13Sq, const Double_t m23Sq) Update all kinematic quantities based on the DP co-ordinates m13Sq and m23Sq. Definition: LauKinematics.cc:128 virtual void addGenNtupleDoubleBranch(const TString &name) Add a branch to the gen tree for storing a double. Definition: LauAbsFitModel.cc:377 std::vector< LauComplex > negCoeffs_ The complex coefficients for B-. Definition: LauCPFitModel.hh:689 virtual void setupBkgndVectors() Define the length of the background vectors. Definition: LauCPFitModel.cc:137 File containing declaration of LauCPFitModel class. File containing declaration of LauAbsCoeffSet class. std::set< LauParameter * > allImportedFreeParams_ The set of parameters that are imported (either from a file or by value) and not. Definition: LauAbsFitModel.hh:815 const TString & bkgndClassName(UInt_t classID) const Get the name of a background class from the number. Definition: LauAbsFitModel.cc:227 void fixParams(std::vector< LauParameter * > ¶ms) Set a vector of LauParameters according to the specified method. Definition: LauCPFitModel.cc:3731 std::pair< LauGenInfo, Bool_t > eventsToGenerate() Determine the number of events to generate for each hypothesis. Definition: LauCPFitModel.cc:1525 std::vector< Double_t > fakeSCFFracs_ The cached values of the SCF fraction for each bin centre. Definition: LauCPFitModel.hh:671 Bool_t haveBranch(const TString &name) const Boolean to determine whether branch exists. Definition: LauEmbeddedData.hh:88 Double_t getEvtmPrime() const Retrieve the square Dalitz plot coordinate, m', for the current event. Definition: LauIsobarDynamics.hh:343 Bool_t withinDPLimits(const Double_t m13Sq, const Double_t m23Sq) const Check whether a given (m13Sq,m23Sq) point is within the kinematic limits of the Dalitz plot. Definition: LauKinematics.cc:439 const std::set< TString > & multiDimConstrainedPars() const Const access to the parameter names used in ND constraints. Definition: LauFitObject.hh:286 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:3189 UInt_t bkgndClassID(const TString &className) const The number assigned to a background class. Definition: LauAbsFitModel.cc:206 std::vector< LauParameter * > & getFloatingParameters() Retrieve the floating parameters of the resonance models. Definition: LauIsobarDynamics.hh:576 std::vector< LauParameter * > LauParameterPList List of parameter pointers. Definition: LauAbsFitModel.hh:339 Bool_t haveBranch(const TString &name) const Check if the named branch is stored. Definition: LauFitDataTree.cc:293 std::set< TString > NameSet Type to store names, e.g. of the discriminating/control variables. Definition: LauSPlot.hh:72 virtual void printFitFractions(std::ostream &output) Print the fit fractions, total DP rate and mean efficiency. Definition: LauCPFitModel.cc:1317 void storeCorrMatrix(const UInt_t iExpt, const LauAbsFitter::FitStatus &fitStatus, const TMatrixD &covMatrix) Store the correlation matrix and other fit information. Definition: LauFitNtuple.cc:76 const LauAbsFitter::FitStatus & fitStatus() const Access the fit status information. Definition: LauFitObject.hh:333 virtual const TString & baseName() const Retrieve the base name of the coefficient set. Definition: LauAbsCoeffSet.hh:151 Double_t getm23Max() const Get the m23 maximum defined as (mParent - m1) Definition: LauKinematics.hh:365 std::vector< LauPdfPList > LauBkgndPdfsList Typedef for a vector of background PDFs. Definition: LauCPFitModel.hh:274 Double_t getc12() const Get the cosine of the helicity angle theta12. Definition: LauKinematics.hh:259 UInt_t getnTotAmp() const Retrieve the total number of amplitude components. Definition: LauIsobarDynamics.hh:516 virtual void setNBkgndEvents(LauAbsRValue *nBkgndEvents) Set the background event yield(s) Definition: LauCPFitModel.cc:220 Class that implements the efficiency description across the signal Dalitz plot. Definition: LauEffModel.hh:50 std::vector< Double_t > recoSCFFracs_ The cached values of the SCF fraction for each event. Definition: LauCPFitModel.hh:668 File containing declaration of LauAsymmCalc class. virtual Bool_t passVeto(const LauKinematics *kinematics) const =0 Determine whether the given DP position is outside the vetoes. std::vector< Double_t > bkgndExtraLike_ Background likelihood value(s) from extra PDFs. Definition: LauCPFitModel.hh:737 Double_t getParamFromTree(TTree &tree, const TString &name) Retrieve a named parameter from a TTree. Definition: LauCPFitModel.cc:3690 Bool_t useRandomInitFitPars() const Determine whether the initial values of the fit parameters, in particular the isobar coefficient para... Definition: LauAbsFitModel.hh:180 UInt_t addFitParameters(LauParameter *param, const Bool_t addFixed=kFALSE) Add the given parameter to the list of all fit parameters. Definition: LauAbsFitModel.cc:918 void setSignalDPParameters() Set the fit parameters for the DP model. Definition: LauCPFitModel.cc:748 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:75 void squareDP(const Bool_t calcSquareDPCoords) Enable/disable the calculation of square Dalitz plot co-ordinates. Definition: LauKinematics.hh:73 TString getConjResName(const TString &resName) const Retrieve the name of the charge conjugate of a named resonance. Definition: LauIsobarDynamics.cc:2974 virtual void setSPlotNtupleDoubleBranchValue(const TString &name, Double_t value) Set the value of a double branch in the sPlot tree. Definition: LauAbsFitModel.cc:422 File containing declaration of LauComplex class. void appendBinCentres(LauFitDataTree *inputData) Append fake data points to the inputData for each bin in the SCF smearing matrix. Definition: LauCPFitModel.cc:2285 File containing declaration of LauDaughters class. Double_t prodPdfValue(LauPdfPList &pdfList, UInt_t iEvt) Calculate the product of the per-event likelihoods of the PDFs in the list. Definition: LauAbsFitModel.cc:1132 Bool_t usingScfModel() const Check whether a self cross feed fraction model is being used. Definition: LauIsobarDynamics.hh:564 Double_t getEvtIntensity() const Retrieve the total intensity multiplied by the efficiency for the current event. Definition: LauIsobarDynamics.hh:373 ToyMCStatus checkToyMC(Bool_t printErrorMessages=kTRUE, Bool_t printInfoMessages=kFALSE) Check the status of the toy MC generation. Definition: LauIsobarDynamics.cc:2637 virtual void setAmpCoeffSet(LauAbsCoeffSet *coeffSet) Set the DP amplitude coefficients. Definition: LauCPFitModel.cc:470 virtual void recalculateNormalisation() Recalculate Normalization the signal DP models. Definition: LauCPFitModel.cc:718 File containing declaration of LauGenNtuple class. std::vector< Double_t > recoJacobians_ The cached values of the sqDP jacobians for each event. Definition: LauCPFitModel.hh:674 UInt_t nUsedEvents() const Retrieve the number of events that have already been sampled. Definition: LauEmbeddedData.hh:82 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:3217 virtual void addSPlotNtupleIntegerBranch(const TString &name) Add a branch to the sPlot tree for storing an integer. Definition: LauAbsFitModel.cc:407 UInt_t getnCohAmp() const Retrieve the number of coherent amplitude components. Definition: LauIsobarDynamics.hh:522 TRandom * randomFun() Access the singleton random number generator with a particular seed. Definition: LauRandom.cc:33 const std::vector< LauParameter > & getExtraParameters() const Retrieve any extra parameters/quantities (e.g. K-matrix total fit fractions) Definition: LauIsobarDynamics.hh:570 std::vector< std::vector< LauParameter > > LauParArray Type to define an array of parameters. Definition: LauParameter.hh:570 LauBkgndDPModelList posBkgndDPModels_ The B+ background Dalitz plot models. Definition: LauCPFitModel.hh:545 virtual void weightEvents(const TString &dataFileName, const TString &dataTreeName) Weight events based on the DP model. Definition: LauCPFitModel.cc:3319 virtual void setGenNtupleDoubleBranchValue(const TString &name, Double_t value) Set the value of a double branch in the gen tree. Definition: LauAbsFitModel.cc:387 Double_t abs2() const Obtain the square of the absolute value of the complex number. Definition: LauComplex.hh:260 const LauFitNtuple * fitNtuple() const Const access to the fit ntuple. Definition: LauSimFitTask.hh:100 Int_t binNumber(Double_t xCoord, Double_t yCoord) const Find the global bin number for the given co-ordinates. Definition: LauScfMap.cc:158 const LauDaughters * getDaughters() const Retrieve the daughters. Definition: LauIsobarDynamics.hh:540 LauParArray posFitFracEffUnCorr_ Fit B+ fractions (uncorrected for the efficiency) Definition: LauCPFitModel.hh:599 virtual LauSPlot::TwoDMap twodimPDFs() const Returns the species and variables for all 2D PDFs in the fit. Definition: LauCPFitModel.cc:2871 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:3282 Bool_t writeLatexTable() const Determine whether writing out of the latex table is enabled. Definition: LauAbsFitModel.hh:144 Double_t getEvtm23Sq() const Retrieve the invariant mass squared of the second and third daughters in the current event. Definition: LauIsobarDynamics.hh:337 Pure abstract base class for defining a parameter containing an R value. Definition: LauAbsRValue.hh:45 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:73 const LauParameterList & extraPars() const Const access the extra variables. Definition: LauAbsFitModel.hh:771 void calcAsymmetries(Bool_t initValues=kFALSE) Calculate the CP asymmetries. Definition: LauCPFitModel.cc:1073 File containing LauConstants namespace. std::map< TString, Double_t > fixParamMap_ Map from imported parameter name to value. Definition: LauAbsFitModel.hh:804 Class for representing the 4D smearing matrix for mis-reconstructed signal (self cross feed) Definition: LauScfMap.hh:45 File containing declaration of LauAbsBkgndDPModel class. virtual void addSPlotNtupleDoubleBranch(const TString &name) Add a branch to the sPlot tree for storing a double. Definition: LauAbsFitModel.cc:412 virtual LauSPlot::NumbMap freeSpeciesNames() const Returns the names and yields of species that are free in the fit. Definition: LauCPFitModel.cc:2828 void initialise(const std::vector< LauComplex > &coeffs) Initialise the Dalitz plot dynamics. Definition: LauIsobarDynamics.cc:361 std::vector< LauParameter > fitFracAsymm_ The fit fraction asymmetries. Definition: LauCPFitModel.hh:608 UInt_t nBkgndClasses() const Returns the number of background classes. Definition: LauAbsFitModel.hh:192 const std::vector< Int_t > * trueBins(Int_t recoBin) const Find which true bins contribute to the given reco bin. Definition: LauScfMap.cc:169 void fixParam(LauParameter *param, const Double_t val, const Bool_t fix) Set a LauParameter to a given value. Definition: LauCPFitModel.cc:3712 virtual void savePDFPlotsWave(const TString &label, const Int_t &spin) Save the pdf Plots for the sum of resonances of a given spin. Definition: LauCPFitModel.cc:3568 void collateResonanceParameters() Collate the resonance parameters to initialise (or re-initialise) the model. Definition: LauIsobarDynamics.cc:273 virtual void savePDFPlots(const TString &label) Save the pdf Plots for all the resonances. Definition: LauCPFitModel.cc:3437 const LauParameterPList & fitPars() const Const access to the fit variables. Definition: LauAbsFitModel.hh:765 void clearFitParVectors() Clear the vectors containing fit parameters. Definition: LauAbsFitModel.cc:240 void setSignalPdfs(LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the signal PDFs. Definition: LauCPFitModel.cc:385 const LauComplex & getEvtDPAmp() const Retrieve the total amplitude for the current event. Definition: LauIsobarDynamics.hh:325 Double_t getEvtScfFraction() const Retrieve the fraction of events that are poorly reconstructed (the self cross feed fraction) for the ... Definition: LauIsobarDynamics.hh:361 void addSPlotNtupleBranches(const LauPdfPList *extraPdfs, const TString &prefix) Add sPlot branches for the extra PDFs. Definition: LauCPFitModel.cc:2685 void storeParsAndErrors(const std::vector< LauParameter * > &fitVars, const std::set< TString > &constrainedVars, const std::vector< LauParameter > &extraVars) Store parameters and their errors. Definition: LauFitNtuple.cc:216 virtual void propagateParUpdates() Calculate things that depend on the fit parameters after they have been updated by Minuit. Definition: LauCPFitModel.cc:2141 std::map< TString, Double_t > LauFitData Type for holding event data. Definition: LauFitDataTree.hh:45 virtual UInt_t index() const Retrieve the index number of the coefficient set. Definition: LauAbsCoeffSet.hh:166 void modifyDataTree() Recache the amplitude values for those that have changed. Definition: LauIsobarDynamics.cc:2792 virtual std::map< TString, LauComplex > getDPAmps(const Double_t m13Sq, const Double_t m23Sq) Calculate the DP amplitude(s) for a given DP position. Definition: LauCPFitModel.cc:3110 void updateSqDPKinematics(const Double_t mPrime, const Double_t thetaPrime) Update all kinematic quantities based on the square DP co-ordinates m' and theta'. Definition: LauKinematics.cc:147 Bool_t storeSignalMCMatch(LauEmbeddedData *embeddedData) Store the MC truth info on the TM/SCF nature of the embedded signal event. Definition: LauCPFitModel.cc:2115 Double_t setSPlotNtupleBranchValues(LauPdfPList *extraPdfs, const TString &prefix, UInt_t iEvt) Set the branches for the sPlot ntuple with extra PDFs. Definition: LauCPFitModel.cc:2739 virtual void addGenNtupleIntegerBranch(const TString &name) Add a branch to the gen tree for storing an integer. Definition: LauAbsFitModel.cc:372 Abstract class for defining type for resonance amplitude models (Breit-Wigner, Flatte etc.... Definition: LauAbsResonance.hh:51 File containing declaration of LauPrint class and LauOutputLevel enum. virtual Double_t getEventSum() const Get the total number of events. Definition: LauCPFitModel.cc:2397 virtual Double_t getEvtSCFDPLikelihood(UInt_t iEvt) Calculate the SCF likelihood for the DP for a given event. Definition: LauCPFitModel.cc:2495 void getEmbeddedEvent(LauKinematics *kinematics) Retrieve an event from the data sample. Definition: LauEmbeddedData.cc:155 LauBkgndDPModelList negBkgndDPModels_ The B- background Dalitz plot models. Definition: LauCPFitModel.hh:542 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:268 virtual void setNSigEvents(LauParameter *nSigEvents) Set the signal event yield. Definition: LauCPFitModel.cc:154 const TMatrixD & covarianceMatrix() const Access the fit covariance matrix. Definition: LauFitObject.hh:345 LauFitData getValues(const std::vector< TString > &names) const Get values of specified branches. Definition: LauEmbeddedData.cc:205 const LauParameter & getDPRate() const Retrieve the overall Dalitz plot rate. Definition: LauIsobarDynamics.hh:495 virtual void setSPlotNtupleIntegerBranchValue(const TString &name, Int_t value) Set the value of an integer branch in the sPlot tree. Definition: LauAbsFitModel.cc:417 void setExtraPdfParameters() Set the fit parameters for the extra PDFs. Definition: LauCPFitModel.cc:774 void clearExtraVarVectors() Clear the vectors containing extra ntuple variables. Definition: LauAbsFitModel.cc:250 virtual LauSPlot::NumbMap fixdSpeciesNames() const Returns the names and yields of species that are fixed in the fit. Definition: LauCPFitModel.cc:2852 void setSCFPdfs(LauAbsPdf *negPdf, LauAbsPdf *posPdf) Set the SCF PDF for a given variable. Definition: LauCPFitModel.cc:409 const LauParameter & getMeanEff() const Retrieve the mean efficiency across the Dalitz plot. Definition: LauIsobarDynamics.hh:489 Double_t calcSqDPJacobian(const Double_t mPrime, const Double_t thPrime) const Calculate the Jacobian for the transformation m23^2, m13^2 -> m', theta' (square DP) at the given poi... Definition: LauKinematics.cc:176 Bool_t fixParams_ Whether to fix the loaded parameters (kTRUE) or leave them floating (kFALSE) Definition: LauAbsFitModel.hh:810 Class for calculating the asymmetry between two variables. Definition: LauAsymmCalc.hh:38 void printFitParameters(const LauPdfPList &pdfList, std::ostream &fout) const Print the fit parameters for all PDFs in the list. Definition: LauAbsFitModel.cc:1097 Pure abstract base class for defining the efficiency description across the signal Dalitz plot. Definition: LauAbsEffModel.hh:45 UInt_t eventsPerExpt() const Obtain the total number of events in the current experiment. Definition: LauFitObject.hh:109 void printFormat(std::ostream &stream, Double_t value) const Method to choose the printing format to a specified level of precision. Definition: LauPrint.cc:43 std::vector< LauComplex > posCoeffs_ The complex coefficients for B+. Definition: LauCPFitModel.hh:692 void updateSigEvents() Update the signal events after Minuit sets background parameters. Definition: LauCPFitModel.cc:2156 const LauAbsEffModel * getEffModel() const Retrieve the model for the efficiency across the Dalitz plot. Definition: LauIsobarDynamics.hh:558 void updateCoeffs(const std::vector< LauComplex > &coeffs) Update the complex coefficients for the resonances. Definition: LauIsobarDynamics.cc:2952 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:81 std::vector< Double_t > bkgndTotalLike_ Total background likelihood(s) Definition: LauCPFitModel.hh:746 Class to store the data for embedding in toy experiments. Definition: LauEmbeddedData.hh:46 Class that defines the particular 3-body decay under study. Definition: LauDaughters.hh:47 Double_t getEvtthPrime() const Retrieve the square Dalitz plot coordinate, theta', for the current event. Definition: LauIsobarDynamics.hh:349 LauComplex getFullAmplitude(const Int_t resID) const Retrieve the Amplitude of resonance resID. Definition: LauIsobarDynamics.hh:399 Class for defining signal dynamics using the isobar model. Definition: LauIsobarDynamics.hh:53 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:313 File containing declaration of LauEmbeddedData class. Bool_t gotSymmetricalDP() const Is Dalitz plot symmetric, i.e. 2 identical particles. Definition: LauDaughters.hh:84 void updateFitParameters(LauPdfPList &pdfList) Update the fit parameters for all PDFs in the list. Definition: LauAbsFitModel.cc:1090 virtual LauSPlot::NameSet variableNames() const Returns the names of all variables in the fit. Definition: LauCPFitModel.cc:2804 void calcExtraInfo(const Bool_t init=kFALSE) Calculate the fit fractions, mean efficiency and total DP rate. Definition: LauIsobarDynamics.cc:2199 const LauKinematics * getKinematics() const Retrieve the Dalitz plot kinematics. Definition: LauIsobarDynamics.hh:546 std::vector< Double_t > bkgndDPLike_ Background DP likelihood value(s) Definition: LauCPFitModel.hh:728 LauBkgndReuseEventsList reuseBkgnd_ Vector of booleans to reuse background events. Definition: LauCPFitModel.hh:718 File containing declaration of LauIsobarDynamics class. Bool_t validBkgndClass(const TString &className) const Check if the given background class is in the list. Definition: LauAbsFitModel.cc:187 Double_t getEvtm13Sq() const Retrieve the invariant mass squared of the first and third daughters in the current event. Definition: LauIsobarDynamics.hh:331 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:179 virtual std::map< TString, Double_t > getDPLikelihoods(const Double_t m13Sq, const Double_t m23Sq) Calculate the DP likelihood(s) for a given DP position. Definition: LauCPFitModel.cc:3134 File containing declaration of LauKinematics class. Class to store the results from the toy MC generation into an ntuple. Definition: LauGenNtuple.hh:45 virtual void finaliseFitResults(const TString &tablePrefixName) Get the fit results and store them. Definition: LauCPFitModel.cc:1092 const LauParArray & getFitFractions() const Retrieve the fit fractions for the amplitude components. Definition: LauIsobarDynamics.hh:501 Generated by ![]() |