StFms
0.0.0
FMS software in the STAR framework
|
#include <StMuFmsPoint.h>
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 |
StMuFmsCluster * | cluster () |
const StMuFmsCluster * | cluster () 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 &) | |
StMuFmsPoint & | operator= (const StMuFmsPoint &) |
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.
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.
|
explicit |
Construct from the equivalent StEvent point structure.
Definition at line 23 of file StMuFmsPoint.cxx.
|
virtual |
Destructor.
Definition at line 27 of file StMuFmsPoint.cxx.
|
private |
Disallow copy construction.
Duplication should only be done via Clone().
StMuFmsCluster * StMuFmsPoint::cluster | ( | ) |
Parent cluster of this photon (NULL if not known).
Definition at line 44 of file StMuFmsPoint.cxx.
const StMuFmsCluster * StMuFmsPoint::cluster | ( | ) | const |
Parent cluster of this photon (NULL if not known).
Definition at line 48 of file StMuFmsPoint.cxx.
|
inline |
ID of the sub-detector with which the point is associated.
Definition at line 42 of file StMuFmsPoint.h.
|
inline |
Total point energy.
Definition at line 44 of file StMuFmsPoint.h.
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.
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.
|
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.
void StMuFmsPoint::setCluster | ( | StMuFmsCluster * | cluster | ) |
Set parent cluster of this photon.
Definition at line 63 of file StMuFmsPoint.cxx.
|
inline |
Set ID of the sub-detector with which the point is associated.
Definition at line 66 of file StMuFmsPoint.h.
|
inline |
Set total point energy (sum over towers).
Definition at line 68 of file StMuFmsPoint.h.
|
inline |
Set x "center of gravity" of the point.
Definition at line 70 of file StMuFmsPoint.h.
|
inline |
Set y "center of gravity" of the point.
Definition at line 72 of file StMuFmsPoint.h.
|
inline |
Set z position of front face of sub-detector (cm).
Definition at line 74 of file StMuFmsPoint.h.
|
inline |
x "center of gravity" of the point (cm).
Definition at line 46 of file StMuFmsPoint.h.
|
inline |
(x, y, z) position of point at sub-detector face.
Definition at line 52 of file StMuFmsPoint.h.
|
inline |
y "center of gravity" of the point (cm).
Definition at line 48 of file StMuFmsPoint.h.
|
inline |
z position of front face of sub-detector (cm).
Definition at line 50 of file StMuFmsPoint.h.
|
protected |
Parent cluster of this photon.
Definition at line 86 of file StMuFmsPoint.h.
|
protected |
Detector ID as defined in database.
Definition at line 81 of file StMuFmsPoint.h.
|
protected |
Total energy contained in the point.
Definition at line 82 of file StMuFmsPoint.h.
|
protected |
Mean x ("center of gravity")
Definition at line 83 of file StMuFmsPoint.h.
|
protected |
Mean y ("center of gravity")
Definition at line 84 of file StMuFmsPoint.h.
|
protected |
z at front face of sub-detector
Definition at line 85 of file StMuFmsPoint.h.