StRoot
1
|
#include <StFmsTowerCluster.h>
Public Types | |
typedef std::list< StFmsTower * > | Towers |
Shorthand for tower collection. | |
typedef std::vector < StFmsFittedPhoton > | Photons |
Public Member Functions | |
StFmsTowerCluster (StFmsCluster *cluster, Int_t detectorId) | |
virtual | ~StFmsTowerCluster () |
void | Clear (const char *optionNotUsed="") |
void | calculateClusterMoments (Double_t energyCutoff) |
void | findClusterAxis (Double_t Ecoff, Double_t xwidth, Double_t ywidth) |
Int_t | index () const |
void | setIndex (Int_t index) |
Int_t | detectorId () const |
double | etot () const |
double | sigmaX () const |
double | sigmaY () const |
double | sigmaXY () const |
Double_t | thetaAxis () const |
Double_t | chiSquare () const |
Double_t | chiSquare1 () const |
Double_t | chiSquare2 () const |
void | setChiSquare (Double_t chi2) |
void | setChiSquare1 (Double_t chi2) |
void | setChiSquare2 (Double_t chi2) |
double | energyCutoff () const |
Towers & | towers () |
const Towers & | towers () const |
Photons & | photons () |
const Photons & | photons () const |
StFmsCluster * | cluster () |
const StFmsCluster * | cluster () const |
StFmsCluster * | release () |
Protected Member Functions | |
void | findClusterAxis (Double_t xwidth, Double_t ywidth) |
Double_t | getSigma (Double_t theta, Double_t xwidth, Double_t ywidth) |
Protected Attributes | |
Int_t | mIndex |
cluster number in an event, counts from 0 | |
Int_t | mDetectorId |
Float_t | mEtot |
Double_t | mSigmaX |
2nd moment in x | |
Double_t | mSigmaY |
2nd moment in y | |
Double_t | mSigmaXY |
2nd moment in x-y | |
Double_t | mThetaAxis |
of least-2nd-sigma axis More... | |
Double_t | mChiSquare |
Chi-square of the fitting. | |
Double_t | mChiSquare1 |
Chi-square of the fitting 1 photon. | |
Double_t | mChiSquare2 |
Chi-square of the fitting 2 photon. | |
Double_t | mEnergyCutoff |
Cutoff on towers to use in moment calculations. | |
Towers | mTowers |
Towers that make the cluster. | |
std::unique_ptr< StFmsCluster > | mCluster |
Pointer to StEvent cluster. | |
Photons | mPhotons |
Photons in cluster. | |
A cluster of FMS towers.
This is an elaborated version of the simple StFmsCluster class, storing extra information needed during the clustering process.
The StFmsTower objects in its towers() list are not owned by the StFmsTowerCluster, so those towers must have a longer lifetime than it. The user must also take responsibility for deleting them if they are dynamically allocated.
Definition at line 58 of file StFmsTowerCluster.h.
|
explicit |
Constructor.
Initialise with a dynamically allocated StFmsCluster. The StFmsTowerCluster owns the StFmsCluster until the release() method is called, after which the StFmsTowerCluster no longer references a cluster and should not be used any longer.
Definition at line 51 of file StFmsTowerCluster.cxx.
|
virtual |
Destructor
Definition at line 56 of file StFmsTowerCluster.cxx.
void FMSCluster::StFmsTowerCluster::calculateClusterMoments | ( | Double_t | energyCutoff | ) |
Calculate cluster moments (mean and sigma of tower (x, y) position).
Ignore towers below the energy cutoff.
Definition at line 64 of file StFmsTowerCluster.cxx.
References FMSCluster::StFmsTower::column(), FMSCluster::StFmsTower::hit(), mCluster, mEnergyCutoff, mSigmaX, mSigmaXY, mSigmaY, mTowers, and FMSCluster::StFmsTower::row().
Referenced by FMSCluster::StFmsClusterFinder::calculateClusterMoments().
|
inline |
Return the χ2 of the photon fit for this cluster.
Definition at line 108 of file StFmsTowerCluster.h.
References mChiSquare.
|
inline |
Return the StEvent cluster structure.
Definition at line 126 of file StFmsTowerCluster.h.
References mCluster.
Referenced by FMSCluster::StFmsClusterFinder::calculateClusterMoments(), FMSCluster::StFmsClusterFinder::categorise(), and FMSCluster::TowerClusterAssociation::separation().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 128 of file StFmsTowerCluster.h.
References mCluster.
|
inline |
Return detectorId .
Definition at line 96 of file StFmsTowerCluster.h.
|
inline |
Cutoff on towers to use in moment calculations.
Definition at line 116 of file StFmsTowerCluster.h.
References mEnergyCutoff.
|
inline |
total energy
Definition at line 98 of file StFmsTowerCluster.h.
|
inline |
Determine cluster axis.
Also sets energy cutoff for cluster moments.
Definition at line 87 of file StFmsTowerCluster.h.
References mEnergyCutoff.
|
protected |
Determine cluster axis.
Definition at line 110 of file StFmsTowerCluster.cxx.
References getSigma(), mCluster, mSigmaX, mSigmaXY, mSigmaY, and mThetaAxis.
|
protected |
Calculate sigma w.r.t the axis going through the "center" and of an angle "theta" in x-y plane.
Definition at line 133 of file StFmsTowerCluster.cxx.
References FMSCluster::StFmsTower::column(), FMSCluster::StFmsTower::hit(), mCluster, mEnergyCutoff, mTowers, FMSCluster::StFmsTower::row(), and FMSCluster::StFmsTower::setXY().
Referenced by findClusterAxis().
|
inline |
Return the index of this cluster in the event.
Definition at line 92 of file StFmsTowerCluster.h.
References mIndex.
Referenced by FMSCluster::TowerClusterAssociation::associate(), and setIndex().
|
inline |
Return the array of photons creating this cluster.
Definition at line 122 of file StFmsTowerCluster.h.
References mPhotons.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 124 of file StFmsTowerCluster.h.
References mPhotons.
StFmsCluster * FMSCluster::StFmsTowerCluster::release | ( | ) |
Return and give up ownership of the StEvent cluster structure.
Definition at line 176 of file StFmsTowerCluster.cxx.
References mChiSquare1, mChiSquare2, and mCluster.
|
inline |
Set the χ2 of the photon fit for this cluster.
Definition at line 112 of file StFmsTowerCluster.h.
References mChiSquare.
|
inline |
Sets the index of this cluster in the event.
Definition at line 94 of file StFmsTowerCluster.h.
|
inline |
|
inline |
|
inline |
|
inline |
Angle in x-y plane that defines the direction of least-2nd-sigma axis.
Definition at line 106 of file StFmsTowerCluster.h.
References mThetaAxis.
|
inline |
Return the list of towers in this cluster.
Definition at line 118 of file StFmsTowerCluster.h.
References mTowers.
Referenced by FMSCluster::StFmsClusterFinder::calculateClusterMoments(), FMSCluster::TowerClusterAssociation::canAssociate(), and FMSCluster::TowerClusterAssociation::separation().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 120 of file StFmsTowerCluster.h.
References mTowers.
|
protected |
of least-2nd-sigma axis
theta angle in x-y plane that define the direction
Definition at line 144 of file StFmsTowerCluster.h.
Referenced by findClusterAxis(), and thetaAxis().