Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
Heed::EnTransfCS_BGM Class Reference

#include <EnTransfCS_BGM.h>

+ Inheritance diagram for Heed::EnTransfCS_BGM:

Public Member Functions

 EnTransfCS_BGM (void)
 
 EnTransfCS_BGM (double fparticle_mass, PassivePtr< BGMesh > fmesh, int fs_primary_electron, HeedMatterDef *fhmd, long fparticle_charge=1)
 
 macro_copy_total (EnTransfCS_BGM)
 
virtual void print (std::ostream &file, int l) const
 

Public Attributes

double particle_mass
 
long particle_charge
 
int s_primary_electron
 
PassivePtr< HeedMatterDefhmd
 
PassivePtr< BGMeshmesh
 
DynLinArr< EnTransfCSetcs_bgm
 

Detailed Description

Definition at line 10 of file EnTransfCS_BGM.h.

Constructor & Destructor Documentation

◆ EnTransfCS_BGM() [1/2]

Heed::EnTransfCS_BGM::EnTransfCS_BGM ( void  )

◆ EnTransfCS_BGM() [2/2]

Heed::EnTransfCS_BGM::EnTransfCS_BGM ( double  fparticle_mass,
PassivePtr< BGMesh fmesh,
int  fs_primary_electron,
HeedMatterDef fhmd,
long  fparticle_charge = 1 
)

Definition at line 5 of file EnTransfCS_BGM.cpp.

8 : particle_mass(fparticle_mass),
9 particle_charge(fparticle_charge),
10 s_primary_electron(fs_primary_electron),
11 hmd(fhmd),
12 mesh(fmesh) {
13 mfunnamep("EnTransfCS_BGM::EnTransfCS_BGM(...)");
14
15 long q = mesh->q;
17 long n;
18 for (n = 0; n < q; n++) {
19 double bg = mesh->x[n];
20 double gamma_1 = sqrt(1.0 + (bg * bg)) - 1.0; // gamma - 1
21 etcs_bgm[n] = EnTransfCS(fparticle_mass, gamma_1, fs_primary_electron, fhmd,
22 fparticle_charge);
23 }
24
25}
DoubleAc sqrt(const DoubleAc &f)
Definition: DoubleAc.cpp:313
#define mfunnamep(string)
Definition: FunNameStack.h:77
PassivePtr< HeedMatterDef > hmd
DynLinArr< EnTransfCS > etcs_bgm
PassivePtr< BGMesh > mesh

Member Function Documentation

◆ macro_copy_total()

Heed::EnTransfCS_BGM::macro_copy_total ( EnTransfCS_BGM  )

◆ print()

void Heed::EnTransfCS_BGM::print ( std::ostream &  file,
int  l 
) const
virtual

Definition at line 27 of file EnTransfCS_BGM.cpp.

27 {
28 if (l <= 0) return;
29 Ifile << "EnTransfCS_BGM(l=" << l << "):\n";
30 indn.n += 2;
31 Ifile << "particle_mass=" << particle_mass
32 << " particle_charge=" << particle_charge << std::endl;
33 Ifile << "s_primary_electron=" << s_primary_electron << std::endl;
34 Ifile << "hmd:\n";
35 hmd->print(file, 1);
36 Ifile << "mesh:\n";
37 mesh->print(file, 1);
38
39 Ifile << "Array of Cross Section:\n";
40 Ifile << "Number of elements = " << etcs_bgm.get_qel() << '\n';
41
42 if (l >= 2) {
43 long q = mesh->q;
44 long n;
45 for (n = 0; n < q; n++) {
46 Ifile << "n=" << std::setw(5) << n << " bg=" << std::setw(14)
47 << mesh->x[n] << " quan=" << std::setw(14) << etcs_bgm[n].quanC;
48#ifndef EXCLUDE_MEAN
49 file << " mean=" << std::setw(14) << etcs_bgm[n].meanC;
50#endif
51 file << '\n';
52 }
53 }
54 indn.n -= 2;
55}
indentation indn
Definition: prstream.cpp:13
#define Ifile
Definition: prstream.h:207

Member Data Documentation

◆ etcs_bgm

DynLinArr<EnTransfCS> Heed::EnTransfCS_BGM::etcs_bgm

Definition at line 22 of file EnTransfCS_BGM.h.

Referenced by EnTransfCS_BGM(), Heed::HeedParticle_BGM::physics(), and print().

◆ hmd

PassivePtr<HeedMatterDef> Heed::EnTransfCS_BGM::hmd

Definition at line 20 of file EnTransfCS_BGM.h.

Referenced by Heed::HeedParticle_BGM::physics(), and print().

◆ mesh

PassivePtr<BGMesh> Heed::EnTransfCS_BGM::mesh

Definition at line 21 of file EnTransfCS_BGM.h.

Referenced by EnTransfCS_BGM(), Heed::HeedParticle_BGM::physics(), and print().

◆ particle_charge

long Heed::EnTransfCS_BGM::particle_charge

Definition at line 16 of file EnTransfCS_BGM.h.

Referenced by print().

◆ particle_mass

double Heed::EnTransfCS_BGM::particle_mass

Definition at line 13 of file EnTransfCS_BGM.h.

Referenced by print().

◆ s_primary_electron

int Heed::EnTransfCS_BGM::s_primary_electron

Definition at line 18 of file EnTransfCS_BGM.h.

Referenced by print().


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