Berkeley Nuclear Data Software
Public Member Functions | Friends | List of all members
CloverInfo Class Reference

this class is inteded to represent of full set of information More...

#include <ConfigClasses.h>

Inheritance diagram for CloverInfo:
Inheritance graph
[legend]
Collaboration diagram for CloverInfo:
Collaboration graph
[legend]

Public Member Functions

 CloverInfo ()
 
 CloverInfo (const CloverInfo &a_rhs)
 
CloverInfooperator= (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 DetectorElementInfogetDetElInfo (int a_modID, int a_ch) const
 
const DetectorElementInfogetLeafInfo (int a_leafID) const
 
std::vector< int > getLeafIdList () const
 
int getDetID () const
 
std::vector< int > getBGOInputs () const
 
const DetectorCalibgetCalibFromLeafID (int a_leafID) const
 
const DetectorCalibgetCalibFromLeafCh (int a_channel) const
 
const DetectorCalibgetTCalibFromLeafCh (int a_channel) const
 
const DetectorCalibgetTCalibFromLeafID (int a_leafID) const
 
const CutBasegetLeafTDCCut () const
 
const CutBasegetBgoTDCCut () const
 
const CutBasegetaddBackCut () 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
 

Detailed Description

this class is inteded to represent of full set of information

Constructor & Destructor Documentation

◆ CloverInfo() [1/2]

CloverInfo::CloverInfo ( )

◆ CloverInfo() [2/2]

CloverInfo::CloverInfo ( const CloverInfo a_rhs)
Here is the call graph for this function:

◆ ~CloverInfo()

CloverInfo::~CloverInfo ( )
virtual

Member Function Documentation

◆ addBGOInfo()

void CloverInfo::addBGOInfo ( DetectorElementInfo  a_leaf)
Here is the caller graph for this function:

◆ addLeafInfo()

void CloverInfo::addLeafInfo ( DetectorElementInfo  a_leaf)
Here is the caller graph for this function:

◆ getaddBackCut()

const CutBase * CloverInfo::getaddBackCut ( ) const
Here is the caller graph for this function:

◆ getBGOInputs()

std::vector< int > CloverInfo::getBGOInputs ( ) const
Here is the caller graph for this function:

◆ getBGONumber()

int CloverInfo::getBGONumber ( int  a_channel) const
Here is the caller graph for this function:

◆ getBgoTDCCut()

const CutBase * CloverInfo::getBgoTDCCut ( ) const
Here is the caller graph for this function:

◆ getCalibFromLeafCh()

const DetectorCalib * CloverInfo::getCalibFromLeafCh ( int  a_channel) const

◆ getCalibFromLeafID()

const DetectorCalib * CloverInfo::getCalibFromLeafID ( int  a_leafID) const
Here is the caller graph for this function:

◆ getCenterPosition()

std::vector< double > CloverInfo::getCenterPosition ( )

returns position of center of clover face (avg. of the leafs)

Here is the caller graph for this function:

◆ getChannels()

std::vector< int > CloverInfo::getChannels ( )

returns a vector with all the channels associated with this clover

Here is the caller graph for this function:

◆ getChFromBGONumber()

int CloverInfo::getChFromBGONumber ( int  a_BGO) const

◆ getChFromLeaf()

int CloverInfo::getChFromLeaf ( int  a_leafNumber) const
Here is the caller graph for this function:

◆ getDetElInfo()

const DetectorElementInfo & CloverInfo::getDetElInfo ( int  a_modID,
int  a_ch 
) const

◆ getDetID()

int CloverInfo::getDetID ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLeafDistance()

double CloverInfo::getLeafDistance ( int  a_leafNumber)

return distance of individual leaf [in meters]

◆ getLeafDistToOrig()

double CloverInfo::getLeafDistToOrig ( int  a_leafNumber,
double  a_detLength 
) const

returns distance to center of leaf

◆ getLeafIdList()

std::vector< int > CloverInfo::getLeafIdList ( ) const
Here is the caller graph for this function:

◆ getLeafInfo()

const DetectorElementInfo & CloverInfo::getLeafInfo ( int  a_leafID) const
Here is the caller graph for this function:

◆ getLeafNormalVector()

std::vector< double > CloverInfo::getLeafNormalVector ( int  a_leaf)

returns the normal vector from a leaf

◆ getLeafNumber()

int CloverInfo::getLeafNumber ( int  a_channel) const
Here is the caller graph for this function:

◆ getLeafPolarAngle()

double CloverInfo::getLeafPolarAngle ( int  a_leafNumber)

returns polar angle of individual leaf [in radians]

◆ getLeafPositionVector()

std::vector< double > CloverInfo::getLeafPositionVector ( int  a_leaf)

return the position of a leaf

Here is the caller graph for this function:

◆ getLeafTDCCut()

const CutBase * CloverInfo::getLeafTDCCut ( ) const
Here is the caller graph for this function:

◆ getTCalibFromLeafCh()

const DetectorCalib * CloverInfo::getTCalibFromLeafCh ( int  a_channel) const

◆ getTCalibFromLeafID()

const DetectorCalib * CloverInfo::getTCalibFromLeafID ( int  a_leafID) const
Here is the caller graph for this function:

◆ hasBGOChannel()

bool CloverInfo::hasBGOChannel ( int  a_ch) const

◆ hasChannel()

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

Here is the caller graph for this function:

◆ isBGO()

bool CloverInfo::isBGO ( int  a_modID,
int  a_ch 
) const

returns true if the channel and module id are a BGO

Here is the caller graph for this function:

◆ isLeaf()

bool CloverInfo::isLeaf ( int  a_modID,
int  a_ch 
) const

returns true if the channel and moduel id are a leaf

Here is the caller graph for this function:

◆ operator=()

CloverInfo & CloverInfo::operator= ( const CloverInfo a_rhs)
Here is the call graph for this function:

◆ print()

std::ostream & CloverInfo::print ( std::ostream &  a_stream = std::cout) const
virtual

prints the internal state of the class

Reimplemented from DetectorInfo.

Here is the caller graph for this function:

◆ printRot()

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

Here is the call graph for this function:

◆ setAddBackEnCut()

void CloverInfo::setAddBackEnCut ( CutBase a_cut)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setBgoTDCCut()

void CloverInfo::setBgoTDCCut ( CutBase a_cut)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLeafTDCCut()

void CloverInfo::setLeafTDCCut ( CutBase a_cut)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWallTime()

void CloverInfo::setWallTime ( uint32_t  a_t)

◆ thisClover()

bool CloverInfo::thisClover ( int  a_modID,
int  a_ch 
) const

returns true if the channel and module are associated with this detector

Here is the caller graph for this function:

◆ translate()

void CloverInfo::translate ( double  a_x,
double  a_y,
double  a_z 
)
virtual

Reimplemented from DetectorInfo.

Friends And Related Function Documentation

◆ ExperimentConfig

friend class ExperimentConfig
friend

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