Skip to content

Commit

Permalink
Fix clang errors (cms-sw#14)
Browse files Browse the repository at this point in the history
* fixed clang error

* directory for MC txt files
  • Loading branch information
tomalin authored May 13, 2020
1 parent 1abdff8 commit de9b0a8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 23 deletions.
1 change: 1 addition & 0 deletions L1Trigger/TrackFindingTMTT/data/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a symbolic link from here to the MCsamples/ directory that can be found in https://github.com/cms-data/L1Trigger-TrackFindingTMTT , where .txt files listing available MC samples can be found.
4 changes: 2 additions & 2 deletions L1Trigger/TrackFindingTMTT/interface/Stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ namespace tmtt {
float sigmaZ() const { return (barrel() ? sigmaPar() : 0.); }
// Hit resolution perpendicular to strip. Measures phi.
float sigmaPerp() const {
constexpr float f = sqrt(1. / 12);
static const float f = sqrt(1. / 12);
return f * stripPitch_;
}
// Hit resolution parallel to strip. Measures r or z.
float sigmaPar() const {
constexpr float f = sqrt(1. / 12.);
static const float f = sqrt(1. / 12.);
return f * stripLength_;
}

Expand Down
4 changes: 2 additions & 2 deletions L1Trigger/TrackFindingTMTT/interface/TrackerModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ namespace tmtt {
float stripLength() const { return stripLength_; }
// Hit resolution perpendicular to strip (or to longest pixel axis). Measures phi.
float sigmaPerp() const {
constexpr float f = sqrt(1. / 12.);
static const float f = sqrt(1. / 12.);
return f * stripPitch_;
}
// Hit resolution parallel to strip (or to longest pixel axis). Measures r or z.
float sigmaPar() const {
constexpr float f = sqrt(1. / 12.);
static const float f = sqrt(1. / 12.);
return f * stripLength_;
}
// Sensor pitch over separation.
Expand Down
31 changes: 12 additions & 19 deletions L1Trigger/TrackFindingTMTT/src/KFParamsComb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,20 @@ namespace tmtt {
// Assumed track seed (from HT) uncertainty in transverse impact parameter.

// Constants optimised by hand for TMTT algo.
const float inv2Rsigma2 = pow(0.0314 * invPtToInv2R, 2);
constexpr float phi0sigma2 = pow(0.0102, 2);
constexpr float z0sigma2 = pow(5.0, 2);
constexpr float tanLsigma2 = pow(0.5, 2);
constexpr float d0Sigma2 = pow(1.0, 2);
matC[INV2R][INV2R] = inv2Rsigma2;
matC[PHI0][PHI0] = phi0sigma2;
matC[Z0][Z0] = z0sigma2;
matC[T][T] = tanLsigma2;
const float inv2Rsigma = 0.0314 * invPtToInv2R;
constexpr float phi0sigma = 0.0102;
constexpr float z0sigma = 5.0;
constexpr float tanLsigma = 0.5;
constexpr float d0Sigma = 1.0;
// (z0, tanL, d0) uncertainties could be smaller for Hybrid, if seeded in PS? -- To check!
// if (L1track3D.seedPS() > 0) z0sigma /= 4; ???
matC[INV2R][INV2R] = pow(inv2Rsigma, 2);
matC[PHI0][PHI0] = pow(phi0sigma, 2);
matC[Z0][Z0] = pow(z0sigma, 2);
matC[T][T] = pow(tanLsigma, 2);
if (nPar_ == 5) {
matC[D0][D0] = d0Sigma2;
matC[D0][D0] = pow(d0Sigma, 2);
}

//if (settings_->hybrid()) {
// N.B. (z0, tanL, d0) seed uncertainties could be smaller for hybrid, if seeded in PS? -- not tried
//if (l1track3D.seedPS() > 0) { // Tracklet seed used PS layers
// matC[Z0][Z0] /= (4.*4.).;
// matC[T][T] /= (4.*4.);
// }
//}

return matC;
}

Expand Down

0 comments on commit de9b0a8

Please sign in to comment.