Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
parabol.cpp File Reference

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &file, const Parabol &f)
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  file,
const Parabol f 
)

Definition at line 285 of file parabol.cpp.

285 {
286 double xz[2];
287 int q = f.find_zero(xz);
288 Ifile << "Parabol: a=" << f.a() << " b=" << f.b() << " c=" << f.c()
289 << " qxzero=" << q;
290 if (q > 0) file << " xzero=" << xz[0];
291 if (q > 1) file << ' ' << xz[1];
292 file << '\n';
293 return file;
294}
double b(void) const
Definition: parabol.h:36
double a(void) const
Definition: parabol.h:35
int find_zero(double xzero[2]) const
Definition: parabol.cpp:234
double c(void) const
Definition: parabol.h:37
#define Ifile
Definition: prstream.h:207