1 #include "StarFilterMaker.h"
4 #include "g2t/St_g2t_particle_Module.h"
5 #include "tables/St_g2t_event_Table.h"
6 #include "tables/St_g2t_gepart_Table.h"
7 #include "tables/St_g2t_vertex_Table.h"
8 #include "tables/St_g2t_event_Table.h"
10 #include "StarCallf77.h"
12 #include "St_geant_Maker/St_geant_Maker.h"
18 #include "StBFChain.h"
24 #include "StarGenerator/EVENT/StarGenEvent.h"
25 #include "StarGenerator/EVENT/StarGenParticle.h"
26 #include "StarGenerator/BASE/StarPrimaryMaker.h"
27 #include "StarGenerator/UTIL/StarRandom.h"
29 #include "TMCProcess.h"
34 StarFilterMaker::StarFilterMaker(
const Char_t *name ) :
45 Int_t StarFilterMaker::Init()
52 void StarFilterMaker::Clear(
const Option_t *opts )
63 LOG_INFO << Form(
"Number of events seen: %i", NumberofEvents ) << endm;
64 LOG_INFO << Form(
"Number of events accepted: %i", AcceptedEvents ) << endm;
65 LOG_INFO << Form(
"Number of rejected events: %i", RejectedEvents ) << endm;
66 LOG_INFO << Form(
"Rejection power: %8.3g",
double(RejectedEvents)/
double(NumberofEvents) ) << endm;
67 LOG_INFO << Form(
"Acceptance: %8.3g",
double(1.0)-
double(RejectedEvents)/
double(NumberofEvents) ) << endm;
79 UInt_t result = (UInt_t)
Filter( mEvent );
82 mEvent -> SetFilterResult( result );
85 if( result & StarGenEvent::kReject )
91 else if ( result & StarGenEvent::kAccept )
94 RejectedSinceLast = 0;
virtual void Clear(Option_t *option="")
User defined functions.
virtual Int_t Filter(StarGenEvent *event=0)=0
Main filter class. Goes anywhere in the chain, filters StarGenEvent objects.