StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StFttCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StFttCollection.cxx,v 2.1 2021/01/11 20:25:37 ullrich Exp $
4  *
5  * Author: Akio Ogawa, 2018 Aug
6  ***************************************************************************
7  *
8  * Description: Collection of all hits (towers), clusters and
9  * points (photons) in the Ftt
10  *
11  ***************************************************************************
12  *
13  * $Log: StFttCollection.cxx,v $
14  * Revision 2.1 2021/01/11 20:25:37 ullrich
15  * Initial Revision
16  *
17  **************************************************************************/
18 #include "StEvent/StFttCollection.h"
19 
20 #include "StEvent/StFttRawHit.h"
21 #include "StEvent/StFttCluster.h"
22 #include "StEvent/StFttPoint.h"
23 
24 ClassImp(StFttCollection)
25 
26 StFttCollection::StFttCollection() {/* no operation*/}
27 
28 StFttCollection::~StFttCollection() {/* no operation */}
29 
30 void StFttCollection::addRawHit(StFttRawHit* hit){mRawHits.push_back(hit);}
31 StSPtrVecFttRawHit& StFttCollection::rawHits() {return mRawHits;}
32 const StSPtrVecFttRawHit& StFttCollection::rawHits() const {return mRawHits;}
33 unsigned int StFttCollection::numberOfRawHits() const { return mRawHits.size(); }
34 
35 void StFttCollection::addCluster(StFttCluster* cluster){mClusters.push_back(cluster);}
36 StSPtrVecFttCluster& StFttCollection::clusters() {return mClusters;}
37 const StSPtrVecFttCluster& StFttCollection::clusters() const {return mClusters;}
38 unsigned int StFttCollection::numberOfClusters() const { return mClusters.size(); }
39 
40 void StFttCollection::addPoint(StFttPoint* point){mPoints.push_back(point);}
41 StSPtrVecFttPoint& StFttCollection::points() {return mPoints;}
42 const StSPtrVecFttPoint& StFttCollection::points() const {return mPoints;}
43 unsigned int StFttCollection::numberOfPoints() const { return mPoints.size(); }
44 
45 void StFttCollection::print(int option) {
46  cout << " *** Print Ftt collection *** " << endl;
47 }
48