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

TupleToolMCTruth #157

Open
apiucci opened this issue Nov 28, 2015 · 2 comments
Open

TupleToolMCTruth #157

apiucci opened this issue Nov 28, 2015 · 2 comments

Comments

@apiucci
Copy link

apiucci commented Nov 28, 2015

Add an example of the TupleToolMCTruth in the TupleTools lesson?

@ibab
Copy link
Contributor

ibab commented Nov 28, 2015

Usually, regular TupleTools only work with DecayTreeTuple and MCTupleTools work with MCDecayTreeTuple.
TupleToolMCTruth, when plugged into a DecayTreeTuple, will look for an associated MC particle for each candidate found by the DecayTreeTuple.
It allows you to plug MCTupleTools into it, thus providing you with a way to treat the DecayTreeTuple like an MCDecayTreeTuple.
This should be part of one of the lessons!

@alexpearce
Copy link
Member

In case anyone wants to open a PR for this: use TupleToolMCTruth like this:

mc_truth = dtt.addTupleTool('TupleToolMCTruth')
mc_truth.ToolList = [
    'MCTupleToolPrompt'
]

Where dtt is a DecayTreeTuple instance, and MCTupleToolPrompt is a tuple tool that uses the MC truth particles.

You could also attached the tool to a branch as well, just replacing dtt with dtt.<branch_name>, e.g. dtt.D0.

We should find out exactly what the tool does when a MC association can't be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants