<div dir="ltr">Hi Andy,<div>Thanks, this is perfect. I think just having this option will also help analysis writers to see that this cut doesn't come in by default, which many of us thought was the case!</div><div>Regards,</div><div>Kevin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 9:40 PM, 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">Good! I've done it on the Rivet trunk: you can now say things like<br>
<br>
myjet.bTags(Cuts::pT > 5*GeV && Cuts::etaIn(2.5));<br>
<br>
and<br>
<br>
myjet.bTagged(Cuts::pT > 5*GeV);<br>
<br>
Hope this helps... when we get a new major version out. We're trying to speed up the release procedure so it might not be too long. Let's see ;-)<br>
<br>
Andy<span class=""><br>
<br>
<br>
<br>
On 29/07/15 12:07, Christian Gutschow wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi Andy, all,<br>
<br>
yes, please!<br>
+1 for being able to use Cuts as an argument to bTags().<br>
That's a much neater way of doing it..<br>
<br>
Cheers,<br>
Chris<br>
<br>
On 29 July 2015 at 12:54, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a><br></span><div><div class="h5">
<mailto:<a href="mailto:andy.buckley@cern.ch" target="_blank">andy.buckley@cern.ch</a>>> wrote:<br>
<br>
Hi Kevin,<br>
<br>
Thanks for the ping -- this had gone off my radar / I thought I had<br>
answered. I've copied this to the Rivet developer list, which is a<br>
more reliable place to ask questions due to more people & more<br>
expertise on the receiving end.<br>
<br>
I'm not quite sure why you are asking: have you noticed a change in<br>
behaviour without the cut across Rivet versions? In general I think<br>
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<br>
really mean you are explicitly making a list of "b" particles with<br>
some kinematic cuts, then deltaR-matching those to the jets? We<br>
could/should allow the user to specify tag-particle cuts when<br>
configuring the FastJets projection, but right now you can do<br>
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<br>
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>
<br>
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><br>
<mailto:<a href="mailto:Alexander.Grohsjean@desy.de" target="_blank">Alexander.Grohsjean@desy.de</a>><br></div></div>
<mailto:<a href="mailto:Alexander.Grohsjean@desy.de" target="_blank">Alexander.Grohsjean@desy.de</a><div><div class="h5"><br>
<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<br>
was a cut<br>
of 5 GeV.<br>
When testing my implementation against the Rivet one using<br>
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<br>
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<br>
cuts on B<br>
hadrons used in truth jet b-tagging within Rivet. In<br>
my own<br>
tests, using 2.2, I have been "manually" applying the<br>
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<br>
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<br>
in Rivet<br>
2.2? In any case it seems that we might want to go<br>
back now and<br>
make this cut explicit in the tt+jets routine.<br>
<br>
Regards,<br>
Kevin<br>
<br>
<br>
<br>
<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></div></div>
<a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a> <mailto:<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>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
-- <br>
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow<br>
</div></div></blockquote></div><br></div>