Garfield++ 3.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
HeedCluster.cpp
Go to the documentation of this file.
1#include <iomanip>
3
4// 2003, I. Smirnov
5
6namespace Heed {
7
8void HeedCluster::print(std::ostream& file, int l) const {
9 if (l <= 0) return;
10 Ifile << "HeedCluster (l=" << l
11 << "): transferred_energy=" << transferred_energy
12 << " MeV, estimated_qel=" << estimated_qel << '\n';
13 Ifile << "pt=" << pt << "ptloc=" << ptloc << '\n';
14 if (l > 1) {
15 indn.n += 2;
16 absvol* av = tid.G_lavol();
17 if (av != NULL) {
18 Ifile << "av=";
19 av->print(mcout, 1);
20 } else {
21 Ifile << "volume is not registered\n";
22 }
23 Ifile << "natom=" << natom << " nshell=" << nshell << '\n';
24 indn.n -= 2;
25 }
26}
27}
double transferred_energy
Energy transfer in internal units.
Definition: HeedCluster.h:24
void print(std::ostream &file, int l) const
Definition: HeedCluster.cpp:8
point pt
Coordinates in the first system of the tree.
Definition: HeedCluster.h:28
manip_absvol_treeid tid
Definition: HeedCluster.h:32
point ptloc
Coordinates in the local system (the last system in the tree).
Definition: HeedCluster.h:30
virtual void print(std::ostream &file, int l) const
Definition: volume.cpp:119
absvol * G_lavol() const
Get last address of volume.
Definition: volume.cpp:17
Definition: BGMesh.cpp:6
indentation indn
Definition: prstream.cpp:15
#define mcout
Definition: prstream.h:126
#define Ifile
Definition: prstream.h:196