EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicBoxGenerator Class Reference

#include <EicRoot/blob/master/eic/base/EicBoxGenerator.h>

+ Inheritance diagram for EicBoxGenerator:
+ Collaboration diagram for EicBoxGenerator:

Public Member Functions

 EicBoxGenerator ()
 
void ResetVars ()
 
 EicBoxGenerator (Int_t pdg, UInt_t mult=1)
 
void AddPDG (int pdg)
 
void SetThetaRange (double min, double max, bool uniform=false)
 
void SetTheta (double theta)
 
void SetPhiRange (double min, double max)
 
void SetPhi (double phi)
 
void SetMomentumRange (double min, double max)
 
void SetMomentum (double momentum)
 
virtual Bool_t ReadEvent (FairPrimaryGenerator *primGen)
 
- Public Member Functions inherited from EicProtoGenerator
 EicProtoGenerator (const char *name)
 
 ~EicProtoGenerator ()
 
void SetNaiveVerticalBeamDivergence (double value)
 
void SetNaiveHorizontalBeamDivergence (double value)
 
void SetNaiveHorizontalBeamRotation (double value)
 
void SetVertex (double x, double y, double z=0.0)
 
double GetVx () const
 
double GetVy () const
 
double GetVz () const
 
void SetVertexSmearing (double sx, double sy, double sz=0.0)
 
void SetVertexRange (double rx, double ry, double rz=0.0)
 
double GetVxSmearing () const
 
double GetVySmearing () const
 
double GetVzSmearing () const
 
TVector3 GetSimulatedPrimaryVertex (void)
 
TVector3 GetModifiedTrack (const TVector3 track)
 
 ClassDef (EicProtoGenerator, 1)
 
- Public Member Functions inherited from FairGenerator
 FairGenerator ()
 
 FairGenerator (const char *name, const char *title="FAIR Generator")
 
virtual ~FairGenerator ()
 
virtual Bool_t Init ()
 
 ClassDef (FairGenerator, 1)
 

Protected Attributes

Double_t mPmin
 
Double_t mPmax
 
Double_t mThetaMin
 
Double_t mThetaMax
 
bool mUniformTheta
 
Double_t mPhiMin
 
Double_t mPhiMax
 
UInt_t mMult
 

Private Member Functions

 ClassDef (EicBoxGenerator, 8)
 

Private Attributes

std::vector< Int_t > mPDGs
 
UInt_t mFlipCounter
 

Additional Inherited Members

- Public Attributes inherited from EicProtoGenerator
double mVerticalBeamDivergence
 
double mHorizontalBeamDivergence
 
double mHorizontalBeamRotation
 
Double_t mCoord [3]
 
Double_t mCoordSigma [3]
 
Double_t mCoordRange [3]
 
Bool_t mGaussianCoordinateSmearing
 

Detailed Description

Definition at line 14 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 14 of file EicBoxGenerator.h

Constructor & Destructor Documentation

EicBoxGenerator::EicBoxGenerator ( )
inline

Definition at line 17 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 17 of file EicBoxGenerator.h

References mMult, and ResetVars().

+ Here is the call graph for this function:

EicBoxGenerator::EicBoxGenerator ( Int_t  pdg,
UInt_t  mult = 1 
)
inline

Definition at line 35 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 35 of file EicBoxGenerator.h

References AddPDG(), and ResetVars().

+ Here is the call graph for this function:

Member Function Documentation

void EicBoxGenerator::AddPDG ( int  pdg)
inline

Definition at line 41 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 41 of file EicBoxGenerator.h

References mPDGs.

Referenced by EicBoxGenerator().

+ Here is the caller graph for this function:

EicBoxGenerator::ClassDef ( EicBoxGenerator  ,
 
)
private
Bool_t EicBoxGenerator::ReadEvent ( FairPrimaryGenerator primGen)
virtual

Abstract method ReadEvent must be implemented by any derived class. It has to handle the generation of input tracks (reading from input file) and the handing of the tracks to the FairPrimaryGenerator. I t is called from FairMCApplication.

Parameters
pStackThe stack
Returns
kTRUE if successful, kFALSE if not

Implements FairGenerator.

Reimplemented in EicAsciiBoxGenerator.

Definition at line 17 of file EicBoxGenerator.cxx.

