Berkeley Nuclear Data Software
|
#include <ConfigClasses.h>
Public Member Functions | |
DetectorInfo () | |
DetType | getDetType () const |
int | getDetectorID () const |
double | getX () const |
double | getY () const |
double | getZ () const |
double | getrX () const |
double | getrY () const |
double | getrZ () const |
double | getDetectorLength () const |
double | getDistance (double a_detHalfLength) const |
distance in m. detLength in m More... | |
std::vector< double > | getLocation (double a_stepLenght) const |
void | setDetType (DetType a_detType) |
void | setDetectorID (int a_detectorID) |
void | setX (double a_x) |
void | setY (double a_y) |
void | setZ (double a_z) |
virtual void | translate (double a_x, double a_y, double a_z) |
void | setrX (double a_rX) |
void | setrY (double a_rY) |
void | setrZ (double a_rZ) |
void | setDetectorLength (double a_detLength) |
std::vector< double > | getDetectorCenter () |
double | getScatteringAngle (double a_bx, double a_by, double a_bz, double a_sx, double a_sy, double a_sz) |
double | getBeamScatteringAngle (double a_bx, double a_by, double a_bz, DetectorInfo &a_rhs) |
double | getSourceScatteringAngle (double a_sx, double a_sy, double a_sz, DetectorInfo &a_rhs) |
double | getDistance (float a_thisDetHalfL, float a_rhsHalfL, DetectorInfo &a_rhs) |
virtual std::ostream & | print (std::ostream &a_stream) const |
virtual | ~DetectorInfo () |
Protected Attributes | |
DetType | m_detType |
int | m_detectorID |
double | m_x |
double | m_y |
double | m_z |
double | m_rX |
double | m_rY |
double | m_rZ |
double | m_detectorLength |
this class is intended to be an abstraction of the elements common to all detectors needed for analysis which needs to differentiate between numerous detectors and store some information about their location and orientation in space.
DetectorInfo::DetectorInfo | ( | ) |
|
virtual |
double DetectorInfo::getBeamScatteringAngle | ( | double | a_bx, |
double | a_by, | ||
double | a_bz, | ||
DetectorInfo & | a_rhs | ||
) |
given another detector through which a particle has scattered through and an incident particle direction this function returns the angle through which the particle scattered the ith component of incident particles direction is given by a_bi the other detector location is stored withing the class
given another detector through which a particle has scattered through and an incident particle direction this function returns the angle through which the particle scattered
need to find the vector between detectors on use the physics calcs
std::vector< double > DetectorInfo::getDetectorCenter | ( | ) |
this function returns the x,y,z coordinates of the center of the detector using the internally stored detector length
int DetectorInfo::getDetectorID | ( | ) | const |
double DetectorInfo::getDetectorLength | ( | ) | const |
DetType DetectorInfo::getDetType | ( | ) | const |
double DetectorInfo::getDistance | ( | double | a_detHalfLength | ) | const |
distance in m. detLength in m
double DetectorInfo::getDistance | ( | float | a_thisDetHalfL, |
float | a_rhsHalfL, | ||
DetectorInfo & | a_rhs | ||
) |
this function returns the distance from the center points of the detectors the HalfL variables specify the offset of the detector location along the rotation axis to reach the center of the cell
std::vector< double > DetectorInfo::getLocation | ( | double | a_stepLenght | ) | const |
this function returns an offset into the detector by the specified length along the specified rotation vector returning the point within
double DetectorInfo::getrX | ( | ) | const |
double DetectorInfo::getrY | ( | ) | const |
double DetectorInfo::getrZ | ( | ) | const |
double DetectorInfo::getScatteringAngle | ( | double | a_bx, |
double | a_by, | ||
double | a_bz, | ||
double | a_sx, | ||
double | a_sy, | ||
double | a_sz | ||
) |
given an incident beam direction and a location through which the a particle has scattered this returns the azimuthal angle the ith component of incident particles direction is given by a_bi the scattering location is given by a_si
double DetectorInfo::getSourceScatteringAngle | ( | double | a_sx, |
double | a_sy, | ||
double | a_sz, | ||
DetectorInfo & | a_rhs | ||
) |
given a source location specified by a_si this function returns the scattering angle through wich a particle emitted from the source must have scattered to result in this location
given a source location specified by a_si this function returns the scattering angle through which a particle emitted from the source must have scatterd to result in this location
double DetectorInfo::getX | ( | ) | const |
double DetectorInfo::getY | ( | ) | const |
double DetectorInfo::getZ | ( | ) | const |
|
virtual |
Reimplemented in CloverInfo, MultiPMTOrgScintInfo, OrgScintInfo, and DetectorElementInfo.
void DetectorInfo::setDetectorID | ( | int | a_detectorID | ) |
void DetectorInfo::setDetectorLength | ( | double | a_detLength | ) |
void DetectorInfo::setDetType | ( | DetType | a_detType | ) |
void DetectorInfo::setrX | ( | double | a_rX | ) |
void DetectorInfo::setrY | ( | double | a_rY | ) |
void DetectorInfo::setrZ | ( | double | a_rZ | ) |
void DetectorInfo::setX | ( | double | a_x | ) |
void DetectorInfo::setY | ( | double | a_y | ) |
void DetectorInfo::setZ | ( | double | a_z | ) |
|
virtual |
Reimplemented in CloverInfo, and MultiPMTOrgScintInfo.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |