![]() |
MiniballSort
|
Functions to convert Miniball angles read from the frame. More...
#include <MiniballGeometry.hh>
Public Member Functions | |
| MiniballGeometry () | |
| Constructor. | |
| ~MiniballGeometry () | |
| Destructor. | |
| void | SetupCluster () |
| Setup cluster main routine. | |
| void | SetupCluster (double user_theta, double user_phi, double user_alpha, double user_r, double user_z) |
| void | SetCluTheta (double user_theta) |
| void | SetCluPhi (double user_phi) |
| void | SetCluAlpha (double user_alpha) |
| void | SetCluR (double user_r) |
| void | SetCluZ (double user_z) |
| void | SetGeometryType (unsigned char user_type) |
| double | GetCluTheta () |
| Getters for the various setters. | |
| double | GetCluPhi () |
| double | GetCluAlpha () |
| double | GetCluR () |
| unsigned char | GetGeometryType () |
| double | GetCryTheta (unsigned char cry) |
| double | GetCryPhi (unsigned char cry) |
| TVector3 | GetCryVector (unsigned char cry) |
| double | GetSegTheta (unsigned char cry, unsigned char seg) |
| double | GetSegPhi (unsigned char cry, unsigned char seg) |
| double | GetSegX (unsigned char cry, unsigned char seg) |
| double | GetSegY (unsigned char cry, unsigned char seg) |
| double | GetSegZ (unsigned char cry, unsigned char seg) |
| TVector3 | GetSegVector (unsigned char cry, unsigned char seg) |
Private Member Functions | |
| ClassDef (MiniballGeometry, 2) | |
Private Attributes | |
| const unsigned char | ncry = 3 |
| const unsigned char | nseg = 7 |
| unsigned char | type |
| geometry defintion type | |
| double | theta |
| theta angle in radians | |
| double | phi |
| phi angle in radians | |
| double | alpha |
| alpha angle in radians | |
| double | r |
| distance from target to detector in mm | |
| double | z |
| distance from target to origin (beam direction is positive) in mm | |
| std::vector< std::vector< TVector3 > > | seg_offset |
| vector for segment centre (0 = core) | |
| TVector3 | mbzoffset |
| This shift is independent of the CD detector distance which is relative. | |
Functions to convert Miniball angles read from the frame.
A geometry class that converts cluster angles read from the Miniball frame into real-life angles for the analysis. You can have theta and phi angles of the centres of each cluster, crystal and segment in frame geometry or true/beam geometry.
Definition at line 21 of file MiniballGeometry.hh.
|
inline |
Constructor.
Definition at line 26 of file MiniballGeometry.hh.
|
inline |
Destructor.
Definition at line 29 of file MiniballGeometry.hh.
|
private |
|
inline |
Definition at line 68 of file MiniballGeometry.hh.
|
inline |
Definition at line 67 of file MiniballGeometry.hh.
|
inline |
Definition at line 69 of file MiniballGeometry.hh.
|
inline |
Getters for the various setters.
Definition at line 66 of file MiniballGeometry.hh.
|
inline |
Get the phi angle of the crystal with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
Definition at line 82 of file MiniballGeometry.hh.
|
inline |
Get the theta angle of the crystal with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
Definition at line 75 of file MiniballGeometry.hh.
|
inline |
Get a unit vector pointing towards the core
| cry | number of the MB Ge crystal counting from 0 to 2 |
Definition at line 89 of file MiniballGeometry.hh.
Referenced by GetCryPhi(), and GetCryTheta().
|
inline |
Definition at line 70 of file MiniballGeometry.hh.
|
inline |
Get the phi angle of a segment with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 105 of file MiniballGeometry.hh.
|
inline |
Get the theta angle of a segment with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 97 of file MiniballGeometry.hh.
|
inline |
Get a unit vector pointing towards the segment
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 137 of file MiniballGeometry.hh.
Referenced by GetCryVector(), GetSegPhi(), GetSegTheta(), GetSegX(), GetSegY(), and GetSegZ().
|
inline |
Get the x position of a segment with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 113 of file MiniballGeometry.hh.
|
inline |
Get the y position of a segment with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 121 of file MiniballGeometry.hh.
|
inline |
Get the z position of a segment with respect to the beam
| cry | number of the MB Ge crystal counting from 0 to 2 |
| seg | number of the segment within the crystal: 0 is core, 1-6 for segments |
Definition at line 129 of file MiniballGeometry.hh.
|
inline |
Set the alpha angle measured from the frame
| user_alpha | in the MB frame of reference [degrees] |
Definition at line 51 of file MiniballGeometry.hh.
|
inline |
Set the phi angle measured from the frame
| user_phi | in the MB frame of reference [degrees] |
Definition at line 47 of file MiniballGeometry.hh.
|
inline |
Set the distance between the target and face of the cluster
| user_r | distance from target to detector [mm] |
Definition at line 55 of file MiniballGeometry.hh.
|
inline |
Set the theta angle measured from the frame
| user_theta | in the MB frame of reference [degrees] |
Definition at line 43 of file MiniballGeometry.hh.
|
inline |
Set the distance between the origin and the target position along the beam axis
| user_z | distance from target to origin in beam direction [mm] |
Definition at line 59 of file MiniballGeometry.hh.
|
inline |
Set the geometry defintion type
| user_type |
Definition at line 63 of file MiniballGeometry.hh.
| void MiniballGeometry::SetupCluster | ( | ) |
Setup cluster main routine.
< mm; ~25mm for higher energies (E>500keV)
< mm; gap between the capsules inside the cryostat
< mm; distance between capsule and crystal
< mm; thickness of the capsule walls
< rad; taper angle from the crystal and capsule
< mm; from the hexagon shape in the front of the capsule
< of capsule
< focal length using taper angle and distance from capsule core to next capsule
Definition at line 28 of file MiniballGeometry.cc.
Referenced by ClassImp().
| void MiniballGeometry::SetupCluster | ( | double | user_theta, |
| double | user_phi, | ||
| double | user_alpha, | ||
| double | user_r, | ||
| double | user_z ) |
Setup the cluster with coordinate values
| user_theta | in the MB frame of reference [degrees] |
| user_phi | in the MB frame of reference [degrees] |
| user_alpha | in the MB frame of reference [degrees] |
| user_r | distance from target to detector [mm] |
| user_z | distance from target to origin in beam direction [mm] |
|
private |
alpha angle in radians
Definition at line 151 of file MiniballGeometry.hh.
Referenced by ClassImp(), GetCluAlpha(), SetCluAlpha(), and SetupCluster().
|
private |
This shift is independent of the CD detector distance which is relative.
Offset of target from origin in direction of beam in mm.
Definition at line 157 of file MiniballGeometry.hh.
Referenced by SetupCluster().
|
private |
Definition at line 144 of file MiniballGeometry.hh.
Referenced by ClassImp(), and SetupCluster().
|
private |
Definition at line 145 of file MiniballGeometry.hh.
Referenced by ClassImp(), and SetupCluster().
|
private |
phi angle in radians
Definition at line 150 of file MiniballGeometry.hh.
Referenced by ClassImp(), GetCluPhi(), SetCluPhi(), and SetupCluster().
|
private |
distance from target to detector in mm
Definition at line 152 of file MiniballGeometry.hh.
Referenced by ClassImp(), GetCluR(), SetCluR(), and SetupCluster().
|
private |
vector for segment centre (0 = core)
Definition at line 156 of file MiniballGeometry.hh.
Referenced by ClassImp(), GetSegVector(), and SetupCluster().
|
private |
theta angle in radians
Definition at line 149 of file MiniballGeometry.hh.
Referenced by ClassImp(), GetCluTheta(), SetCluTheta(), and SetupCluster().
|
private |
geometry defintion type
Definition at line 148 of file MiniballGeometry.hh.
Referenced by GetGeometryType(), SetGeometryType(), and SetupCluster().
|
private |
distance from target to origin (beam direction is positive) in mm
Definition at line 153 of file MiniballGeometry.hh.
Referenced by ClassImp(), SetCluZ(), and SetupCluster().