#include <CosmicGun.h>
Definition at line 10 of file CosmicGun.h.
◆ CosmicGun()
| CosmicGun::CosmicGun |
( |
void | | ) |
|
|
private |
◆ GenerateEvent()
| CLHEP::HepLorentzVector CosmicGun::GenerateEvent |
( |
void | | ) |
|
Definition at line 113 of file CosmicGun.cxx.
113 {
114 int iacc = 0;
115
116 while(iacc == 0){
118 }
120
126 CLHEP::HepLorentzVector
p(px,py,pz,e);
127
128
129
130
131
132
133
135}
void cosgen_(float *emin, float *emax, int *iacc)
◆ GenerateVertex()
| CLHEP::HepLorentzVector CosmicGun::GenerateVertex |
( |
void | | ) |
|
◆ GetCosmicGun()
Definition at line 53 of file CosmicGun.cxx.
53 {
56}
static CosmicGun * s_mpointer
◆ GetMuonCharge()
| int CosmicGun::GetMuonCharge |
( |
void | | ) |
|
◆ InitializeGenerator()
| float CosmicGun::InitializeGenerator |
( |
| ) |
|
Definition at line 85 of file CosmicGun.cxx.
85 {
86 std::cout <<
" CosmicGun::InitializeGenerator: E(min,max)=(" <<
m_emin <<
"," <<
m_emax
87 <<
") GeV, and cos(ThetaCut)="<<
m_coscut << std::endl;
92}
◆ PrintLevel()
| void CosmicGun::PrintLevel |
( |
int | printevt, |
|
|
int | printmod ) |
Definition at line 94 of file CosmicGun.cxx.
94 {
95 if (printevt >= 0)
96 {
98 }
99 else
100 {
101 std::cerr << "CosmicGun::PrintLevel - warning ignored input printevt = " << printevt << std::endl;
102 }
103 if (printmod >= 1)
104 {
106 }
107 else
108 {
109 std::cerr << "CosmicGun::PrintLevel - warning ignored input printmod = " << printmod << std::endl;
110 }
111}
◆ SetCosCut()
| void CosmicGun::SetCosCut |
( |
float | ctcut | ) |
|
◆ SetEnergyRange()
| void CosmicGun::SetEnergyRange |
( |
float | emin, |
|
|
float | emax ) |
Definition at line 141 of file CosmicGun.cxx.
141 {
142 if(emin >= emax || emin < 0 )
143 {
144 std::cout << "Error input energy range : (" << emin << " - " << emax << ") - ignored " << std::endl;
145 return;
146 }
149
154
155}
◆ m_coscut
| float CosmicGun::m_coscut |
|
private |
◆ m_emax
◆ m_emin
◆ m_event
◆ m_printevt
| int CosmicGun::m_printevt |
|
private |
◆ m_printmod
| int CosmicGun::m_printmod |
|
private |
◆ s_mpointer
The documentation for this class was generated from the following files: