Berkeley Nuclear Data Software
|
this class is inteded to represent of full set of information More...
#include <ConfigClasses.h>
Public Member Functions | |
CloverInfo () | |
CloverInfo (const CloverInfo &a_rhs) | |
CloverInfo & | operator= (const CloverInfo &a_rhs) |
void | addLeafInfo (DetectorElementInfo a_leaf) |
void | addBGOInfo (DetectorElementInfo a_leaf) |
int | getLeafNumber (int a_channel) const |
int | getChFromLeaf (int a_leafNumber) const |
int | getBGONumber (int a_channel) const |
int | getChFromBGONumber (int a_BGO) const |
const DetectorElementInfo & | getDetElInfo (int a_modID, int a_ch) const |
const DetectorElementInfo & | getLeafInfo (int a_leafID) const |
std::vector< int > | getLeafIdList () const |
int | getDetID () const |
std::vector< int > | getBGOInputs () const |
const DetectorCalib * | getCalibFromLeafID (int a_leafID) const |
const DetectorCalib * | getCalibFromLeafCh (int a_channel) const |
const DetectorCalib * | getTCalibFromLeafCh (int a_channel) const |
const DetectorCalib * | getTCalibFromLeafID (int a_leafID) const |
const CutBase * | getLeafTDCCut () const |
const CutBase * | getBgoTDCCut () const |
const CutBase * | getaddBackCut () const |
void | setLeafTDCCut (CutBase *a_cut) |
void | setBgoTDCCut (CutBase *a_cut) |
void | setAddBackEnCut (CutBase *a_cut) |
void | setWallTime (uint32_t a_t) |
void | translate (double a_x, double a_y, double a_z) |
std::vector< double > | getCenterPosition () |
returns position of center of clover face (avg. of the leafs) More... | |
std::vector< double > | getLeafNormalVector (int a_leaf) |
returns the normal vector from a leaf More... | |
std::vector< double > | getLeafPositionVector (int a_leaf) |
return the position of a leaf More... | |
std::vector< int > | getChannels () |
returns a vector with all the channels associated with this clover More... | |
bool | hasChannel (int a_ch) const |
returns trues if the channel is present in the data More... | |
bool | thisClover (int a_modID, int a_ch) const |
returns true if the channel and module are associated with this detector More... | |
bool | isLeaf (int a_modID, int a_ch) const |
returns true if the channel and moduel id are a leaf More... | |
bool | isBGO (int a_modID, int a_ch) const |
returns true if the channel and module id are a BGO More... | |
double | getLeafPolarAngle (int a_leafNumber) |
returns polar angle of individual leaf [in radians] More... | |
double | getLeafDistance (int a_leafNumber) |
return distance of individual leaf [in meters] More... | |
double | getLeafDistToOrig (int a_leafNumber, double a_detLength) const |
returns distance to center of leaf More... | |
bool | hasBGOChannel (int a_ch) const |
std::ostream & | print (std::ostream &a_stream=std::cout) const |
prints the internal state of the class More... | |
std::ostream & | printRot (std::ostream &a_stream=std::cout) const |
virtual | ~CloverInfo () |
Public Member Functions inherited from DetectorInfo | |
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) |
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 | ~DetectorInfo () |
Friends | |
class | ExperimentConfig |
Additional Inherited Members | |
Protected Attributes inherited from DetectorInfo | |
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 inteded to represent of full set of information
CloverInfo::CloverInfo | ( | ) |
CloverInfo::CloverInfo | ( | const CloverInfo & | a_rhs | ) |
|
virtual |
void CloverInfo::addBGOInfo | ( | DetectorElementInfo | a_leaf | ) |
void CloverInfo::addLeafInfo | ( | DetectorElementInfo | a_leaf | ) |
const CutBase * CloverInfo::getaddBackCut | ( | ) | const |
std::vector< int > CloverInfo::getBGOInputs | ( | ) | const |
int CloverInfo::getBGONumber | ( | int | a_channel | ) | const |
const CutBase * CloverInfo::getBgoTDCCut | ( | ) | const |
const DetectorCalib * CloverInfo::getCalibFromLeafCh | ( | int | a_channel | ) | const |
const DetectorCalib * CloverInfo::getCalibFromLeafID | ( | int | a_leafID | ) | const |
std::vector< double > CloverInfo::getCenterPosition | ( | ) |
returns position of center of clover face (avg. of the leafs)
std::vector< int > CloverInfo::getChannels | ( | ) |
returns a vector with all the channels associated with this clover
int CloverInfo::getChFromBGONumber | ( | int | a_BGO | ) | const |
int CloverInfo::getChFromLeaf | ( | int | a_leafNumber | ) | const |
const DetectorElementInfo & CloverInfo::getDetElInfo | ( | int | a_modID, |
int | a_ch | ||
) | const |
int CloverInfo::getDetID | ( | ) | const |
double CloverInfo::getLeafDistance | ( | int | a_leafNumber | ) |
return distance of individual leaf [in meters]
double CloverInfo::getLeafDistToOrig | ( | int | a_leafNumber, |
double | a_detLength | ||
) | const |
returns distance to center of leaf
std::vector< int > CloverInfo::getLeafIdList | ( | ) | const |
const DetectorElementInfo & CloverInfo::getLeafInfo | ( | int | a_leafID | ) | const |
std::vector< double > CloverInfo::getLeafNormalVector | ( | int | a_leaf | ) |
returns the normal vector from a leaf
int CloverInfo::getLeafNumber | ( | int | a_channel | ) | const |
double CloverInfo::getLeafPolarAngle | ( | int | a_leafNumber | ) |
returns polar angle of individual leaf [in radians]
std::vector< double > CloverInfo::getLeafPositionVector | ( | int | a_leaf | ) |
return the position of a leaf
const CutBase * CloverInfo::getLeafTDCCut | ( | ) | const |
const DetectorCalib * CloverInfo::getTCalibFromLeafCh | ( | int | a_channel | ) | const |
const DetectorCalib * CloverInfo::getTCalibFromLeafID | ( | int | a_leafID | ) | const |
bool CloverInfo::hasBGOChannel | ( | int | a_ch | ) | const |
bool CloverInfo::hasChannel | ( | int | a_ch | ) | const |
returns trues if the channel is present in the data
returns trues if the channel is present in the data THIS FUNCTION IS DEGENERATE IN THAT IT DOESN'T SPECIFY A MODULE AND SHOULD BE DEPRICATED
bool CloverInfo::isBGO | ( | int | a_modID, |
int | a_ch | ||
) | const |
returns true if the channel and module id are a BGO
bool CloverInfo::isLeaf | ( | int | a_modID, |
int | a_ch | ||
) | const |
returns true if the channel and moduel id are a leaf
CloverInfo & CloverInfo::operator= | ( | const CloverInfo & | a_rhs | ) |
|
virtual |
prints the internal state of the class
Reimplemented from DetectorInfo.
std::ostream & CloverInfo::printRot | ( | std::ostream & | a_stream = std::cout | ) | const |
this function calculates the rotation vector considering the points associated with the locations stored for the leafs
void CloverInfo::setAddBackEnCut | ( | CutBase * | a_cut | ) |
void CloverInfo::setBgoTDCCut | ( | CutBase * | a_cut | ) |
void CloverInfo::setLeafTDCCut | ( | CutBase * | a_cut | ) |
void CloverInfo::setWallTime | ( | uint32_t | a_t | ) |
bool CloverInfo::thisClover | ( | int | a_modID, |
int | a_ch | ||
) | const |
returns true if the channel and module are associated with this detector
|
virtual |
Reimplemented from DetectorInfo.
|
friend |