|
[Rivet] Exclude the charged leptons from the charged particle selectionDeepak Kar deepak.kar at cern.chWed Feb 14 20:42:51 GMT 2018
Hi Shayma, May be I am being naive here, but would not that depend on the process you are generating? I mean if you for example generate dileptonic ttbar events at leading order, may be you dont have enough pions? Cheers, Deepak On Wed, Feb 14, 2018 at 9:26 PM, Shayma Wahdan <shayma.wahdan at cern.ch> wrote: > Dear Rivet community, > > I am trying to exclude the charged leptons from the charged particle > selection > what I do exactly: > > in the int part I add: > > ChargedFinalState cfs(-2.5, 2.5, 1.0*GeV); > addProjection(cfs, "CFS"); > > // to exclude the charged leptons > > VetoedFinalState vfs(cfs); > vfs.addVetoPairId(PID::ELECTRON); > vfs.addVetoPairId(PID::MUON); > vfs.addVetoPairId(PID::TAU); > addProjection(vfs,"VFS"); > > > and in the analyze > > const ChargedFinalState& ChargedParticleCollection = applyProjection<VetoedFinalState>(event, > "VFS"); > > The compliling goes well, while in the running almost none of the events > get selected. > > Any suggestions please?? > > Note: I got the idea from this Rivet analysis page > http://rivet.hepforge.org/code/2.2.1/a00496_source.html > > Best Regards, > Shayma' > > > > > > (function(){(function(el) { function removeFromDom(alert) { if > (alert.parentNode) if (alert.childNodes.length > 1) { for (var f = document.createDocumentFragment(); > alert.childNodes.length > 0; ) f.appendChild(alert.childNodes[0]); > alert.parentNode.replaceChild(f, alert); } else alert.firstChild ? > alert.parentNode.replaceChild(alert.firstChild, alert) : > alert.parentNode.removeChild(alert); } function clean(_el) { if (_el) try > { for (var alerts = _el.querySelectorAll(".gr_"), len = alerts.length, i = > 0; i < len; i++) removeFromDom(alerts[i]); } catch (e) {} } function > redefineInnerHTML(el) { try { Object.defineProperty(el, "innerHTML", { get: > function() { try { var r = el.ownerDocument.createRange(); > r.selectNodeContents(el); var cnt = r.cloneContents(), d = > document.createElement("div"); return d.appendChild(cnt), clean(d), > d.innerHTML; } catch (e) { return ""; } }, set: function(value) { try { var > r = el.ownerDocument.createRange(); r.selectNodeContents(el), > r.deleteContents(); var df = r.createContextualFragment(value); > el.appendChild(df); } catch (e) {} } }); } catch (e) {} } if (el) { var > nativeClone = el.cloneNode; el.cloneNode = function(val) { var n = > nativeClone.call(el, val); if (el.classList.contains("mceContentBody")) > n.innerHTML = el.innerHTML, clean(n); else try { redefineInnerHTML(n); } > catch (e) {} return n; }, redefineInnerHTML(el); } > })(document.querySelector("[data-gramm_id='d0a779df-0022-acfa-f632-b9909d937b5b']")) > })() > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > https://www.hepforge.org/lists/listinfo/rivet > > -- > Deepak Kar > University of Witwatersrand > Room PM15, School of Physics > (0027) 011-7176958 (office) (0027) 0736944181 (mobile) > > While at CERN: > Building 1, R-016 > (0041) 0767321349 (mobile) > > While at USA: > (001) 330-998-1500 (mobile) > <https://www.hepforge.org/lists/listinfo/rivet> -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20180214/991ef392/attachment.html>
More information about the Rivet mailing list |