Skip to content

Commit

Permalink
Call the proper TF1 constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed May 9, 2017
1 parent c74b9dd commit 5a14836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RecoVertex/BeamSpotProducer/src/PVFitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ bool PVFitter::runFitter() {

//Use our own copy for thread safety
// also do not add to global list of functions
TF1 gausx("localGausX","gaus",false);
TF1 gausy("localGausY","gaus",false);
TF1 gausz("localGausZ","gaus",false);
TF1 gausx("localGausX","gaus",0.,1.,TF1::EAddToList::kNo);
TF1 gausy("localGausY","gaus",0.,1.,TF1::EAddToList::kNo);
TF1 gausz("localGausZ","gaus",0.,1.,TF1::EAddToList::kNo);

h1PVx->Fit(&gausx,"QLMN0");
h1PVy->Fit(&gausy,"QLMN0");
Expand Down

0 comments on commit 5a14836

Please sign in to comment.