Skip to content

Commit

Permalink
add default argument values to avoid breaking all of L1 trigger suite
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhildreth committed Aug 4, 2019
1 parent 73e793c commit 7daa87e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions DataFormats/L1TrackTrigger/interface/TTTrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class TTTrack : public TTTrack_TrackWord {

/// Track momentum
GlobalVector momentum() const;
GlobalVector getMomentum(unsigned int npar) const;
GlobalVector getMomentum(unsigned int npar = 4) const;

/// Track curvature
double rInv() const;
double getRInv(unsigned int npar) const;
double getRInv(unsigned int npar = 4) const;

/// Track phi
double phi() const;
Expand All @@ -94,7 +94,7 @@ class TTTrack : public TTTrack_TrackWord {

/// POCA
GlobalPoint POCA() const;
GlobalPoint getPOCA(unsigned int npar) const;
GlobalPoint getPOCA(unsigned int npar = 4) const;

/// Phi Sector
unsigned int PhiSector() const { return thePhiSector; }
Expand All @@ -108,11 +108,11 @@ class TTTrack : public TTTrack_TrackWord {
/// Chi2
double chi2() const;
double chi2Red() const;
double getChi2(unsigned int npar) const;
double getChi2Red(unsigned int npar) const;
double getChi2(unsigned int npar = 4) const;
double getChi2Red(unsigned int npar = 4) const;

/// Stub Pt consistency
double StubPtConsistency() const;
double getStubPtConsistency(unsigned int npar = 4) const;
void setStubPtConsistency(double aPtConsistency);

void setFitParNo(unsigned int aFitParNo);
Expand Down Expand Up @@ -321,7 +321,7 @@ void TTTrack<T>::setStubPtConsistency(double aStubPtConsistency) {

/// StubPtConsistency
template <typename T>
double TTTrack<T>::StubPtConsistency() const {
double TTTrack<T>::getStubPtConsistency(unsigned int npar) const {
if (NumFitPars == 5 || NumFitPars == 4) {
return theStubPtConsistency;
} else
Expand Down

0 comments on commit 7daa87e

Please sign in to comment.