21 using namespace DecayTreeFitter;
27 :
InternalParticle(cand,0,config), m_ipPosCov(3), m_ipPosCovInv(3), m_ipMomCov(4), m_ipMomCovInv(4), m_hasposcon(false), m_hasmomcon(false)
29 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: start"<<std::endl;
37 std::cout <<
"InteractionPoint: without initial beam spot" <<std::endl ;
38 std::cout <<
"daughter: " <<
daughters().front()->name() << std::endl ;
43 :
InternalParticle(cand,0,config), m_ipPosCov(3), m_ipPosCovInv(3), m_ipMomCov(4), m_ipMomCovInv(4), m_hasposcon(true), m_hasmomcon(false)
45 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: start"<<std::endl;
52 for(
int ii=0;ii<3;ii++)
for(
int jj=0;
jj<3;
jj++){
60 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: inverting matrix"<<std::endl;
65 std::cout <<
"InteractionPoint: initial beam spot = ("
70 std::cout <<
"daughter: " <<
daughters().front()->name() << std::endl ;
75 :
InternalParticle(cand,0,config), m_ipPosCov(3), m_ipPosCovInv(3), m_ipMomCov(4), m_ipMomCovInv(4), m_hasposcon(false), m_hasmomcon(true)
77 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: start"<<std::endl;
85 for(
int ii=0;ii<4;ii++)
for(
int jj=0;
jj<4;
jj++){
94 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: inverting matrix"<<std::endl;
103 if(
vtxverbose>=3) std::cout <<
"InteractionPoint: Found a vertex in RhoCandidate"<<std::endl;
108 for(
int ii=0;ii<3;ii++)
for(
int jj=0;
jj<3;
jj++){
116 std::cout <<
"InteractionPoint: initial mom = (" <<
m_ipMom(0) <<
"," <<
m_ipMom(1) <<
"," <<
m_ipMom(2)<<
"," <<
m_ipMom(3) <<
")" <<std::endl ;
120 std::cout <<
"daughter: " <<
daughters().front()->name() << std::endl ;
125 :
InternalParticle(cand,0,config), m_ipPosCov(3), m_ipPosCovInv(3), m_ipMomCov(4), m_ipMomCovInv(4), m_hasposcon(true), m_hasmomcon(true)
127 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: start"<<std::endl;
134 for(
int ii=0;ii<3;ii++)
for(
int jj=0;
jj<3;
jj++){
142 for(
int ii=0;ii<4;ii++)
for(
int jj=0;
jj<4;
jj++){
150 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: inverting matrix"<<std::endl;
158 if(
vtxverbose>=2) std::cout <<
"InteractionPoint: inverting matrix"<<std::endl;
163 std::cout <<
"InteractionPoint: initial beam spot = ("
170 std::cout <<
"daughter: " <<
daughters().front()->name() << std::endl ;
178 if(
vtxverbose>5){std::cout<<
"InteractionPoint::initPar1: - start"<<std::endl;}
181 int posindex = posIndex() ;
185 fitparams->
par()(posindex+
row) = m_ipPos(
row) ;
197 int posindex = posIndex();
203 fitpar->
cov()(posindex+
row,posindex+
col) = m_ipPosCov(row,
col) ;
214 int posindex = posIndex() ;
215 if(
vtxverbose>6){std::cout<<
"InteractionPoint::projectIPConstraint(): posindex="<<posindex<<std::endl;}
226 std::cout<<
"InteractionPoint::projectIPConstraint(): projection is:"<<posindex<<std::endl;
227 std::cout<<
"r "; p.
r().Print();
228 std::cout<<
"V "; p.
V().Print();
238 int momindex = momIndex() ;
239 if(
vtxverbose>6){std::cout<<
"InteractionPoint::projectIPConstraint(): daumomindex="<<momindex<<std::endl;}
250 std::cout<<
"InteractionPoint::projectBeamConstraint(): projection is:"<<momindex<<std::endl;
251 std::cout<<
"r "; p.
r().Print();
252 std::cout<<
"V "; p.
V().Print();
266 status |= projectIPConstraint(fitparams,p) ;
269 status |= projectBeamConstraint(fitparams,p) ;
280 std::cout<<
" Marke 2" <<std::endl;
288 if(m_hasmomcon&&m_hasmomcov)
291 projectBeamConstraint(fitparams,pMom) ;
292 chisq+=pMom.chiSquare();
virtual ErrCode initPar1(FitParams *)
const RhoError & CovMatrix() const
std::vector< DecayTreeFitter::Constraint > constraintlist
const TVectorD & r() const
RhoCandidate * particle() const
virtual ErrCode projectConstraint(Constraint::Type type, const FitParams *fitparams, Projection &p) const
TMatrixDSym m_ipMomCovInv
virtual ErrCode initCov(FitParams *) const
TMatrixDSym m_ipPosCovInv
const TMatrixD & H() const
virtual ErrCode initPar1(FitParams *)
const TMatrixDSym & V() const
ErrCode projectIPConstraint(const FitParams *fitpar, Projection &) const
virtual double chiSquare(const FitParams *par) const
virtual ErrCode initCov(FitParams *) const
InteractionPoint(RhoCandidate *daughter, const Configuration &config)
virtual void addToConstraintList(constraintlist &alist, int depth) const
RhoVector3Err PosWCov() const
virtual ErrCode projectConstraint(Constraint::Type, const FitParams *, Projection &) const
const daucontainer & daughters() const
const RhoError & CovMatrix() const
virtual void addToConstraintList(constraintlist &alist, int depth) const
ErrCode projectBeamConstraint(const FitParams *fitpar, Projection &) const
double & Vfast(int row, int col)