<div dir="ltr">Hi Andy, all,<div><br></div><div>yes, please!</div><div>+1 for being able to use Cuts as an argument to bTags().</div><div>That's a much neater way of doing it..<div><br></div><div>Cheers,</div><div>Chris</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 July 2015 at 12:54, Andy Buckley <span dir="ltr"><<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kevin,<br>
<br>
Thanks for the ping -- this had gone off my radar / I thought I had answered. I've copied this to the Rivet developer list, which is a more reliable place to ask questions due to more people & more expertise on the receiving end.<br>
<br>
I'm not quite sure why you are asking: have you noticed a change in behaviour without the cut across Rivet versions? In general I think making cuts explicit is the right thing to do.<br>
<br>
But I guess when you say that you are doing it manually that you really mean you are explicitly making a list of "b" particles with some kinematic cuts, then deltaR-matching those to the jets? We could/should allow the user to specify tag-particle cuts when configuring the FastJets projection, but right now you can do something like:<br>
<br>
const Jets& myjets = applyProjection<FastJets>(evt, "Jets").jets();<br>
foreach (const Jet& j, jets) {<br>
foreach (const Particle& t, j.bTags()) {<br>
if (t.pT() > 5*GeV) // accept this jet<br>
}<br>
}<br>
<br>
We can make this nicer to use, e.g. I imagine something like this would be helpful:<br>
<br>
foreach (const Jet& j, jets) {<br>
if (j.bTags(Cuts::pT > 5*GeV).size() > 0) // accept this jet<br>
}<br>
<br>
What do you think? It's an easy feature to add.<br>
<br>
Andy<br>
<br>
<br>
On 29/07/15 02:20, Kevin Finelli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Andy,<br>
<br>
Just pinging again to see if you have had the chance to read this.<br>
<br>
Thanks,<br>
Kevin<br>
<br>
On Fri, Jul 24, 2015 at 5:06 PM, Alexander Grohsjean<br>
<<a href="mailto:Alexander.Grohsjean@desy.de" target="_blank">Alexander.Grohsjean@desy.de</a> <mailto:<a href="mailto:Alexander.Grohsjean@desy.de" target="_blank">Alexander.Grohsjean@desy.de</a>>> wrote:<br>
<br>
Hi Andy,<br>
<br>
maybe to clarify. In the original code I provided, there was a cut<br>
of 5 GeV.<br>
When testing my implementation against the Rivet one using 50 k events,<br>
as Kevin wrote, we got exactly the same yoda files out.<br>
That's why it is not clear if this cut was dropped between versions<br>
or if the 50k was not enough statistics to see any difference.<br>
<br>
Cheers, Alexander.<br>
<br>
<br>
<br>
<br>
Am 24.07.2015 um 04:31 schrieb Kevin Finelli:<br>
<br>
Hi Andy,<br>
<br>
We were hoping you could clarify the situation with pT cuts on B<br>
hadrons used in truth jet b-tagging within Rivet. In my own<br>
tests, using 2.2, I have been "manually" applying the standard 5<br>
GeV pT requirement on B hadrons needed for a jet to be<br>
considered b-tagged. This is now in the 7 TeV pseudotop<br>
analysis (ATLAS_2015_I1345452), Chris G. submitted a patch about<br>
a week ago.<br>
<br>
Looking back, I noticed the tt+jets analysis<br>
(ATLAS_2014_I1304688) doesn't make this cut explicitly.<br>
Alexander mentioned that this cut was not needed when the<br>
analysis was tested, as two implementations of the ghost<br>
association gave identical results in 50k events.<br>
<br>
Is it possible there was a cut in FastJets that changed in Rivet<br>
2.2? In any case it seems that we might want to go back now and<br>
make this cut explicit in the tt+jets routine.<br>
<br>
Regards,<br>
Kevin<br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow<br>
_______________________________________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/lists/listinfo/rivet</a><br>
</font></span></blockquote></div><br></div>