VMC Examples Version 6.6
Loading...
Searching...
No Matches
optPhoton.C File Reference

est macro for polarized optical photon for Example06 More...

Go to the source code of this file.

Functions

void optPhoton ()
 

Detailed Description

est macro for polarized optical photon for Example06

Definition in file optPhoton.C.

Function Documentation

◆ optPhoton()

void optPhoton ( )

Test macro for polarized optical photon (adapted optPhoton.mac). (Note that Geant3 was not meant to use C photons as primary particles, so this macro cannot be used with G3.)

Definition at line 13 of file optPhoton.C.

14{
15/// Test macro for polarized optical photon
16/// (adapted optPhoton.mac).
17/// (Note that Geant3 was not meant to use C photons as primary
18/// particles, so this macro cannot be used with G3.)
19
20 // Primary generator
21 Ex06PrimaryGenerator* generator
23
24 // Set optical photon properties
25 generator->SetParticle(50000050); // optical photon
26 generator->SetKinEnergy(3.0e-09); // 3 eV
27 generator->SetDirection(5, -3, 0); //
28 generator->SetOptPhotonPolar(90.); // 90. deg
29
30 generator->SetNofPrimaries(10);
31}
static Ex06MCApplication * Instance()
Ex06PrimaryGenerator * GetPrimaryGenerator() const
The primary generator.
void SetKinEnergy(Double_t kinEnergy)
void SetNofPrimaries(Int_t nofPrimaries)
void SetDirection(Double_t dirX, Double_t dirY, Double_t dirZ)
void SetOptPhotonPolar(Double_t angle)