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

Muon VID update for 76X #11323

Merged
merged 15 commits into from
Sep 22, 2015
Merged

Muon VID update for 76X #11323

merged 15 commits into from
Sep 22, 2015

Conversation

jhgoh
Copy link
Contributor

@jhgoh jhgoh commented Sep 17, 2015

Muon VID is updated to be able to modify cut flow in the configuration. The previous implementation was just a wrapper to the C++ selector functions.
There was also a small change in example analyzer to use patMuons as the input muons in VID calculation and CITK isolation.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @jhgoh (Junghwan John Goh) for CMSSW_7_6_X.

Muon VID update for 76X

It involves the following packages:

PhysicsTools/PatExamples
PhysicsTools/SelectorUtils
RecoMuon/MuonIdentification

@cmsbuild, @cvuosalo, @vadler, @monttj, @slava77 can you please review it and eventually sign? Thanks.
@imarches, @pvmulder, @acaudron, @abbiendi, @bellan, @ferencek, @battibass, @trocino, @bachtis, @rociovilar this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

const auto muonTypes = c.getParameter<std::vector<std::string> >("types");
for ( const auto& x : muonTypes )
{
if ( boost::iequals(x, "GlobalMuon") ) type_ |= reco::Muon::GlobalMuon;
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible not to use boost for string comparison to a literal?

@cmsbuild
Copy link
Contributor

Pull request #11323 was updated. @cmsbuild, @cvuosalo, @vadler, @monttj, @slava77 can you please check and sign again.

@jhgoh
Copy link
Contributor Author

jhgoh commented Sep 17, 2015

@slava77, boost::iequals is removed.

@slava77
Copy link
Contributor

slava77 commented Sep 17, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #11323 was updated. @cmsbuild, @cvuosalo, @vadler, @monttj, @slava77 can you please check and sign again.

const auto trackRef = muon->muonBestTrack();
if ( trackRef.isNull() ) return -1;

return trackRef->ptError()/trackRef->pt();
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a danger of dividing by zero here? It seems unlikely that a muon's best track would have pT == 0, but maybe it could happen with corrupted data or some other unusual case. If there's any chance of zero pT, you should protect against division by zero.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Pull request #11323 was updated. @cmsbuild, @cvuosalo, @vadler, @monttj, @slava77 can you please check and sign again.

@cvuosalo
Copy link
Contributor

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

+1

For #11323 3eed957

Updating muon VID to enable modification of configuration cut flow.

The code changes are satisfactory, and Jenkins tests against baseline CMSSW_7_6_X_2015-09-19-1100 show no significant differences. Matrix tests against baseline CMSSW_7_6_0_pre5 also show no significant differences.

CandidateType candidateType() const override final { return MUON; }
double value(const reco::CandidatePtr&) const override final;

void setConsumes(edm::ConsumesCollector&) override final;
Copy link
Contributor

Choose a reason for hiding this comment

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

how does this setConsumes get called?

Copy link
Contributor

Choose a reason for hiding this comment

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

From the VID ID producer.

davidlange6 added a commit that referenced this pull request Sep 22, 2015
@davidlange6 davidlange6 merged commit 6c9506d into cms-sw:CMSSW_7_6_X Sep 22, 2015
@jhgoh jhgoh deleted the MuonVID76X branch September 24, 2015 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants