Belle II Software development
PolyhedronBelleCrystal Class Reference

Belle crystal in polyhedron. More...

#include <BelleCrystal.h>

Inheritance diagram for PolyhedronBelleCrystal:

Public Member Functions

 PolyhedronBelleCrystal (int, const G4ThreeVector *)
 constructor
 
virtual ~PolyhedronBelleCrystal ()
 destructor
 

Detailed Description

Belle crystal in polyhedron.

Definition at line 153 of file BelleCrystal.h.

Constructor & Destructor Documentation

◆ PolyhedronBelleCrystal()

PolyhedronBelleCrystal ( int  n,
const G4ThreeVector *  pt 
)

constructor

Definition at line 708 of file BelleCrystal.cc.

709{
710 int nsides = n / 2;
711 AllocateMemory(n, nsides + 2 * (nsides - 2));
712 for (int i = 0; i < n; i++) pV[i + 1] = pt[i];
713
714 int count = 1;
715 for (int j = 0; j < nsides; j++)
716 pF[count++] = G4Facet(1 + j, 0, 1 + (j + 1) % nsides, 0, 1 + ((j + 1) % nsides) + nsides, 0, 1 + j + nsides, 0);
717 for (int j = 0; j < nsides - 2; j++) pF[count++] = G4Facet(1 + nsides, 0, 2 + j + nsides, 0, 3 + j + nsides, 0, 0, 0);
718 for (int j = 0; j < nsides - 2; j++) pF[count++] = G4Facet(1, 0, 3 + j, 0, 2 + j, 0, 0, 0);
719 SetReferences();
720}

◆ ~PolyhedronBelleCrystal()

~PolyhedronBelleCrystal ( )
virtual

destructor

Definition at line 722 of file BelleCrystal.cc.

722{}

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