VMC Examples Version 6.6
Loading...
Searching...
No Matches
optPhoton.C
Go to the documentation of this file.
1//------------------------------------------------
2// The Virtual Monte Carlo examples
3// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
10/// \file E06/optPhoton.C
11/// \brief est macro for polarized optical photon for Example06
12
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)
void optPhoton()
Definition optPhoton.C:13