Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused variables from RecoVertex/BeamSpotProducer #40800

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions RecoVertex/BeamSpotProducer/test/BeamFit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ void fitAll() {
fit(xmat, Verr); // get initial values
fnthite++;

Double_t chi2cut = 20;
//Double_t chi2cut = 20;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only commented out instead of deleted since a few lines below there is commented out code which uses that variable.


int fminNtrks = 100;
double fconvergence = 0.9;
Expand All @@ -405,7 +405,7 @@ void fitAll() {

fit(xmat, Verr);
fd0cut /= 1.5;
chi2cut /= 1.5;
//chi2cut /= 1.5;
if (tmpNtrks_ > fconvergence * zdata.size() && tmpNtrks_ > fminNtrks)
fnthite++;
}
Expand Down
4 changes: 1 addition & 3 deletions RecoVertex/BeamSpotProducer/test/NtupleHelper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ zData NtupleHelper::Loop(int maxEvents) {

std::cout << " total number of entries: " << fChain->GetEntries() << std::endl;

Int_t nbytes = 0, nb = 0;
int theevent = 0;
for (Long64_t jentry = 0; jentry < nentries; jentry++) {
Long64_t ientry = LoadTree(jentry);
if (ientry < 0)
break;
nb = fChain->GetEntry(jentry);
nbytes += nb;
fChain->GetEntry(jentry);
// if (sigmaD <0.05&&pt>4.0)
// {

Expand Down