Problem 1455 - charge of track lost in SurfTrajState constructor
Summary: charge of track lost in SurfTrajState constructor
Status: RESOLVED FIXED
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: errorpropagation (show other problems)
Version: 9.6
Hardware: All All
: P5 major
Assignee: Pedro.Arce
URL:
Depends on:
Blocks:
 
Reported: 2013-03-07 22:28 CET by janstar1122
Modified: 2013-04-05 14:41 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description janstar1122 2013-03-07 22:28:16 CET
This constructor is missing call to
  BuildCharge();
and fCharge is left at 0.0 no matter what is the true charge of the particle.
The consequence is incorrect computation of transfM by BuildErrorMatrix( ...)

One should inspect other constructors of this class as well

Jan

---------
G4ErrorSurfaceTrajState::
G4ErrorSurfaceTrajState( G4ErrorFreeTrajState& tpSC, const G4Vector3D& vecU,
                         const G4Vector3D& vecV )
  : G4ErrorTrajState( tpSC.GetParticleType(), tpSC.GetPosition(),
                      tpSC.GetMomentum() )
{
  fTrajParam = G4ErrorSurfaceTrajParam( fPosition, fMomentum, vecU, vecV );
  theTSType = G4eTS_OS;
  //----- Get the error matrix in SC coordinates
  BuildErrorMatrix( tpSC, vecU, vecV );
}