LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
CollectionWireHit Class Reference

#include "Solver.h"

Inheritance diagram for CollectionWireHit:
WireHit

Public Member Functions

 CollectionWireHit (int chan, double q, const std::vector< SpaceCharge * > &cross)
 
 ~CollectionWireHit ()
 

Public Attributes

int fChannel
 
double fCharge
 
std::vector< SpaceCharge * > fCrossings
 

Detailed Description

Definition at line 62 of file Solver.h.

Constructor & Destructor Documentation

CollectionWireHit::CollectionWireHit ( int  chan,
double  q,
const std::vector< SpaceCharge * > &  cross 
)

Definition at line 47 of file Solver.cxx.

49  : fChannel(chan), fCharge(q), fCrossings(cross)
50 {
51  const double p = q/cross.size();
52 
53  for(SpaceCharge* iwires: cross){
54  iwires->fPred += p;
55  if(iwires->fWire1) iwires->fWire1->fPred += p;
56  if(iwires->fWire2) iwires->fWire2->fPred += p;
57  }
58 }
std::vector< SpaceCharge * > fCrossings
Definition: Solver.h:73
double fCharge
Definition: Solver.h:71
CollectionWireHit::~CollectionWireHit ( )

Definition at line 61 of file Solver.cxx.

References fCrossings.

62 {
63  // Each SpaceCharge can only be in one collection wire, so we own them. But
64  // not SpaceCharge does not clean up its induction wires since they're
65  // shared.
66  for(SpaceCharge* sc: fCrossings) delete sc;
67 }
std::vector< SpaceCharge * > fCrossings
Definition: Solver.h:73

Member Data Documentation

int CollectionWireHit::fChannel

Definition at line 69 of file Solver.h.

double CollectionWireHit::fCharge

Definition at line 71 of file Solver.h.

std::vector<SpaceCharge*> CollectionWireHit::fCrossings

Definition at line 73 of file Solver.h.

Referenced by Iterate(), and ~CollectionWireHit().


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