StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcClusterCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StEmcClusterCollection.cxx,v 2.3 2001/04/05 04:00:47 ullrich Exp $
4  *
5  * Author: Akio Ogawa, Jan 2000
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StEmcClusterCollection.cxx,v $
13  * Revision 2.3 2001/04/05 04:00:47 ullrich
14  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
15  *
16  * Revision 2.2 2000/07/28 19:49:27 akio
17  * Change in Detector Id for Endcap SMD
18  *
19  * Revision 2.1 2000/02/23 17:34:02 ullrich
20  * Initial Revision
21  *
22  **************************************************************************/
23 #include "StEmcClusterCollection.h"
24 
25 ClassImp(StEmcClusterCollection);
26 
27 static const char rcsid[] = "$Id: StEmcClusterCollection.cxx,v 2.3 2001/04/05 04:00:47 ullrich Exp $";
28 
29 StEmcClusterCollection::StEmcClusterCollection() {/*noop*/};
30 
31 StEmcClusterCollection::~StEmcClusterCollection() {/*noop*/};
32 
33 StDetectorId
34 StEmcClusterCollection::detector() const {return mDetector;}
35 
36 void
37 StEmcClusterCollection::setDetector(StDetectorId var) {mDetector = var;}
38 
39 int
40 StEmcClusterCollection::numberOfClusters() const{return mClusters.size();}
41 
42 void
43 StEmcClusterCollection::addCluster(StEmcCluster* cluster)
44 {
45  mClusters.push_back(cluster);
46 }
47 
48 StSPtrVecEmcCluster&
49 StEmcClusterCollection::clusters() {return mClusters;}
50 
51 const StSPtrVecEmcCluster&
52 StEmcClusterCollection::clusters() const {return mClusters;}
53 
54 int
55 StEmcClusterCollection::clusterFinderId() const {return mClusterFinderId;}
56 
57 int
58 StEmcClusterCollection::clusterFinderParamVersion() const {return mClusterFinderParamVersion;}
59 
60 void
61 StEmcClusterCollection::setClusterFinderId(int var) {mClusterFinderId = var;}
62 
63 void
64 StEmcClusterCollection::setClusterFinderParamVersion(int var) {mClusterFinderParamVersion = var;}