BDSBunchUserFile Class Reference

Inheritance diagram for BDSBunchUserFile:

Inheritance graph
[legend]
Collaboration diagram for BDSBunchUserFile:

Collaboration graph
[legend]

Public Member Functions

 BDSBunchUserFile ()
 > number of lines that will be ignored after each particle (default 0)
 ~BDSBunchUserFile ()
virtual void SetOptions (struct Options &opt)
virtual void GetNextParticle (G4double &x0, G4double &y0, G4double &z0, G4double &xp, G4double &yp, G4double &zp, G4double &t, G4double &E, G4double &weight)

Protected Attributes

G4String distribFile
G4String bunchFormat
 > bunch file
G4int nlinesIgnore
 > the format of the file

Private Member Functions

void ParseFileFormat ()
void OpenBunchFile ()
void CloseBunchFile ()
void skip (G4int nvalues)
template<typename Type>
G4bool ReadValue (Type &value)
void SetDistribFile (G4String filename)
void SetBunchFormat (G4String val)
void SetNLinesIgnore (G4int val)
G4double ParseEnergyUnit (G4String &fmt)
G4double ParseLengthUnit (G4String &fmt)
G4double ParseAngleUnit (G4String &fmt)
G4double ParseTimeUnit (G4String &fmt)

Private Attributes

std::ifstream InputBunchFile
std::list< struct Doubletfields

Data Structures

struct  Doublet

Detailed Description

Definition at line 8 of file BDSBunchUserFile.hh.


The documentation for this class was generated from the following files:
Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7