Skip to content

Commit

Permalink
Add a warning to change both VVIObjF constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Apr 14, 2022
1 parent dda1383 commit 4fb03c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RecoLocalTracker/SiPixelRecHits/src/VVIObjF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ namespace VVIObjFDetails {
//! \param mode - (input) set to 0 to calculate the density function and to 1 to calculate the distribution function
// ***************************************************************************************************************************************

// WARNING: if you change this, dont forget to change VVIObjF::VVIObjF(float kappa) too
VVIObjF::VVIObjF(float kappa, float beta2, int mode) : mode_(mode) {
const float xp[9] = {9.29, 2.47, .89, .36, .15, .07, .03, .02, 0.0};
const float xq[7] = {.012, .03, .08, .26, .87, 3.83, 11.0};
Expand Down Expand Up @@ -139,6 +140,7 @@ VVIObjF::VVIObjF(float kappa, float beta2, int mode) : mode_(mode) {
//! \param kappa - (input) Vavilov kappa parameter [0.01 (Landau-like) < kappa < 10. (Gaussian-like)]
// ***************************************************************************************************************************************

// WARNING: if you change this, dont forget to change the full constructor too
VVIObjF::VVIObjF(float kappa) : mode_(1) {
const float xp[9] = {9.29, 2.47, .89, .36, .15, .07, .03, .02, 0.0};
const float xq[7] = {.012, .03, .08, .26, .87, 3.83, 11.0};
Expand Down

0 comments on commit 4fb03c3

Please sign in to comment.