fID(-1),
fType(kUndef),
fCovMatrix(NULL),
- fParent(0x0),
+ fParent(),
fDaughters()
{
// default constructor
fID(-1),
fType(vtype),
fCovMatrix(NULL),
- fParent(0x0),
+ fParent(),
fDaughters()
{
// constructor without covariance matrix
fID(-1),
fType(vtype),
fCovMatrix(NULL),
- fParent(0x0),
+ fParent(),
fDaughters()
{
// constructor without covariance matrix
// rotation angles around z-axis (phi) and around new y-axis (theta)
// with which vtx is seen (used by RotatedCovMatrix... methods)
- phi = TMath::ATan2(vtx->GetY()-GetY(),vtx->GetX()-GetX());
+ phi = TMath::Pi()+TMath::ATan2(-vtx->GetY()+GetY(),-vtx->GetX()+GetX());
Double_t vtxxphi = vtx->GetX()*TMath::Cos(phi)+vtx->GetY()*TMath::Sin(phi);
Double_t xphi = GetX()*TMath::Cos(phi)+GetY()*TMath::Sin(phi);
theta = TMath::ATan2(vtx->GetZ()-GetZ(),vtxxphi-xphi);