View newest version in sPHENIX GitHub at line 17 of file EicBoxGenerator.cxx

References FairPrimaryGenerator::AddTrack(), cos(), EicProtoGenerator::GetModifiedTrack(), EicProtoGenerator::GetSimulatedPrimaryVertex(), EicProtoGenerator::mCoord, EicProtoGenerator::mCoordRange, EicProtoGenerator::mCoordSigma, mFlipCounter, EicProtoGenerator::mGaussianCoordinateSmearing, mMult, mPDGs, mPhiMax, mPhiMin, mPmax, mPmin, mThetaMax, mThetaMin, mUniformTheta, phi, printf(), theta(), and vtx().

+ Here is the call graph for this function:

void EicBoxGenerator::ResetVars ( )
inline

Definition at line 19 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 19 of file EicBoxGenerator.h

References mFlipCounter, mPhiMax, mPhiMin, mPmax, mPmin, mThetaMax, and mThetaMin.

Referenced by EicBoxGenerator().

+ Here is the caller graph for this function:

void EicBoxGenerator::SetMomentum ( double  momentum)
inline

Definition at line 71 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 71 of file EicBoxGenerator.h

References momentum, mPmax, and mPmin.

Referenced by simulation().

+ Here is the caller graph for this function:

void EicBoxGenerator::SetMomentumRange ( double  min,
double  max 
)
inline

Definition at line 70 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 70 of file EicBoxGenerator.h

References max, min, mPmax, and mPmin.

Referenced by simulation().

+ Here is the caller graph for this function:

void EicBoxGenerator::SetPhi ( double  phi)
inline

Definition at line 69 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 69 of file EicBoxGenerator.h

References mPhiMax, mPhiMin, and phi.

Referenced by simulation().

+ Here is the caller graph for this function:

void EicBoxGenerator::SetPhiRange ( double  min,
double  max 
)
inline

Definition at line 68 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 68 of file EicBoxGenerator.h

References max, min, mPhiMax, and mPhiMin.

void EicBoxGenerator::SetTheta ( double  theta)
inline

Definition at line 67 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 67 of file EicBoxGenerator.h

References mThetaMax, mThetaMin, and theta().

Referenced by simulation().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void EicBoxGenerator::SetThetaRange ( double  min,
double  max,
bool  uniform = false 
)
inline

Definition at line 64 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 64 of file EicBoxGenerator.h

References max, min, mThetaMax, mThetaMin, and mUniformTheta.

Member Data Documentation

UInt_t EicBoxGenerator::mFlipCounter
private

Definition at line 94 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 94 of file EicBoxGenerator.h

Referenced by ReadEvent(), and ResetVars().

UInt_t EicBoxGenerator::mMult
protected

Definition at line 89 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 89 of file EicBoxGenerator.h

Referenced by EicBoxGenerator(), EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), and EicAsciiBoxGenerator::SetTrackMultiplicityLimit().

std::vector<Int_t> EicBoxGenerator::mPDGs
private

Definition at line 92 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 92 of file EicBoxGenerator.h

Referenced by AddPDG(), and ReadEvent().

Double_t EicBoxGenerator::mPhiMax
protected

Definition at line 87 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 87 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetPhi(), and SetPhiRange().

Double_t EicBoxGenerator::mPhiMin
protected

Definition at line 86 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 86 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetPhi(), and SetPhiRange().

Double_t EicBoxGenerator::mPmax
protected

Definition at line 82 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 82 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetMomentum(), and SetMomentumRange().

Double_t EicBoxGenerator::mPmin
protected

Definition at line 81 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 81 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetMomentum(), and SetMomentumRange().

Double_t EicBoxGenerator::mThetaMax
protected

Definition at line 84 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 84 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetTheta(), and SetThetaRange().

Double_t EicBoxGenerator::mThetaMin
protected

Definition at line 83 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 83 of file EicBoxGenerator.h

Referenced by EicAsciiBoxGenerator::ReadEvent(), ReadEvent(), ResetVars(), SetTheta(), and SetThetaRange().

bool EicBoxGenerator::mUniformTheta
protected

Definition at line 85 of file EicBoxGenerator.h.

View newest version in sPHENIX GitHub at line 85 of file EicBoxGenerator.h

Referenced by ReadEvent(), and SetThetaRange().


The documentation for this class was generated from the following files: