StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StarKinematics.h
1 #ifndef __StarKinematics_h__
2 #define __StarKinematics_h__
3 
69 #include "StarGenerator/BASE/StarGenerator.h"
70 #include "StarGenerator/EVENT/StarGenEvent.h"
71 
72 #include "TMath.h"
73 #include "TVector3.h"
74 
75 #include "TH1.h"
76 #include "TF1.h"
77 
79 {
80  public:
81  StarKinematics( const Char_t *name="StarKine" );
82  ~StarKinematics(){ /* nada */ };
83 
87 
91  StarGenParticle *AddParticle( const Char_t *type );
92 
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() );
107 
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 );
124 
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 );
135 
136 
138  Int_t Generate();
139  Int_t PreGenerate();
140  Int_t PostGenerate();
141 
142  void Clear( const Option_t *opts="" ){ /* nada */ };
143 
145  Int_t Init(){ return kStOK; }
146 
147  private:
148  protected:
149 
150  // User's event
151  StarGenEvent *mUser;
152 
153  TVector3 _momentum; // Used for internal calculations
154 
155  ClassDef(StarKinematics,1);
156 
157 };
158 
159 #endif
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.
Definition: StarGenerator.h:34
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.
Definition: StarGenEvent.h:81
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)
Definition: Stypes.h:40
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())