<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0" data-gramm_id="d0a779df-0022-acfa-f632-b9909d937b5b" data-gramm="true" spellcheck="false" data-gramm_editor="true" contenteditable="true">
<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::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<VetoedFinalState>(event, "VFS");</font><br>
<br>
The <g class="gr_ gr_16 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" id="16" data-gr-id="16">
compliling</g> goes well, while in the running almost none of the events get selected.<br>
<br>
Any suggestions <g class="gr_ gr_17 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="17" data-gr-id="17">
please</g>??<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/code/2.2.1/a00496_source.html</a><br>
<br>
Best Regards,<br>
Shayma'<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
<MailScannerScript26600 script>(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']")) })()</MailScannerScript26600>
</body>
</html>