#include <RhoKinHyperonFitter.h>
Definition at line 21 of file RhoKinHyperonFitter.h.
RhoKinHyperonFitter::RhoKinHyperonFitter |
( |
RhoCandidate * |
b | ) |
|
RhoKinHyperonFitter::~RhoKinHyperonFitter |
( |
| ) |
|
|
virtual |
void RhoKinHyperonFitter::Add4MomConstraint |
( |
TLorentzVector |
lv | ) |
|
void RhoKinHyperonFitter::AddMassConstraint |
( |
double |
mass | ) |
|
void RhoKinHyperonFitter::AddMomConstraint |
( |
TVector3 |
v | ) |
|
void RhoKinHyperonFitter::AddTotEConstraint |
( |
double |
energy | ) |
|
void RhoKinHyperonFitter::AddTotMomConstraint |
( |
double |
momentum | ) |
|
double RhoKinHyperonFitter::Chi2Contribution |
( |
const RhoCandidate & |
| ) |
const |
|
inline |
Definition at line 38 of file RhoKinHyperonFitter.h.
38 {Error(
"RhoKinHyperonFitter::Chi2Contribution",
"No chi2 contribution available.");
return -9999.;};
double RhoKinHyperonFitter::Chi2Diff |
( |
| ) |
|
|
inline |
void RhoFitterBase::FindAndAddFinalStateDaughters |
( |
RhoCandidate * |
cand | ) |
|
|
protectedinherited |
Bool_t RhoKinHyperonFitter::Fit |
( |
| ) |
|
Definition at line 62 of file RhoKinHyperonFitter.cxx.
References Bool_t, f4MomConstraint, RhoFitterBase::fDaughters, RhoFitterBase::fHeadOfTree, fMassConstraint, fMomConstraint, fNumCon, fTotEConstraint, fTotMomConstraint, ReadMatrix(), RhoFitterBase::SetDaugthersFromComposite(), SetMatrices(), SetOutput(), Solve(), and ZeroMatrices().
std::vector< RhoCandidate * > fDaughters
RhoCandidate * fHeadOfTree
void SetDaugthersFromComposite(RhoCandidate *cand)
Bool_t RhoKinHyperonFitter::FitAll |
( |
| ) |
|
|
inline |
Definition at line 33 of file RhoKinHyperonFitter.h.
33 {Fatal(
"RhoKinHyperonFitter::FitAll()",
"Not applicable. Please use Fit().");
return kFALSE;};
|
protectedvirtualinherited |
double RhoFitterBase::GetChi2 |
( |
| ) |
const |
|
inlineinherited |
Definition at line 48 of file RhoFitterBase.h.
References RhoFitterBase::fChiSquare.
Referenced by ana_check(), ana_check_psi(), ana_complete(), ana_day1(), ana_multi(), anaideal_complete(), anatut_psi2s(), PndTripleAnaTask::DsDs2317Analysis(), PndPmtTask::Exec(), PndProdAnaTask::Exec(), PndLLbarAnaTask::Exec(), PndAnaWithTrigger::Exec(), PndMyAnalysisTask::Exec(), PndScrutAnaTask::Exec(), PndSimpleCombinerTask::Exec(), PndTripleAnaTask::JpsiAnalysis(), newana_check_eta(), poormantracks(), PndRhoTupleQA::qaFitter(), run_ana_eta_c_stt(), run_ana_eta_c_stt_v2(), run_ana_eta_c_tpc(), PndTripleAnaTask::ThreePiAnalysis(), tut_ana(), tut_ana_fast(), tut_ana_fit(), tut_ana_ntp(), tut_ana_ntp_noqa(), and tut_ana_ntp_qa().
int RhoFitterBase::GetNdf |
( |
| ) |
const |
|
inlineinherited |
double RhoFitterBase::GetProb |
( |
| ) |
const |
|
inlineinherited |
Definition at line 50 of file RhoFitterBase.h.
References RhoFitterBase::fChiSquare, and RhoFitterBase::fNDegreesOfFreedom.
Referenced by ana_complete(), ana_day1(), ana_multi(), anaideal_complete(), PndPmtTask::Exec(), PndLLbarAnaTask::Exec(), poormantracks(), PndRhoTupleQA::qaFitter(), tut_ana(), tut_ana_fast(), tut_ana_fit(), tut_ana_ntp(), tut_ana_ntp_noqa(), and tut_ana_ntp_qa().
double RhoKinHyperonFitter::GetPull |
( |
| ) |
|
|
inline |
void RhoFitterBase::InsertChi2 |
( |
const RhoCandidate * |
bc, |
|
|
const double |
chi2 |
|
) |
| |
|
inlineprotectedinherited |
void RhoKinHyperonFitter::Read4MomKinMatrix |
( |
| ) |
|
|
private |
void RhoKinHyperonFitter::ReadKinMatrix |
( |
| ) |
|
|
private |
void RhoKinHyperonFitter::ReadMassKinMatrix |
( |
| ) |
|
|
private |
void RhoKinHyperonFitter::ReadMatrix |
( |
| ) |
|
|
private |
Definition at line 309 of file RhoKinHyperonFitter.cxx.
References RhoCandidate::Cov7(), fAl0, RhoFitterBase::fHeadOfTree, fMassConstraint, fMomConstraint, fV_al0, i, jj, p1, p2, RhoCandidate::P4(), and RhoCandidate::Pos().
Referenced by Fit().
335 for (
int ii=0; ii<6; ii++) {
for(
int jj=0;
jj<6;
jj++) {HeadCov[ii][
jj]=p1Cov[ii][
jj];}}
343 for(
int i=0;
i<7;
i++) {
344 for(
int j=0; j<7; j++) {
347 p4Cov[
i-3][j-3] = p3Cov[
i][j];
348 }
else { p4Cov[
i-3][j+4] = p3Cov[
i][j]; }
351 p4Cov[
i+4][j-3] = p3Cov[
i][j];
352 }
else { p4Cov[
i+4][j+4] = p3Cov[
i][j]; }
359 for(
int i=0;
i<7;
i++) {
360 for (
int j=0; j<7; j++) {
TLorentzVector P4() const
RhoCandidate * fHeadOfTree
TMatrixT< double > TMatrixD
void RhoKinHyperonFitter::ReadMomKinMatrix |
( |
| ) |
|
|
private |
void RhoKinHyperonFitter::ReadTotEKinMatrix |
( |
| ) |
|
|
private |
void RhoKinHyperonFitter::ReadTotMomKinMatrix |
( |
| ) |
|
|
private |
Definition at line 536 of file RhoKinHyperonFitter.cxx.
References fAl1, RhoFitterBase::fDaughters, fmD, fmd, fMom, fNc, i, m, and sqrt().
Referenced by Solve().
542 for (k=0; k<nd; k++) {
543 double Ptot =
sqrt(alp[k*7+0][0]*alp[k*7+0][0]+
544 alp[k*7+1][0]*alp[k*7+1][0]+
545 alp[k*7+2][0]*alp[k*7+2][0]);
546 for (i=0; i<3; i++) {
548 fmD[
fNc+0][k*7+
i] = alp[k*7+
i][0]/Ptot;
friend F32vec4 sqrt(const F32vec4 &a)
std::vector< RhoCandidate * > fDaughters
TMatrixT< double > TMatrixD
void RhoFitterBase::SetDaugthersFromComposite |
( |
RhoCandidate * |
cand | ) |
|
|
protectedinherited |
void RhoFitterBase::SetDecayVertex |
( |
RhoCandidate * |
composite, |
|
|
const TVector3 & |
vtx, |
|
|
const TMatrixD & |
CovVV |
|
) |
| |
|
protectedinherited |
void RhoFitterBase::SetFourMomentumByDaughters |
( |
RhoCandidate * |
composite | ) |
|
|
protectedinherited |
Definition at line 160 of file RhoFitterBase.cxx.
References RhoCandidate::Cov7(), RhoCandidate::Daughter(), RhoCandidate::IsComposite(), RhoCandidate::IsLocked(), RhoCandidate::NDaughters(), RhoCandidate::P4(), RhoCandidate::SetCov7(), and RhoCandidate::SetP4().
Referenced by RhoKalmanVtxFitter::Calculate(), Rho4CFitter::Fit(), Rho4CFitter::FitConserveMasses(), RhoKinVtxFitter::SetOutput(), and RhoKinFitter::SetOutput().
163 TLorentzVector tmpLV;
170 tmpCov = tmpCov + tc->
Cov7();
172 composite->
SetP4(tmpLV);
Bool_t IsComposite() const
RhoCandidate * Daughter(Int_t n)
void SetFourMomentumByDaughters(RhoCandidate *composite)
void SetP4(Double_t mass, const TVector3 &p3)
TLorentzVector P4() const
void SetCov7(const TMatrixD &cov7)
TMatrixT< double > TMatrixD
void RhoKinHyperonFitter::SetMatrices |
( |
| ) |
|
|
private |
Definition at line 102 of file RhoKinHyperonFitter.cxx.
References fAl0, fAl1, RhoFitterBase::fDaughters, RhoFitterBase::fHeadOfTree, fMassConstraint, fmD, fmd, fmE, fMomConstraint, fmPull, fNc, fNcon, fNiter, fNpar, fNumCon, fNvar, fV_al0, fV_al1, and RhoFitterBase::SetDaugthersFromComposite().
Referenced by Fit(), and SetInputMatrix().
122 fAl0.ResizeTo(7*nd,1);
124 fAl1.ResizeTo(7*nd,1);
std::vector< RhoCandidate * > fDaughters
RhoCandidate * fHeadOfTree
void SetDaugthersFromComposite(RhoCandidate *cand)
void RhoKinHyperonFitter::SetOutput |
( |
| ) |
|
|
private |
Definition at line 198 of file RhoKinHyperonFitter.cxx.
References f4MomConstraint, fAl0, RhoFitterBase::fDaughters, RhoFitterBase::fHeadOfTree, fMassConstraint, fMomConstraint, RhoFitterBase::fNDegreesOfFreedom, fTotEConstraint, fTotMomConstraint, fV_al0, i, m, p1, pos, RhoCandidate::SetCov7(), RhoCandidate::SetP4(), RhoCandidate::SetP7(), and sqrt().
Referenced by Fit().
225 for(
int i=0;
i<7;
i++) {
226 for (
int j=0; j<7; j++) {
235 for(
int i=0;
i<7;
i++) {
236 for(
int j=0; j<7; j++) {
239 HeadCov[
i-4][j-4] = p1Cov[
i][j];
240 }
else { HeadCov[
i-4][j+3] = p1Cov[
i][j]; }
243 HeadCov[
i+3][j-4] = p1Cov[
i][j];
244 }
else { HeadCov[
i+3][j+3] = p1Cov[
i][j]; }
256 TLorentzVector tot(0,0.0,0.0,0.0);
257 for (
int k=0; k<nd; k++) {
266 TLorentzVector mom4(
fAl0[k*7+0][0],
fAl0[k*7+1][0],
fAl0[k*7+2][0],E);
272 for(
int i=0;
i<7;
i++) {
273 for (
int j=0; j<7; j++) {
283 for(
int i=0;
i<7;
i++) {
284 for(
int j=0; j<7; j++) {
287 p2Cov[
i-4][j-4] = p1Cov[
i][j];
288 }
else { p2Cov[
i-4][j+3] = p1Cov[
i][j]; }
291 p2Cov[
i+3][j-4] = p1Cov[
i][j];
292 }
else { p2Cov[
i+3][j+3] = p1Cov[
i][j]; }
void SetP7(const TVector3 &pos, const TLorentzVector &p4)
friend F32vec4 sqrt(const F32vec4 &a)
void SetP4(Double_t mass, const TVector3 &p3)
std::vector< RhoCandidate * > fDaughters
RhoCandidate * fHeadOfTree
void SetCov7(const TMatrixD &cov7)
TMatrixT< double > TMatrixD
void RhoFitterBase::SetVerbose |
( |
Bool_t |
v = kTRUE | ) |
|
|
inlineinherited |
Bool_t RhoKinHyperonFitter::Solve |
( |
| ) |
|
|
private |
Definition at line 146 of file RhoKinHyperonFitter.cxx.
References f4MomConstraint, fabs(), fAl0, fAl1, RhoFitterBase::fChiSquare, fMassConstraint, fmD, fmd, fMomConstraint, fTotEConstraint, fTotMomConstraint, fV_al0, fV_al1, Read4MomKinMatrix(), ReadMassKinMatrix(), ReadMomKinMatrix(), ReadTotEKinMatrix(), and ReadTotMomKinMatrix().
Referenced by Fit().
151 chi2_0[0][0]=10000000.;
154 for(Int_t j1=0;j1<j1Max;++j1)
176 if(TMath::IsNaN(chi2_new[0][0]))
continue;
177 double delchi2 = chi2_0[0][0]- chi2_new[0][0];
180 if( chi2_new[0][0] < chi2_0[0][0]||
fabs(delchi2)<1.){
184 chi2_0[0][0]= chi2_new[0][0];
186 if(
fabs(delchi2)<0.01||j1==j1Max-1){
fV_al1= V_al_new;
break;}
friend F32vec4 fabs(const F32vec4 &a)
TMatrixT< double > TMatrixD
void ReadTotMomKinMatrix()
void RhoKinHyperonFitter::ZeroMatrices |
( |
| ) |
|
|
private |
int RhoKinHyperonFitter::f4MomConstraint |
|
private |
double RhoKinHyperonFitter::fChi2Diff |
|
private |
double RhoFitterBase::fChiSquare |
|
protectedinherited |
Definition at line 74 of file RhoFitterBase.h.
Referenced by RhoKalmanVtxFitter::Calculate(), DecayTreeFitter::Fitter::chiSquare(), RhoKinVtxFitter::Compute(), RhoKinHyperonVtxFitter::Compute(), Rho4CFitter::Do4CFit(), Rho4CFitter::Do4CFitWithMassConservation(), RhoKalmanVtxFitter::FitNode(), RhoKalmanVtxFitter::FitVertexFast(), RhoFitterBase::GetChi2(), RhoFitterBase::GetProb(), Rho4CFitter::Rho4CFitter(), RhoKinFitter::Solve(), and Solve().
Definition at line 69 of file RhoFitterBase.h.
Referenced by RhoKinVtxFitter::Compute(), RhoKinHyperonVtxFitter::Compute(), Rho4CFitter::Do4CFit(), Rho4CFitter::Do4CFitWithMassConservation(), RhoFitterBase::FindAndAddFinalStateDaughters(), Rho4CFitter::Fit(), RhoKinFitter::Fit(), Fit(), Rho4CFitter::FitConserveMasses(), RhoKinVtxFitter::GetCovariance(), RhoKinHyperonVtxFitter::GetCovariance(), RhoKinFitter::Read4MomKinMatrix(), Read4MomKinMatrix(), RhoKinVtxFitter::ReadKinMatrix(), RhoKinHyperonVtxFitter::ReadKinMatrix(), RhoKinVtxFitter::ReadMassKinMatrix(), RhoKinFitter::ReadMassKinMatrix(), RhoKinHyperonVtxFitter::ReadMassKinMatrix(), RhoKinVtxFitter::ReadMatrix(), RhoKinFitter::ReadMatrix(), RhoKinHyperonVtxFitter::ReadMatrix(), RhoKinFitter::ReadMomKinMatrix(), ReadMomKinMatrix(), RhoKinFitter::ReadTotEKinMatrix(), ReadTotEKinMatrix(), RhoKinFitter::ReadTotMomKinMatrix(), ReadTotMomKinMatrix(), RhoFitterBase::SetDaugthersFromComposite(), RhoKinVtxFitter::SetMatrices(), RhoKinFitter::SetMatrices(), SetMatrices(), RhoKinHyperonVtxFitter::SetMatrices(), RhoKinVtxFitter::SetOutput(), RhoKinFitter::SetOutput(), SetOutput(), RhoKinHyperonVtxFitter::SetOutput(), RhoKinHyperonVtxFitter::TransportToPoca(), RhoKinVtxFitter::TransportToVertex(), and RhoKinHyperonVtxFitter::TransportToVertex().
double RhoKinHyperonFitter::fEc |
|
private |
Definition at line 62 of file RhoFitterBase.h.
Referenced by Rho4CFitter::Fit(), RhoKinFitter::Fit(), Fit(), RhoFitterBase::Fit(), RhoFitterBase::FitAll(), Rho4CFitter::FitConserveMasses(), RhoFitterBase::HeadOfTree(), ReadMatrix(), RhoFitterBase::RhoFitterBase(), RhoKalmanVtxFitter::RhoKalmanVtxFitter(), SetMatrices(), RhoKinFitter::SetOutput(), and SetOutput().
TLorentzVector RhoKinHyperonFitter::flmm |
|
private |
double RhoKinHyperonFitter::fMass |
|
private |
int RhoKinHyperonFitter::fMassConstraint |
|
private |
TVector3 RhoKinHyperonFitter::fmm |
|
private |
double RhoKinHyperonFitter::fMom |
|
private |
int RhoKinHyperonFitter::fMomConstraint |
|
private |
Int_t RhoKinHyperonFitter::fNc |
|
private |
Int_t RhoKinHyperonFitter::fNcon |
|
private |
int RhoFitterBase::fNDegreesOfFreedom |
|
protectedinherited |
Int_t RhoKinHyperonFitter::fNiter |
|
private |
Int_t RhoKinHyperonFitter::fNpar |
|
private |
Int_t RhoKinHyperonFitter::fNumCon |
|
private |
Int_t RhoKinHyperonFitter::fNunKnown |
|
private |
Int_t RhoKinHyperonFitter::fNvar |
|
private |
double RhoKinHyperonFitter::fPull |
|
private |
int RhoKinHyperonFitter::fTotEConstraint |
|
private |
int RhoKinHyperonFitter::fTotMomConstraint |
|
private |
Bool_t RhoFitterBase::fVerbose |
|
protectedinherited |
The documentation for this class was generated from the following files: