Skip to content

Commit

Permalink
Displaced tracking phi fix (cms-sw#147)
Browse files Browse the repository at this point in the history
* usephiapprox on modify NtupleMaker cfg for grid jobs

* added displaced terms to phi calculation in TrackletCalculatorDisplaced

* reverting changes unrelated to phi correction
  • Loading branch information
ryanm124 authored and tomalin committed May 31, 2022
1 parent a3aa76b commit db3785a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -591,8 +591,8 @@ bool TrackletCalculatorDisplaced::LLLSeeding(const Stub* innerFPGAStub,
return false;
}

double phicritapprox = phi0approx - asin(0.5 * settings_.rcrit() * rinvapprox);
int phicrit = iphi0 - 2 * irinv;
double phicritapprox = phi0approx - asin((0.5 * settings_.rcrit() * rinvapprox) + (d0approx / settings_.rcrit()));
int phicrit = iphi0 - 2 * irinv - 2 * id0;

int iphicritmincut = settings_.phicritminmc() / globals_->ITC_L1L2()->phi0_final.K();
int iphicritmaxcut = settings_.phicritmaxmc() / globals_->ITC_L1L2()->phi0_final.K();
Expand Down Expand Up @@ -1006,8 +1006,8 @@ bool TrackletCalculatorDisplaced::DDLSeeding(const Stub* innerFPGAStub,
if (!success)
return false;

double phicritapprox = phi0approx - asin(0.5 * settings_.rcrit() * rinvapprox);
int phicrit = iphi0 - 2 * irinv;
double phicritapprox = phi0approx - asin((0.5 * settings_.rcrit() * rinvapprox) + (d0approx / settings_.rcrit()));
int phicrit = iphi0 - 2 * irinv - 2 * id0;

int iphicritmincut = settings_.phicritminmc() / globals_->ITC_L1L2()->phi0_final.K();
int iphicritmaxcut = settings_.phicritmaxmc() / globals_->ITC_L1L2()->phi0_final.K();
Expand Down Expand Up @@ -1401,9 +1401,9 @@ bool TrackletCalculatorDisplaced::LLDSeeding(const Stub* innerFPGAStub,

if (!success)
return false;

double phicritapprox = phi0approx - asin(0.5 * settings_.rcrit() * rinvapprox);
int phicrit = iphi0 - 2 * irinv;
double phicritapprox = phi0approx - asin((0.5 * settings_.rcrit() * rinvapprox) + (d0approx / settings_.rcrit()));
int phicrit = iphi0 - 2 * irinv - 2 * id0;

int iphicritmincut = settings_.phicritminmc() / globals_->ITC_L1L2()->phi0_final.K();
int iphicritmaxcut = settings_.phicritmaxmc() / globals_->ITC_L1L2()->phi0_final.K();
Expand Down

0 comments on commit db3785a

Please sign in to comment.