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

#include <linexi2.h>

+ Inheritance diagram for linexi2B:

Public Member Functions

 linexi2B (linexi2 &lx)
 
 ~linexi2B ()
 
void copy (const linexi2B &lxB)
 
 linexi2B (const linexi2B &lxB)
 
linexi2Boperator= (const linexi2B &lxB)
 
- Public Member Functions inherited from linexi2
 linexi2 (const linexi2_coor &lc, const double *fay)
 
 linexi2 (const long fqlr, const double *fax, const double *fay)
 
linexi2operator= (linexi2 &lx)
 
 linexi2 (linexi2 &lx)
 
double line (double x)
 
- Public Member Functions inherited from linexi2_coor
 linexi2_coor (const long fqlr, const double *fax)
 
 linexi2_coor (const linexi2_coor &lc)
 
linexi2_cooroperator= (const linexi2_coor &lc)
 

Public Attributes

double ** B
 
- Public Attributes inherited from linexi2
const double * ay
 
double y_mean
 
double xy_mean
 
double a
 
double b
 
- Public Attributes inherited from linexi2_coor
long qlr
 
const double * ax
 
double x_mean
 
double Dx
 

Detailed Description

Definition at line 70 of file linexi2.h.

Constructor & Destructor Documentation

◆ linexi2B() [1/2]

linexi2B::linexi2B ( linexi2 lx)

Definition at line 80 of file linexi2.cpp.

80 : linexi2(lx) {
81 mfunname("linexi2B::linexi2B(linexi2& lx)");
82 B = (double**)new double[lx.qlr * lx.qlr];
83 long i, m;
84 for (i = 0; i < qlr; i++)
85 for (m = 0; m < qlr; m++)
86 B[i][m] = (ax[i] - x_mean) * (ax[m] - x_mean) / Dx + 1;
87}
#define mfunname(string)
Definition: FunNameStack.h:67
double ** B
Definition: linexi2.h:72
double x_mean
Definition: linexi2.h:22
const double * ax
Definition: linexi2.h:21
double Dx
Definition: linexi2.h:23
long qlr
Definition: linexi2.h:20

◆ ~linexi2B()

linexi2B::~linexi2B ( )
inline

Definition at line 74 of file linexi2.h.

74{ delete B; }

◆ linexi2B() [2/2]

linexi2B::linexi2B ( const linexi2B lxB)

Definition at line 95 of file linexi2.cpp.

95 : linexi2((linexi2&)lxB) {
96 mfunname("linexi2B::linexi2B(const linexi2B& lxB)");
97 B = (double**)new double[lxB.qlr * lxB.qlr];
98 long i, m;
99 for (i = 0; i < qlr; i++)
100 for (m = 0; m < qlr; m++)
101 B[i][m] = lxB.B[i][m];
102}

Member Function Documentation

◆ copy()

void linexi2B::copy ( const linexi2B lxB)

Definition at line 88 of file linexi2.cpp.

88 {
89 *this = (linexi2&)lxB; // '=' redefined
90 long i, m;
91 for (i = 0; i < qlr; i++)
92 for (m = 0; m < qlr; m++)
93 B[i][m] = lxB.B[i][m];
94}

Referenced by operator=().

◆ operator=()

linexi2B & linexi2B::operator= ( const linexi2B lxB)
inline

Definition at line 77 of file linexi2.h.

77 {
78 copy(lxB);
79 return *this;
80 }
void copy(const linexi2B &lxB)
Definition: linexi2.cpp:88

Member Data Documentation

◆ B

double** linexi2B::B

Definition at line 72 of file linexi2.h.

Referenced by copy(), linexi2B(), and ~linexi2B().


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