Skip to content

Replace delphi calculation with reco::deltaPhi() in L1Track*NtupleMaker #326

@brandiskip

Description

@brandiskip

https://github.com/cms-L1TK/cmssw/blob/L1TK-dev-15_1_0_pre4/L1Trigger/L1TTrackMatch/test/L1TrackObjectNtupleMaker.cc#L2936-L2940

https://github.com/cms-L1TK/cmssw/blob/L1TK-dev-15_1_0_pre4/L1Trigger/TrackFindingTracklet/test/L1TrackNtupleMaker.cc#L1298-L1302

These lines can be replaced with:
delphi = reco::deltaPhi(phi, std::atan2(-Kx0p, Ky0p)

After adding:
#include DataFormats/Math/interface/deltaPhi.h

That way it is automatically in the range -PI to +PI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions