Event filter [message #17480] |
Sat, 08 November 2014 18:33 |
donghee
Messages: 385 Registered: January 2009 Location: Germnay
|
first-grade participant |
From: *dip0.t-ipconnect.de
|
|
Hi Martin,
I want to sort pi+pi- data sample from DPM, and you show us the effective way.
I follow in my simulation macro something like this with PANDAroot oct14 release version.
Quote:
PndDpmDirect *Dpm= new PndDpmDirect(mom,0);
primGen->AddGenerator(Dpm);
FairEvtFilterOniSingleParticleCounts* fil= new FairEvtFilterOnSingleParticleCounts("PdgFilter");
fil->AndMinMaxPdgCodes(1,1,211,-211);
primGen->AndFilter(fil);
But I got the error when I am trying to use AndFilter().
Quote:
<I> PndDpmDirect initialization
<I> Momentum = 1.9
<I> Seed = 4.29497e+09
<I> Mode = 0
<I> Theta min = 3.15789
Error: Can't call FairPrimaryGenerator::AndFilter(fil) in current scope /hera/panda/donghee/pandaroot/pandaroot_oct14/macro/softrig/prod_sim_fil ter.C:171:
Possible candidates are...
(in FairPrimaryGenerator)
*** Interpreter error recovered ***
Do you have any idea? Do I need to compile something to let work?
Best wishes,
Donghee
|
|
|