StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRichCollection.h
1 
9 /***************************************************************************
10  *
11  * $Id: StRichCollection.h,v 2.4 2002/02/22 22:56:49 jeromel Exp $
12  *
13  * Author: Brian Lasiuk, May 2000
14  ***************************************************************************
15  *
16  * Description:
17  * Persistent data which is written into StEvent
18  * directly from the reco chain
19  *
20  ***************************************************************************
21  *
22  * $Log: StRichCollection.h,v $
23  * Revision 2.4 2002/02/22 22:56:49 jeromel
24  * Doxygen basic documentation in all header files. None of this is required
25  * for QM production.
26  *
27  * Revision 2.3 2001/04/05 04:00:39 ullrich
28  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
29  *
30  * Revision 2.2 2001/02/22 21:04:17 lasiuk
31  * keep the tracks that fly through the RICH in
32  * the collection
33  *
34  * Revision 2.1 2000/05/22 21:48:17 ullrich
35  * Initial Revision.
36  *
37  **************************************************************************/
38 #ifndef StRichCollection_hh
39 #define StRichCollection_hh
40 
41 #include "StObject.h"
42 #include "StContainers.h"
43 #include "StEnumerations.h"
44 #include "StRichCluster.h"
45 #include "StRichHit.h"
46 
47 class StRichCollection : public StObject {
48 public:
51 // StRichCollection(const StRichCollection&) { /* nopt */ }
52 // StRichCollection& operator=(const StRichCollection&) {/* use default */}
53 
54  const StSPtrVecRichPixel& getRichPixels() const;
55  StSPtrVecRichPixel& getRichPixels();
56 
57  const StSPtrVecRichCluster& getRichClusters() const;
58  StSPtrVecRichCluster& getRichClusters();
59 
60  const StSPtrVecRichHit& getRichHits() const;
61  StSPtrVecRichHit& getRichHits();
62 
63  const StPtrVecTrack& getTracks() const;
64  StPtrVecTrack& getTracks();
65 
66  void addPixel(const StRichPixel*);
67  void addCluster(const StRichCluster*);
68  void addHit(const StRichHit*);
69  void addTrack(const StTrack*);
70 
71  bool pixelsPresent() const;
72  bool clustersPresent() const;
73  bool hitsPresent() const;
74 
75 private:
76  StSPtrVecRichPixel mRichPixels;
77  StSPtrVecRichCluster mRichClusters;
78  StSPtrVecRichHit mRichHits;
79 
80  StPtrVecTrack mTracks;
81 
82  ClassDef(StRichCollection, 1)
83 };
84 #endif