Skip to content

PackedCandidate::dzError should be dszError #45598

Open
@slava77

Description

@slava77

In TrackBase.h

  inline double TrackBase::dzError() const { return error(i_dsz) * sqrt(p2() / pt2()); }

In PackedCandidate.h

float dzError() const override {
      maybeUnpackCovariance();
      return sqrt((*m_.load())(4, 4));

and that's saved directly from track as

  packedCovariance_.dzdz = packCovarianceElement(m, 4, 4);

@arizzi @cms-sw/tracking-pog-l2 @jordan-martins

We can just simply rename PackedCandidate::dzError to dszError. This will be more visible to users (the old code will not compile). Simply changing the implementation of PackedCandidate::dzError can become confusing.

TBD.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions