[Rivet] "Minus" operation ov ParticleVectors

Andy Buckley andy.buckley at durham.ac.uk
Wed Aug 12 15:45:26 BST 2009


Holger Schulz wrote:
> Hi,
> 
> I have two ParticleVectors, one coming from a finalstate projection,
> the other one coming from a charged leptons projection.
> What I am interested in is all the finalstate particles except
> those in the leptons vector. Is there already a method
> in Rivet that does such a subtraction?

I believe that there was something added to the final state projections, 
maybe VetoedFinalState to do this: VFS is the first place I would look.

If that fails, then the STL 'find' and 'remove_if' algorithms might be 
useful. Boost also contains some more powerful/friendly algorithms for 
this sort of thing, and I'm happy to use more Boost routines in Rivet 
code if it solves a problem neatly (and doesn't introduce a compiled 
library dependence, which is the case for almost all of Boost)

Andy


More information about the Rivet mailing list