<div dir="ltr">Hi Shayma,<div><br></div><div>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?</div><div><br></div><div>Cheers,</div><div>Deepak</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 14, 2018 at 9:26 PM, Shayma Wahdan <span dir="ltr"><<a href="mailto:shayma.wahdan@cern.ch" target="_blank">shayma.wahdan@cern.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Dear Rivet community,<br>
<br>
I am trying to exclude the charged leptons from the charged particle selection<br>
what I do exactly:<br>
<br>
in the <font color="FF0000">int</font> part I add: <br>
 <br>
     <font color="3366FF"> ChargedFinalState cfs(-2.5, 2.5, 1.0*GeV); <br>
      addProjection(cfs, "CFS");<br>
<br>
    // to exclude the charged leptons<br>
     <br>
     VetoedFinalState vfs(cfs);<br>
      vfs.addVetoPairId(PID::<wbr>ELECTRON);<br>
      vfs.addVetoPairId(PID::MUON);<br>
      vfs.addVetoPairId(PID::TAU);<br>
      addProjection(vfs,"VFS");</font><br>
<br>
<br>
<font color="3366FF"> <font color="000000">and in the</font> <font color="FF0000">
analyze</font></font><br>
<br>
    <font color="3366FF"> const ChargedFinalState& ChargedParticleCollection = applyProjection<<wbr>VetoedFinalState>(event, "VFS");</font><br>
<br>
The <u></u>
compliling<u></u> goes well, while in the running almost none of the events get selected.<br>
<br>
Any suggestions <u></u>
please<u></u>??<br>
<br>
Note: I got the idea from this Rivet analysis page <a href="http://rivet.hepforge.org/code/2.2.1/a00496_source.html" target="_blank">
http://rivet.hepforge.org/<wbr>code/2.2.1/a00496_source.html</a><br>
<br>
Best Regards,<br>
Shayma'<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
<u></u>(function(){(function(el) {
        function removeFromDom(alert) {
            if (alert.parentNode) if (alert.childNodes.length > 1) {
                for (var f = document.<wbr>createDocumentFragment(); alert.childNodes.length > 0; ) f.appendChild(alert.<wbr>childNodes[0]);
                alert.parentNode.replaceChild(<wbr>f, alert);
            } else alert.firstChild ? alert.parentNode.replaceChild(<wbr>alert.firstChild, alert) : alert.parentNode.removeChild(<wbr>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()<wbr>;
                            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()<wbr>;
                            r.selectNodeContents(el), r.deleteContents();
                            var df = r.createContextualFragment(<wbr>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("<wbr>mceContentBody")) n.innerHTML = el.innerHTML, clean(n); else try {
                    redefineInnerHTML(n);
                } catch (e) {}
                return n;
            }, redefineInnerHTML(el);
        }
    })(document.querySelector("[<wbr>data-gramm_id='d0a779df-0022-<wbr>acfa-f632-b9909d937b5b']")) })()<u></u>
</div>

<br>______________________________<wbr>_________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/<wbr>lists/listinfo/rivet<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Deepak Kar<br>University of Witwatersrand<br>Room PM15, School of Physics<br>(0027) 011-7176958 (office) (0027) 0736944181 (mobile)<br><br>While at CERN:<br>Building 1, R-016<br>(0041) 0767321349 (mobile)<br><br>While at USA:<br>(001) 330-998-1500 (mobile)</div>
</a></blockquote></div>
</div>