Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Visualize drift lines and tracks. More...
#include <ViewDrift.hh>
Public Member Functions | |
ViewDrift () | |
Constructor. | |
~ViewDrift () | |
Destructor. | |
void | SetCanvas (TCanvas *c) |
Set the canvas to be painted on. | |
void | SetArea (const double xmin, const double ymin, const double zmin, const double xmax, const double ymax, const double zmax) |
Set the region to be plotted. | |
void | Clear () |
Delete existing drift lines, tracks and markers. | |
void | Plot (const bool twod=false, const bool axis=true) |
Draw the drift lines. | |
void | SetClusterMarkerSize (const double size) |
Set the size of the cluster markers (see TAttMarker). | |
void | SetCollisionMarkerSize (const double size) |
Set the size of the collision markers (see TAttMarker). | |
void | NewElectronDriftLine (const unsigned int np, int &id, const double x0, const double y0, const double z0) |
void | NewHoleDriftLine (const unsigned int np, int &id, const double x0, const double y0, const double z0) |
void | NewIonDriftLine (const unsigned int np, int &id, const double x0, const double y0, const double z0) |
void | NewPhotonTrack (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1) |
void | NewChargedParticleTrack (const unsigned int np, int &id, const double x0, const double y0, const double z0) |
void | SetDriftLinePoint (const unsigned int iL, const unsigned int iP, const double x, const double y, const double z) |
void | AddDriftLinePoint (const unsigned int iL, const double x, const double y, const double z) |
void | SetTrackPoint (const unsigned int iL, const unsigned int iP, const double x, const double y, const double z) |
void | AddTrackPoint (const unsigned int iL, const double x, const double y, const double z) |
void | AddExcitationMarker (const double x, const double y, const double z) |
void | AddIonisationMarker (const double x, const double y, const double z) |
void | AddAttachmentMarker (const double x, const double y, const double z) |
void | EnableDebugging (const bool on=true) |
Switch on/off debugging output. | |
Friends | |
class | ViewFEMesh |
Visualize drift lines and tracks.
Definition at line 15 of file ViewDrift.hh.
Garfield::ViewDrift::ViewDrift | ( | ) |
Constructor.
Definition at line 11 of file ViewDrift.cc.
Garfield::ViewDrift::~ViewDrift | ( | ) |
Destructor.
Definition at line 38 of file ViewDrift.cc.
void Garfield::ViewDrift::AddAttachmentMarker | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Definition at line 303 of file ViewDrift.cc.
void Garfield::ViewDrift::AddDriftLinePoint | ( | const unsigned int | iL, |
const double | x, | ||
const double | y, | ||
const double | z | ||
) |
Definition at line 243 of file ViewDrift.cc.
void Garfield::ViewDrift::AddExcitationMarker | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Definition at line 283 of file ViewDrift.cc.
void Garfield::ViewDrift::AddIonisationMarker | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Definition at line 293 of file ViewDrift.cc.
void Garfield::ViewDrift::AddTrackPoint | ( | const unsigned int | iL, |
const double | x, | ||
const double | y, | ||
const double | z | ||
) |
Definition at line 269 of file ViewDrift.cc.
Referenced by Garfield::Track::PlotCluster().
void Garfield::ViewDrift::Clear | ( | ) |
Delete existing drift lines, tracks and markers.
Definition at line 74 of file ViewDrift.cc.
Referenced by ~ViewDrift().
|
inline |
void Garfield::ViewDrift::NewChargedParticleTrack | ( | const unsigned int | np, |
int & | id, | ||
const double | x0, | ||
const double | y0, | ||
const double | z0 | ||
) |
Definition at line 216 of file ViewDrift.cc.
Referenced by Garfield::Track::PlotNewTrack().
void Garfield::ViewDrift::NewElectronDriftLine | ( | const unsigned int | np, |
int & | id, | ||
const double | x0, | ||
const double | y0, | ||
const double | z0 | ||
) |
Definition at line 127 of file ViewDrift.cc.
void Garfield::ViewDrift::NewHoleDriftLine | ( | const unsigned int | np, |
int & | id, | ||
const double | x0, | ||
const double | y0, | ||
const double | z0 | ||
) |
Definition at line 156 of file ViewDrift.cc.
void Garfield::ViewDrift::NewIonDriftLine | ( | const unsigned int | np, |
int & | id, | ||
const double | x0, | ||
const double | y0, | ||
const double | z0 | ||
) |
Definition at line 180 of file ViewDrift.cc.
void Garfield::ViewDrift::NewPhotonTrack | ( | const double | x0, |
const double | y0, | ||
const double | z0, | ||
const double | x1, | ||
const double | y1, | ||
const double | z1 | ||
) |
Definition at line 203 of file ViewDrift.cc.
void Garfield::ViewDrift::Plot | ( | const bool | twod = false , |
const bool | axis = true |
||
) |
Draw the drift lines.
Definition at line 313 of file ViewDrift.cc.
void Garfield::ViewDrift::SetArea | ( | const double | xmin, |
const double | ymin, | ||
const double | zmin, | ||
const double | xmax, | ||
const double | ymax, | ||
const double | zmax | ||
) |
Set the region to be plotted.
Definition at line 56 of file ViewDrift.cc.
void Garfield::ViewDrift::SetCanvas | ( | TCanvas * | c | ) |
Set the canvas to be painted on.
Definition at line 45 of file ViewDrift.cc.
void Garfield::ViewDrift::SetClusterMarkerSize | ( | const double | size | ) |
Set the size of the cluster markers (see TAttMarker).
Definition at line 109 of file ViewDrift.cc.
void Garfield::ViewDrift::SetCollisionMarkerSize | ( | const double | size | ) |
Set the size of the collision markers (see TAttMarker).
Definition at line 118 of file ViewDrift.cc.
void Garfield::ViewDrift::SetDriftLinePoint | ( | const unsigned int | iL, |
const unsigned int | iP, | ||
const double | x, | ||
const double | y, | ||
const double | z | ||
) |
Definition at line 230 of file ViewDrift.cc.
void Garfield::ViewDrift::SetTrackPoint | ( | const unsigned int | iL, |
const unsigned int | iP, | ||
const double | x, | ||
const double | y, | ||
const double | z | ||
) |
Definition at line 257 of file ViewDrift.cc.
|
friend |
Definition at line 67 of file ViewDrift.hh.