8 #include "StFmsPi0Filter.h"
9 #include "StGenParticle.h"
89 mEtaMin=2.8; mEtaMax=4.1; mPtMin=1.0;
90 cout <<
"StFmsPi0Filter::StFmsPi0Filter Setting Default parameters"<<endl;
91 cout <<
"StFmsPi0Filter::StFmsPi0Filter EtaMin="<<mEtaMin<<endl;
92 cout <<
"StFmsPi0Filter::StFmsPi0Filter EtaMax="<<mEtaMax<<endl;
93 cout <<
"StFmsPi0Filter::StFmsPi0Filter PtMin= "<<mPtMin<<endl;
103 for (
int i=0;i<n;i++) {
104 tk = ptl(i);
if (!tk)
continue;
105 if (tk->GetPdgCode()==111 &&
106 tk->Eta() > mEtaMin &&
107 tk->Eta() < mEtaMax &&
112 printf(
"PI0!!! %3d St=%3d Pid=%5d Gid=%3d P=%7.2f %7.2f %7.2f %7.2f pt=%7.2f eta=%7.2f\n",
113 i,tk->GetStatusCode(),tk->GetPdgCode(),tk->GetGeaCode(),
114 p[0],p[1],p[2],p[3],tk->Pt(),tk->Eta()
120 if (ntk==0) {
return 1;}
122 printf(
"Accepted/Total EG=%10d/%10d GT=%10d/%10d GE=%10d/%10d\n",
141 void StFmsPi0Filter::ChangeConfig(
string attr,
float val)
143 if (attr ==
"EtaMin"){
144 cout <<
"StFmsPi0Filter::ChangeConfig() Setting EtaMin to " << val << endl;
146 }
else if (attr ==
"EtaMax"){
147 cout <<
"StFmsPi0Filter::ChangeConfig() Setting EtaMax to " << val << endl;
149 }
else if (attr ==
"PtMin"){
150 cout <<
"StFmsPi0Filter::ChangeConfig() Setting PtMin to " << val << endl;
153 cout <<
"StFmsPi0Filter::ChangeConfig() Unknown parameter " << attr << endl;
static int GetNRejEG()
Number of rejected GE events.
Abstract base class for particles related to common /HEPEVT/.
static int GetNRejGT()
Number of rejected GT events.
int RejectGE(const StGenParticleMaster &ptl) const
Rejection at GEANT End, No GEANT output.
static int GetNTotGE()
Number of total GE events.
static int GetNRejGE()
Number of rejected GE events.
int RejectEG(const StGenParticleMaster &ptl) const
Rejection inside of EventGenerator (Pythia)
static int GetNTotGT()
Number of total GT events.
static int GetNTotEG()
Number of total EG events.
int RejectGT(const StGenParticleMaster &ptl) const
Rejection of GEANT Tracking.