[Halld-offline] pythia event filter

David Lawrence davidl at jlab.org
Mon Mar 22 17:12:32 EDT 2010


Hi Will,

    There are a couple of ways to do this, both of which require editing 
some code.

    The most obvious is to edit bggen itself to prevent undesirable 
events from ever hitting the disk. Alex Somov did this, and he may be 
able to provide code examples.

    The second way is to use the hd_eventfilter program. This is kept in 
sim-recon/src/programs/Analysis/hd_eventfilter. It has extensive 
comments in the MyProcessor.cc file (the file you'd want to edit) to 
make it easier on you. The benefit of this method is you can work with 
DMCThrown objects (C++). The down side is you have to temporarily suffer 
the disk space usage for the intermediate event file which presumably 
has lots of events you don't want.

Regards,
-David

Will Levine wrote:
> Hi,
> I'm looking for a way to filter out all events of a specific final
> states from bggen/pythia output. Curtis said there had been some
> discussion of this, so I was hoping someone could help me out.
>
> Thanks,
> Will
> _______________________________________________
> Halld-offline mailing list
> Halld-offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-offline
>   

-- 

------------------------------------------------------------------------
 David Lawrence Ph.D.
 Staff Scientist                 Office: (757)269-5567   [[[  [   [ [       
 Jefferson Lab                   Pager:  (757)584-5567   [  [ [ [ [ [   
 http://www.jlab.org/~davidl     davidl at jlab.org         [[[  [[ [[ [[[
------------------------------------------------------------------------





More information about the Halld-offline mailing list