Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CML2Acc1 Class Reference

#include <ML2Acc1.hh>

Public Member Functions

 CML2Acc1 (void)
 
 ~CML2Acc1 (void)
 
void Construct (G4VPhysicalVolume *PVWorld, G4double isoCentre)
 
void reset ()
 
void setJaw1X (G4double val)
 
void setJaw2X (G4double val)
 
void setJaw1Y (G4double val)
 
void setJaw2Y (G4double val)
 
void setIsoCentre (G4double val)
 
void setidEnergy (G4int val)
 
void setLeavesAx (G4double val)
 
void setLeavesBx (G4double val)
 
int getidEnergy ()
 
G4double getBeforeJaws_Z_PhaseSpacePosition ()
 
void writeInfo ()
 

Static Public Member Functions

static CML2Acc1GetInstance (void)
 

Detailed Description

Definition at line 64 of file ML2Acc1.hh.

Constructor & Destructor Documentation

CML2Acc1::CML2Acc1 ( void  )

Definition at line 48 of file ML2Acc1.cc.

49 {
50  acc1Messenger=new CML2Acc1Messenger(this);
51 }

Here is the caller graph for this function:

CML2Acc1::~CML2Acc1 ( void  )

Definition at line 53 of file ML2Acc1.cc.

54 {
55 }

Member Function Documentation

void CML2Acc1::Construct ( G4VPhysicalVolume PVWorld,
G4double  isoCentre 
)

Definition at line 156 of file ML2Acc1.cc.

157 {
158  PVWorld=PWorld;
159  setIsoCentre(iso);
160  target();
161  BeWindow();
162  ionizationChamber();
163  flatteningFilter();
164  mirror();
165  primaryCollimator();
166  MLC();
167  Jaw1X();
168  Jaw2X();
169  Jaw1Y();
170  Jaw2Y();
171 }
const XML_Char * target
Definition: expat.h:268
void setIsoCentre(G4double val)
Definition: ML2Acc1.hh:76

Here is the call graph for this function:

Here is the caller graph for this function:

G4double CML2Acc1::getBeforeJaws_Z_PhaseSpacePosition ( )
inline

Definition at line 81 of file ML2Acc1.hh.

81 {return 215.;}

Here is the caller graph for this function:

int CML2Acc1::getidEnergy ( )
inline

Definition at line 80 of file ML2Acc1.hh.

80 {return idEnergy;}
CML2Acc1 * CML2Acc1::GetInstance ( void  )
static

Definition at line 58 of file ML2Acc1.cc.

59 {
60  if (instance == 0)
61  {
62  instance = new CML2Acc1();
63  }
64  return instance;
65 }
CML2Acc1(void)
Definition: ML2Acc1.cc:48
static MCTruthManager * instance

Here is the call graph for this function:

void CML2Acc1::reset ( )

Definition at line 172 of file ML2Acc1.cc.

173 {
174  leavesA.clear();
175  leavesB.clear();
176 }

Here is the caller graph for this function:

void CML2Acc1::setidEnergy ( G4int  val)
inline

Definition at line 77 of file ML2Acc1.hh.

77 {idEnergy=val;}

Here is the caller graph for this function:

void CML2Acc1::setIsoCentre ( G4double  val)
inline

Definition at line 76 of file ML2Acc1.hh.

76 {isoCentre=val;}

Here is the caller graph for this function:

void CML2Acc1::setJaw1X ( G4double  val)
inline

Definition at line 72 of file ML2Acc1.hh.

72 {jaw1XAperture=val;}

Here is the caller graph for this function:

void CML2Acc1::setJaw1Y ( G4double  val)
inline

Definition at line 74 of file ML2Acc1.hh.

74 {jaw1YAperture=val;}

Here is the caller graph for this function:

void CML2Acc1::setJaw2X ( G4double  val)
inline

Definition at line 73 of file ML2Acc1.hh.

73 {jaw2XAperture=val;}

Here is the caller graph for this function:

void CML2Acc1::setJaw2Y ( G4double  val)
inline

Definition at line 75 of file ML2Acc1.hh.

75 {jaw2YAperture=val;}

Here is the caller graph for this function:

void CML2Acc1::setLeavesAx ( G4double  val)
inline

Definition at line 78 of file ML2Acc1.hh.

78 {leavesA.push_back(val);}

Here is the caller graph for this function:

void CML2Acc1::setLeavesBx ( G4double  val)
inline

Definition at line 79 of file ML2Acc1.hh.

79 {leavesB.push_back(val);}

Here is the caller graph for this function:

void CML2Acc1::writeInfo ( )

Definition at line 66 of file ML2Acc1.cc.

67 {
68  std::cout <<"\n\n\tnominal beam energy: "<<idEnergy << G4endl;
69  std::cout <<"\tJaw X aperture: 1) "<< jaw1XAperture/mm<<"[mm]\t2) " << jaw2XAperture/mm<< " [mm]"<< G4endl;
70  std::cout <<"\tJaw Y aperture: 1) "<< jaw1YAperture/mm<<"[mm]\t2) " << jaw2YAperture/mm<< " [mm]\n"<< G4endl;
71 }
static constexpr double mm
Definition: G4SIunits.hh:115
#define G4endl
Definition: G4ios.hh:61

Here is the caller graph for this function:


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