LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 61 of file Solver.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file Solver.cxx.

References sc.

45  : fChannel(chan), fCharge(q), fCrossings(cross)
46 {
47  if (q < 0) {
48  std::cout << "Trying to construct collection wire with negative charge " << q
49  << " this should never happen." << std::endl;
50  abort();
51  }
52 
53  const double p = q / cross.size();
54 
55  for (SpaceCharge* sc : cross)
56  sc->AddCharge(p);
57 }
std::vector< SpaceCharge * > fCrossings
Definition: Solver.h:71
Float_t sc
Definition: plot.C:23
double fCharge
Definition: Solver.h:69
CollectionWireHit::~CollectionWireHit ( )

Definition at line 60 of file Solver.cxx.

References fCrossings, and sc.

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

Member Data Documentation

int CollectionWireHit::fChannel

Definition at line 67 of file Solver.h.

double CollectionWireHit::fCharge

Definition at line 69 of file Solver.h.

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

Definition at line 71 of file Solver.h.

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


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