1#ifndef __MINIBALLGEOMETRY_HH
2#define __MINIBALLGEOMETRY_HH
39 void SetupCluster(
double user_theta,
double user_phi,
double user_alpha,
double user_r,
double user_z );
43 inline void SetCluTheta(
double user_theta ){
theta = user_theta * TMath::DegToRad(); };
47 inline void SetCluPhi(
double user_phi ){
phi = user_phi * TMath::DegToRad(); };
51 inline void SetCluAlpha(
double user_alpha ){
alpha = user_alpha * TMath::DegToRad(); };
55 inline void SetCluR(
double user_r ){
r = user_r; };
59 inline void SetCluZ(
double user_z ) {
z = user_z; };
97 inline double GetSegTheta(
unsigned char cry,
unsigned char seg ){
105 inline double GetSegPhi(
unsigned char cry,
unsigned char seg ){
113 inline double GetSegX(
unsigned char cry,
unsigned char seg ){
121 inline double GetSegY(
unsigned char cry,
unsigned char seg ){
129 inline double GetSegZ(
unsigned char cry,
unsigned char seg ){
Functions to convert Miniball angles read from the frame.
void SetCluPhi(double user_phi)
std::vector< std::vector< TVector3 > > seg_offset
vector for segment centre (0 = core)
double GetCryPhi(unsigned char cry)
void SetupCluster()
Setup cluster main routine.
double GetSegY(unsigned char cry, unsigned char seg)
double theta
theta angle in radians
~MiniballGeometry()
Destructor.
double alpha
alpha angle in radians
void SetCluAlpha(double user_alpha)
unsigned char type
geometry defintion type
void SetCluZ(double user_z)
ClassDef(MiniballGeometry, 2)
double GetCluTheta()
Getters for the various setters.
double phi
phi angle in radians
void SetCluR(double user_r)
double GetSegZ(unsigned char cry, unsigned char seg)
double z
distance from target to origin (beam direction is positive) in mm
double GetSegTheta(unsigned char cry, unsigned char seg)
double r
distance from target to detector in mm
TVector3 GetCryVector(unsigned char cry)
void SetCluTheta(double user_theta)
void SetupCluster(double user_theta, double user_phi, double user_alpha, double user_r, double user_z)
TVector3 mbzoffset
This shift is independent of the CD detector distance which is relative.
double GetCryTheta(unsigned char cry)
MiniballGeometry()
Constructor.
void SetGeometryType(unsigned char user_type)
double GetSegX(unsigned char cry, unsigned char seg)
unsigned char GetGeometryType()
double GetSegPhi(unsigned char cry, unsigned char seg)
TVector3 GetSegVector(unsigned char cry, unsigned char seg)