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
Fix clang warnings in Calibration/IsolatedParticles. #3747
Conversation
A new Pull Request was created by @Degano (Alessandro Degano) for CMSSW_7_1_X. Fix clang warnings in Calibration/IsolatedParticles. It involves the following packages: Calibration/IsolatedParticles @cmsbuild, @Degano, @diguida, @rcastello, @nclopezo can you please review it and eventually sign? Thanks. |
int myverbose_; | ||
bool useJetTrigger_; | ||
double drLeadJetVeto_, ptMinLeadJet_; | ||
int verbosity; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused data members...
/// number of DAQ partitions | ||
unsigned int m_numberDaqPartitions; | ||
/// trigger masks & veto masks | ||
const L1GtTriggerMask* m_l1GtTmAlgo; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused data members...
+1 |
@@ -157,7 +157,7 @@ namespace spr{ | |||
std::vector< typename T::const_iterator> matchedhit; | |||
for (int ihit=0; ihit < hit.size(); ihit++) { | |||
bool keephit = false; | |||
for (int idetid=0; idetid < coneRecHitDetIds.size(); idetid++) { | |||
for (unsigned int idetid=0; idetid < coneRecHitDetIds.size(); idetid++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsigned
vs signed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually be size_t, no? (Agreed if we have more than 4G coneRecHitDetIds we have other problems, but...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the PR with the correct type now. |
+1 |
…_71X Clang -- Fix clang warnings in Calibration/IsolatedParticles.
Dumped unused variables.