StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StRichCollection.cxx,v 2.3 2001/04/05 04:00:52 ullrich Exp $
4  *
5  * Author: Brian Lasiuk, May 2000
6  ***************************************************************************
7  *
8  * Description:
9  * Persistent data which is written into StEvent
10  * directly from the reco chain
11  ***************************************************************************
12  *
13  * $Log: StRichCollection.cxx,v $
14  * Revision 2.3 2001/04/05 04:00:52 ullrich
15  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
16  *
17  * Revision 2.2 2001/02/22 21:04:16 lasiuk
18  * keep the tracks that fly through the RICH in
19  * the collection
20  *
21  * Revision 2.1 2000/05/22 21:48:14 ullrich
22  * Initial Revision.
23  *
24  **************************************************************************/
25 #include "StRichCollection.h"
26 
27 static const char rcsid[] = "$Id: StRichCollection.cxx,v 2.3 2001/04/05 04:00:52 ullrich Exp $";
28 
29 ClassImp(StRichCollection)
30 
31 StRichCollection::StRichCollection() { /* noop */ }
32 
33 StRichCollection::~StRichCollection() { /* noop */ }
34 
35 
36 const StSPtrVecRichPixel&
37 StRichCollection::getRichPixels() const
38 {
39  return mRichPixels;
40 }
41 
42 StSPtrVecRichPixel&
43 StRichCollection::getRichPixels()
44 {
45  return mRichPixels;
46 }
47 
48 const StSPtrVecRichCluster&
49 StRichCollection::getRichClusters() const
50 {
51  return mRichClusters;
52 }
53 
54 StSPtrVecRichCluster&
55 StRichCollection::getRichClusters()
56 {
57  return mRichClusters;
58 }
59 
60 const StSPtrVecRichHit&
61 StRichCollection::getRichHits() const
62 {
63  return mRichHits;
64 }
65 
66 StSPtrVecRichHit&
67 StRichCollection::getRichHits()
68 {
69  return mRichHits;
70 }
71 
72 const StPtrVecTrack&
73 StRichCollection::getTracks() const
74 {
75  return mTracks;
76 }
77 
78 StPtrVecTrack&
79 StRichCollection::getTracks()
80 {
81  return mTracks;
82 }
83 
84 void
85 StRichCollection::addPixel(const StRichPixel* aPix)
86 {
87  mRichPixels.push_back(aPix);
88 }
89 
90 void
91 StRichCollection::addCluster(const StRichCluster* aClus)
92 {
93  mRichClusters.push_back(aClus);
94 }
95 
96 void
97 StRichCollection::addHit(const StRichHit* aHit)
98 {
99  mRichHits.push_back(aHit);
100 }
101 
102 void
103 StRichCollection::addTrack(const StTrack* track)
104 {
105  mTracks.push_back(track);
106 }
107 
108 bool
109 StRichCollection::pixelsPresent() const
110 {
111  if(mRichPixels.size() > 0)
112  return kTRUE;
113  else
114  return kFALSE;
115 }
116 
117 bool
118 StRichCollection::clustersPresent() const
119 {
120  if(mRichClusters.size() > 0)
121  return kTRUE;
122  else
123  return kFALSE;
124 }
125 
126 bool
127 StRichCollection::hitsPresent() const
128 {
129  if(mRichHits.size() > 0)
130  return kTRUE;
131  else
132  return kFALSE;
133 }