StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcRichHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcRichHitCollection.hh,v 2.5 2012/03/22 00:47:08 perev Exp $
4  *
5  * Author: Manuel Calderon de la Barca Sanchez, March 2000
6  ***************************************************************************
7  *
8  * Description: Container for StMcRichHit
9  *
10  ***************************************************************************
11  *
12  * $Log: StMcRichHitCollection.hh,v $
13  * Revision 2.5 2012/03/22 00:47:08 perev
14  * private => protected
15  *
16  * Revision 2.4 2012/03/01 16:48:29 perev
17  * method Browse() added
18  *
19  * Revision 2.3 2009/07/24 19:08:08 perev
20  * Cleanup + Btof added (Geurts)
21  *
22  * Revision 2.2 2005/01/27 23:40:47 calderon
23  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
24  *
25  * Revision 2.1 2000/03/06 18:05:22 calderon
26  * 1) Modified SVT Hits storage scheme from layer-ladder-wafer to
27  * barrel-ladder-wafer.
28  * 2) Added Rich Hit class and collection, and links to them in other
29  * classes.
30  *
31  *
32  **************************************************************************/
33 #ifndef StMcRichHitCollection_hh
34 #define StMcRichHitCollection_hh
35 #include "StMcContainers.hh"
36 #include "StObject.h"
37 
38 class StMcRichHit;
39 
41 public:
43  virtual ~StMcRichHitCollection();
44  // StMcRichHitCollection(const StMcRichHitCollection&); use default
45  // StMcRichHitCollection& operator=(const StMcRichHitCollection&); use default
46  void Clear(const char* opt="");
47  bool IsFolder() const { return true;};
48 virtual void Browse(TBrowser *b);
49 
50  bool addHit(StMcRichHit*);
51  unsigned long numberOfHits() const;
52 
53  StSPtrVecMcRichHit& hits();
54  const StSPtrVecMcRichHit& hits() const;
55 
56 protected:
57  StSPtrVecMcRichHit mHits;
58  ClassDef(StMcRichHitCollection,1)
59 };
60 #endif