LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
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 }
Float_t x
Definition: compare.C:6
Float_t y
Definition: compare.C:6
Double_t z
Definition: plot.C:279
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
double fPred
Definition: Solver.h:58

Member Function Documentation

void SpaceCharge::AddCharge ( double  dq)

Definition at line 35 of file Solver.cxx.

References fNeighbours, InductionWireHit::fPred, fPred, fWire1, and fWire2.

Referenced by Iterate().

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.

Referenced by reco3d::SpacePointSolver::FillSystemToSpacePointsAndAssns().

std::vector<Neighbour> SpaceCharge::fNeighbours

Definition at line 56 of file Solver.h.

Referenced by AddCharge(), and Metric().

double SpaceCharge::fNeiPotential

Neighbour-induced potential.

Definition at line 59 of file Solver.h.

Referenced by Metric().

InductionWireHit* SpaceCharge::fWire1
InductionWireHit * SpaceCharge::fWire2
double SpaceCharge::fX
double SpaceCharge::fY
double SpaceCharge::fZ

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