StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
FMSCluster::StFmsEventClusterer Class Reference

#include <StFmsEventClusterer.h>

Inheritance diagram for FMSCluster::StFmsEventClusterer:

Public Member Functions

 StFmsEventClusterer (StFmsDbMaker *db, Int_t detectorId, Int_t globalrefit, Int_t mergeSmallToLarge, Int_t try1Photon, Int_t categorizationAlgo, Float_t scaleShowerShapeLarge, Float_t scaleShowerShapeSmall, Int_t showerShapeWithAngle, double vertexz)
 
 ~StFmsEventClusterer ()
 
int detector () const
 
Bool_t cluster (std::vector< FMSCluster::StFmsTower > *towers)
 
ClusterList & clusters ()
 
const ClusterList & clusters () const
 

Detailed Description

Performs clustering and photon-fitting for a single detector and event.

Clusters towers in a single sub-detector and performs photon shower-shape fitting on all the formed clusters.

Definition at line 65 of file StFmsEventClusterer.h.

Constructor & Destructor Documentation

FMSCluster::StFmsEventClusterer::StFmsEventClusterer ( StFmsDbMaker db,
Int_t  detectorId,
Int_t  globalrefit,
Int_t  mergeSmallToLarge,
Int_t  try1Photon,
Int_t  categorizationAlgo,
Float_t  scaleShowerShapeLarge,
Float_t  scaleShowerShapeSmall,
Int_t  showerShapeWithAngle,
double  vertexz 
)

Constructor.

Clustering is done per sub-detector, so initialize with the detector ID and FMS geometry information. The geometry object is not owned by StFmsEventClusterer.

See FMSCluster::StFmsDetectorId for valid detector IDs.

Definition at line 320 of file StFmsEventClusterer.cxx.

FMSCluster::StFmsEventClusterer::~StFmsEventClusterer ( )

Destructor.

Definition at line 332 of file StFmsEventClusterer.cxx.

Member Function Documentation

Bool_t FMSCluster::StFmsEventClusterer::cluster ( std::vector< FMSCluster::StFmsTower > *  towers)

Perform cluster-finding and photon-fitting on a list of towers.

Returns true if photon fits to all clusters succeed, or false if one or more clusters have a photon fit with a chi-square exceeding the maximum allowed value.

Todo:
Test of number of towers should be detector-dependent

Definition at line 334 of file StFmsEventClusterer.cxx.

References StFmsDbMaker::getXWidth(), and StFmsDbMaker::getYWidth().

ClusterList& FMSCluster::StFmsEventClusterer::clusters ( )
inline

Returns the list of clusters in this detector for the event.

Definition at line 101 of file StFmsEventClusterer.h.

const ClusterList& FMSCluster::StFmsEventClusterer::clusters ( ) const
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 103 of file StFmsEventClusterer.h.

int FMSCluster::StFmsEventClusterer::detector ( ) const
inline

Returns the ID of the detector for which clustering is being performed.

See FMSCluster::StFmsDetectorId for valid detector IDs.

Definition at line 90 of file StFmsEventClusterer.h.


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