[Rivet] Using a projection "on the fly"

Andy Buckley andy.buckley at ed.ac.uk
Mon Feb 14 13:31:39 GMT 2011


Hendrik Hoeth wrote:
> Hi,
> 
> I'd like to use the Thrust projection with objects I define inside the
> analyze() method, so this whole applyProjection business doesn't quite
> apply here. Good news is: There are calc() methods which I can call
> using a list of momenta. But first I need some kind of Thrust object.
> How do I get there?

Just call the normal constructor, like you would in the init method. You 
can supply a FinalState object by reference via (IIRC) a call to 
getProjection<FinalState>("MyFS").

For a long time I've wanted to make standalone "on the fly" construction 
  and use of projections a standard feature of the Projection interface 
-- i.e. they would all have calc() methods. But, you know, time...

Andy

-- 
Dr Andy Buckley
SUPA Advanced Research Fellow
Particle Physics Experiment Group, University of Edinburgh

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the Rivet mailing list