GeFiCa
Germanium detector Field Calculator
Public Member Functions | List of all members
GeFiCa::FieldLine Class Reference

Electric field line data. More...

#include <Grid.h>

Inheritance diagram for GeFiCa::FieldLine:
Inheritance graph
[legend]
Collaboration diagram for GeFiCa::FieldLine:
Collaboration graph
[legend]

Public Member Functions

 FieldLine ()
 
TGraph * GetGraph ()
 
- Public Member Functions inherited from GeFiCa::Points
size_t GetN ()
 total number of points More...
 

Additional Inherited Members

- Public Attributes inherited from GeFiCa::Points
std::vector< double > C1
 the 1st coordinates of the points More...
 
std::vector< double > C2
 the 2nd coordinates of the points More...
 
std::vector< double > C3
 the 3rd coordinates of the points More...
 
std::vector< double > Vp
 potential at each point More...
 
std::vector< double > Et
 total electric field strength More...
 
std::vector< double > E1
 projection of Et on C1 More...
 
std::vector< double > E2
 projection of Et on C2 More...
 
std::vector< double > E3
 projection of Et on C3 More...
 
std::vector< double > dC1p
 step length to next point alone C1 More...
 
std::vector< double > dC1m
 step length to previous point alone C1 More...
 
std::vector< double > dC2p
 step length to next point along C2 More...
 
std::vector< double > dC2m
 step length to previous point along C2 More...
 
std::vector< double > dC3p
 step length to next point alone C3 More...
 
std::vector< double > dC3m
 step length to previous point alone C3 More...
 

Detailed Description

Electric field line data.

It inherits from TNamed the ability to be retreived from a ROOT file by its name. One can get either a TGraph or C1, C2... from it for plotting.

Definition at line 35 of file Grid.h.

Constructor & Destructor Documentation

◆ FieldLine()

GeFiCa::FieldLine::FieldLine ( )
inline

Definition at line 38 of file Grid.h.

38 : Points(), TNamed("fl", "electric field line"), fGl(0) {};

Member Function Documentation

◆ GetGraph()

TGraph * FieldLine::GetGraph ( )
Examples:
pointContact/drawFields.cc.

Definition at line 12 of file Grid.cc.

13 {
14  if (GetN()<1) {
15  Warning("GetGraph", "No data for graph. Return 0!");
16  return 0;
17  }
18  if (fGl) { return fGl; }
19  fGl = new TGraph(GetN(),C1.data(),C2.data());
20  fGl->SetName(GetName()); fGl->SetTitle(GetTitle());
21  fGl->SetMarkerStyle(8); fGl->SetMarkerSize(0.4); fGl->SetMarkerColor(12);
22  return fGl;
23 }
std::vector< double > C2
the 2nd coordinates of the points
Definition: Grid.h:13
size_t GetN()
total number of points
Definition: Grid.h:26
std::vector< double > C1
the 1st coordinates of the points
Definition: Grid.h:12

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