#include <CosmicGun.h>
◆ GenerateEvent() [1/2]
HepLorentzVector CosmicGun::GenerateEvent |
( |
void |
| ) |
|
Definition at line 109 of file CosmicGun.cxx.
109 {
110 int iacc = 0;
111
112 while(iacc == 0){
113 cosgen_(&m_emin, &m_emax, &iacc);
114 }
115 m_event++;
116
122 HepLorentzVector p(px,py,pz,e);
123
124
125 if(m_event < m_printevt)
126 {
127 std::cout << "CosmicGun::GenerateEvent: " << std::setw(4) << m_event
128 <<
" muon charge " << std::setw(2) <<
cosevt_.
CHRG <<
" with momentum : " << p << std::endl;
129 }
130
131 return p;
132}
void cosgen_(float *emin, float *emax, int *iacc)
double sin(const BesAngle a)
double cos(const BesAngle a)
Referenced by CosmicGenerator::execute().
◆ GenerateEvent() [2/2]
HepLorentzVector CosmicGun::GenerateEvent |
( |
void |
| ) |
|
◆ GenerateVertex() [1/2]
HepLorentzVector CosmicGun::GenerateVertex |
( |
void |
| ) |
|
◆ GenerateVertex() [2/2]
HepLorentzVector CosmicGun::GenerateVertex |
( |
void |
| ) |
|
◆ GetCosmicGun() [1/2]
◆ GetCosmicGun() [2/2]
static CosmicGun * CosmicGun::GetCosmicGun |
( |
void |
| ) |
|
|
static |
◆ GetMuonCharge() [1/2]
int CosmicGun::GetMuonCharge |
( |
void |
| ) |
|
◆ GetMuonCharge() [2/2]
int CosmicGun::GetMuonCharge |
( |
void |
| ) |
|
◆ InitializeGenerator() [1/2]
float CosmicGun::InitializeGenerator |
( |
| ) |
|
Definition at line 81 of file CosmicGun.cxx.
81 {
82 std::cout << " CosmicGun::InitializeGenerator: E(min,max)=(" << m_emin << "," << m_emax
83 << ") GeV, and cos(ThetaCut)="<< m_coscut << std::endl;
88}
Referenced by CosmicGenerator::initialize().
◆ InitializeGenerator() [2/2]
float CosmicGun::InitializeGenerator |
( |
| ) |
|
◆ PrintLevel() [1/2]
void CosmicGun::PrintLevel |
( |
int |
printevt, |
|
|
int |
printmod |
|
) |
| |
Definition at line 90 of file CosmicGun.cxx.
90 {
91 if (printevt >= 0)
92 {
93 m_printevt = printevt;
94 }
95 else
96 {
97 std::cerr << "CosmicGun::PrintLevel - warning ignored input printevt = " << printevt << std::endl;
98 }
99 if (printmod >= 1)
100 {
101 m_printmod = printmod;
102 }
103 else
104 {
105 std::cerr << "CosmicGun::PrintLevel - warning ignored input printmod = " << printmod << std::endl;
106 }
107}
Referenced by CosmicGenerator::initialize().
◆ PrintLevel() [2/2]
void CosmicGun::PrintLevel |
( |
int |
printevt, |
|
|
int |
printmod |
|
) |
| |
◆ SetCosCut() [1/2]
void CosmicGun::SetCosCut |
( |
float |
ctcut | ) |
|
◆ SetCosCut() [2/2]
void CosmicGun::SetCosCut |
( |
float |
ctcut | ) |
|
◆ SetEnergyRange() [1/2]
void CosmicGun::SetEnergyRange |
( |
float |
emin, |
|
|
float |
emax |
|
) |
| |
Definition at line 138 of file CosmicGun.cxx.
138 {
139 if(emin >= emax || emin < 0 )
140 {
141 std::cout << "Error input energy range : (" << emin << " - " << emax << ") - ignored " << std::endl;
142 return;
143 }
144 m_emin = emin;
145 m_emax = emax;
146
151
152}
Referenced by CosmicGenerator::initialize().
◆ SetEnergyRange() [2/2]
void CosmicGun::SetEnergyRange |
( |
float |
emin, |
|
|
float |
emax |
|
) |
| |
The documentation for this class was generated from the following files: