1 #ifndef __StarKinematics_h__
2 #define __StarKinematics_h__
69 #include "StarGenerator/BASE/StarGenerator.h"
70 #include "StarGenerator/EVENT/StarGenEvent.h"
104 void Kine( Int_t ntrack,
const Char_t *type=
"pi+,pi-,K+,K-,proton,antiproton", Double_t ptlow=0.0, Double_t pthigh=500.0,
105 Double_t ylow=-10.0, Double_t yhigh=+10.0,
106 Double_t philow=0.0, Double_t phihigh=TMath::TwoPi() );
115 void Dist( Int_t ntrack,
const Char_t *type, TF1 *pt, TF1 *y, TF1 *phi=0 );
123 void Dist( Int_t ntrack,
const Char_t *type, TH1 *pt, TH1 *y, TH1 *phi=0 );
134 void Cosmic(
int ntrack,
const char* type=
"mu+",
double plow=3.0,
double phigh=10.0,
double radius=300.0,
double zmin=-3.0,
double zmax=+3.0,
double dtheta=15.0 );
142 void Clear(
const Option_t *opts=
"" ){ };
StarGenParticle * AddParticle()
Int_t PreGenerate()
Developers may provide a pre-generate method which will execute before Generate().
Star Simple Kinematics Generator.
Yet another particle class.
Int_t PostGenerate()
Developers may provide a post-generate method which will execute after Generate().
ABC for defining event generator interfaces.
void Dist(Int_t ntrack, const Char_t *type, TF1 *pt, TF1 *y, TF1 *phi=0)
Int_t Init()
Initialize generator.
Int_t Generate()
Generate event.
Base class for event records.
void Cosmic(int ntrack, const char *type="mu+", double plow=3.0, double phigh=10.0, double radius=300.0, double zmin=-3.0, double zmax=+3.0, double dtheta=15.0)
void Kine(Int_t ntrack, const Char_t *type="pi+,pi-,K+,K-,proton,antiproton", Double_t ptlow=0.0, Double_t pthigh=500.0, Double_t ylow=-10.0, Double_t yhigh=+10.0, Double_t philow=0.0, Double_t phihigh=TMath::TwoPi())