StFms  0.0.0
FMS software in the STAR framework
StMuFmsPoint Class Reference

#include <StMuFmsPoint.h>

Inheritance diagram for StMuFmsPoint:
Collaboration diagram for StMuFmsPoint:

Public Member Functions

 StMuFmsPoint (int detectorId=0, float energy=0.f, float x=0.f, float y=0.f, float z=0.f)
 
 StMuFmsPoint (const StFmsPoint &)
 
virtual ~StMuFmsPoint ()
 
UShort_t detectorId () const
 
float energy () const
 
float x () const
 
float y () const
 
float z () const
 
TVector3 xyz () const
 
TVector3 momentum (float m=0.f) const
 
TLorentzVector fourMomentum (float m=0.f) const
 
StMuFmsClustercluster ()
 
const StMuFmsClustercluster () const
 
void setDetectorId (UShort_t detector)
 
void setEnergy (float energy)
 
void setX (float x)
 
void setY (float y)
 
void setZ (float z)
 
void set (const StFmsPoint &)
 
void setCluster (StMuFmsCluster *cluster)
 

Protected Attributes

UShort_t mDetectorId
 Detector ID as defined in database. More...
 
Float_t mEnergy
 Total energy contained in the point. More...
 
Float_t mX
 Mean x ("center of gravity") More...
 
Float_t mY
 Mean y ("center of gravity") More...
 
Float_t mZ
 z at front face of sub-detector More...
 
TRef mCluster
 Parent cluster of this photon. More...
 

Private Member Functions

 StMuFmsPoint (const StMuFmsPoint &)
 
StMuFmsPointoperator= (const StMuFmsPoint &)
 

Detailed Description

Micro-DST FMS "point" class.

Describes a "point" - the energy deposited by a single particle in a cluster. One or more points may be form a cluster of adjacent towers in the FMS.

Maintains a persistent reference to the cluster formed by the point. The cluster is owned by the relevant TClonesArray in the micro-DST, not StMuFmsPoint, and should not be deleted.

Definition at line 32 of file StMuFmsPoint.h.

Constructor & Destructor Documentation

StMuFmsPoint::StMuFmsPoint ( int  detectorId = 0,
float  energy = 0.f,
float  x = 0.f,
float  y = 0.f,
float  z = 0.f 
)

Constructor.

Definition at line 19 of file StMuFmsPoint.cxx.

StMuFmsPoint::StMuFmsPoint ( const StFmsPoint point)
explicit

Construct from the equivalent StEvent point structure.

Definition at line 23 of file StMuFmsPoint.cxx.

Here is the call graph for this function:

StMuFmsPoint::~StMuFmsPoint ( )
virtual

Destructor.

Definition at line 27 of file StMuFmsPoint.cxx.

StMuFmsPoint::StMuFmsPoint ( const StMuFmsPoint )
private

Disallow copy construction.

Duplication should only be done via Clone().

Member Function Documentation

StMuFmsCluster * StMuFmsPoint::cluster ( )

Parent cluster of this photon (NULL if not known).

Definition at line 44 of file StMuFmsPoint.cxx.

Here is the caller graph for this function:

const StMuFmsCluster * StMuFmsPoint::cluster ( ) const

Parent cluster of this photon (NULL if not known).

Definition at line 48 of file StMuFmsPoint.cxx.

UShort_t StMuFmsPoint::detectorId ( ) const
inline

ID of the sub-detector with which the point is associated.

Definition at line 42 of file StMuFmsPoint.h.

Here is the caller graph for this function:

float StMuFmsPoint::energy ( ) const
inline

Total point energy.

Definition at line 44 of file StMuFmsPoint.h.

Here is the caller graph for this function:

TLorentzVector StMuFmsPoint::fourMomentum ( float  m = 0.f) const

(px, py, pz, E) of point. See also comments for momentum().

Definition at line 40 of file StMuFmsPoint.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

TVector3 StMuFmsPoint::momentum ( float  m = 0.f) const

(px, py, pz) of point.

Assumes some mass, which must be <= energy.

Definition at line 29 of file StMuFmsPoint.cxx.

Here is the caller graph for this function:

StMuFmsPoint& StMuFmsPoint::operator= ( const StMuFmsPoint )
private

Disallow assignment.

Duplication should only be done via Clone().

void StMuFmsPoint::set ( const StFmsPoint point)

Set properties from an StFmsPoint.

Definition at line 52 of file StMuFmsPoint.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuFmsPoint::setCluster ( StMuFmsCluster cluster)

Set parent cluster of this photon.

Definition at line 63 of file StMuFmsPoint.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void StMuFmsPoint::setDetectorId ( UShort_t  detector)
inline

Set ID of the sub-detector with which the point is associated.

Definition at line 66 of file StMuFmsPoint.h.

void StMuFmsPoint::setEnergy ( float  energy)
inline

Set total point energy (sum over towers).

Definition at line 68 of file StMuFmsPoint.h.

Here is the call graph for this function:

void StMuFmsPoint::setX ( float  x)
inline

Set x "center of gravity" of the point.

Definition at line 70 of file StMuFmsPoint.h.

Here is the call graph for this function:

void StMuFmsPoint::setY ( float  y)
inline

Set y "center of gravity" of the point.

Definition at line 72 of file StMuFmsPoint.h.

Here is the call graph for this function:

void StMuFmsPoint::setZ ( float  z)
inline

Set z position of front face of sub-detector (cm).

Definition at line 74 of file StMuFmsPoint.h.

Here is the call graph for this function:

float StMuFmsPoint::x ( ) const
inline

x "center of gravity" of the point (cm).

Definition at line 46 of file StMuFmsPoint.h.

Here is the caller graph for this function:

TVector3 StMuFmsPoint::xyz ( ) const
inline

(x, y, z) position of point at sub-detector face.

Definition at line 52 of file StMuFmsPoint.h.

float StMuFmsPoint::y ( ) const
inline

y "center of gravity" of the point (cm).

Definition at line 48 of file StMuFmsPoint.h.

Here is the caller graph for this function:

float StMuFmsPoint::z ( ) const
inline

z position of front face of sub-detector (cm).

Definition at line 50 of file StMuFmsPoint.h.

Here is the caller graph for this function:

Member Data Documentation

TRef StMuFmsPoint::mCluster
protected

Parent cluster of this photon.

Definition at line 86 of file StMuFmsPoint.h.

UShort_t StMuFmsPoint::mDetectorId
protected

Detector ID as defined in database.

Definition at line 81 of file StMuFmsPoint.h.

Float_t StMuFmsPoint::mEnergy
protected

Total energy contained in the point.

Definition at line 82 of file StMuFmsPoint.h.

Float_t StMuFmsPoint::mX
protected

Mean x ("center of gravity")

Definition at line 83 of file StMuFmsPoint.h.

Float_t StMuFmsPoint::mY
protected

Mean y ("center of gravity")

Definition at line 84 of file StMuFmsPoint.h.

Float_t StMuFmsPoint::mZ
protected

z at front face of sub-detector

Definition at line 85 of file StMuFmsPoint.h.


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