StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttPoint.cxx
1 /***************************************************************************
2  *
3  * StFttPoint.cxx
4  *
5  * Author: jdb 2021
6  ***************************************************************************
7  *
8  * Description: Implementation of StFttPoint, the StEvent point structure
9  *
10  ***************************************************************************/
11 #include "StFttPoint.h"
12 #include "St_base/StMessMgr.h"
13 
14 
15 StFttPoint::StFttPoint() : StObject(), mClusters{0,0,0,0} { /* no op */ }
16 
17 StFttPoint::~StFttPoint() { /* no op */ }
18 
19 void StFttPoint::print(int opt) {
20 }
21 
22 
23 int StFttPoint::nClusters() const {
24  int n = 0;
25  for ( size_t i = 0; i < 4; i++ ){
26  if ( mClusters[i] != nullptr )
27  n++;
28  }
29  return n;
30 }