Public Member Functions | Public Attributes | List of all members
SpaceCharge Class Reference

#include <Solver.h>

Public Member Functions

 SpaceCharge (double x, double y, double z, CollectionWireHit *cwire, InductionWireHit *wire1, InductionWireHit *wire2)
 
void AddCharge (double dq)
 

Public Attributes

double fX
 
double fY
 
double fZ
 
CollectionWireHitfCWire
 
InductionWireHitfWire1
 
InductionWireHitfWire2
 
std::vector< NeighbourfNeighbours
 
double fPred
 
double fNeiPotential
 Neighbour-induced potential. More...
 

Detailed Description

Definition at line 42 of file Solver.h.

Constructor & Destructor Documentation

SpaceCharge::SpaceCharge ( double  x,
double  y,
double  z,
CollectionWireHit cwire,
InductionWireHit wire1,
InductionWireHit wire2 
)

Definition at line 24 of file Solver.cxx.

27  : fX(x), fY(y), fZ(z),
28  fCWire(cwire), fWire1(wire1), fWire2(wire2),
29  fPred(0),
30  fNeiPotential(0)
31 {
32 }
double fNeiPotential
Neighbour-induced potential.
Definition: Solver.h:59
double fZ
Definition: Solver.h:52
InductionWireHit * fWire2
Definition: Solver.h:54
double fY
Definition: Solver.h:52
InductionWireHit * fWire1
Definition: Solver.h:54
double fX
Definition: Solver.h:52
CollectionWireHit * fCWire
Definition: Solver.h:53
list x
Definition: train.py:276
double fPred
Definition: Solver.h:58

Member Function Documentation

void SpaceCharge::AddCharge ( double  dq)

Definition at line 35 of file Solver.cxx.

36 {
37  fPred += dq;
38 
39  for(Neighbour& nei: fNeighbours)
40  nei.fSC->fNeiPotential += dq * nei.fCoupling;
41 
42  if(fWire1) fWire1->fPred += dq;
43  if(fWire2) fWire2->fPred += dq;
44 }
double fPred
Definition: Solver.h:27
std::vector< Neighbour > fNeighbours
Definition: Solver.h:56
InductionWireHit * fWire2
Definition: Solver.h:54
InductionWireHit * fWire1
Definition: Solver.h:54
double fPred
Definition: Solver.h:58

Member Data Documentation

CollectionWireHit* SpaceCharge::fCWire

Definition at line 53 of file Solver.h.

std::vector<Neighbour> SpaceCharge::fNeighbours

Definition at line 56 of file Solver.h.

double SpaceCharge::fNeiPotential

Neighbour-induced potential.

Definition at line 59 of file Solver.h.

double SpaceCharge::fPred

Definition at line 58 of file Solver.h.

InductionWireHit* SpaceCharge::fWire1

Definition at line 54 of file Solver.h.

InductionWireHit * SpaceCharge::fWire2

Definition at line 54 of file Solver.h.

double SpaceCharge::fX

Definition at line 52 of file Solver.h.

double SpaceCharge::fY

Definition at line 52 of file Solver.h.

double SpaceCharge::fZ

Definition at line 52 of file Solver.h.


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