StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcCtbHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcCtbHitCollection.hh,v 2.4 2012/03/22 00:33:29 perev Exp $
4  * $Log: StMcCtbHitCollection.hh,v $
5  * Revision 2.4 2012/03/22 00:33:29 perev
6  * private => protected
7  *
8  * Revision 2.3 2012/03/01 16:48:29 perev
9  * method Browse() added
10  *
11  * Revision 2.2 2005/01/27 23:40:47 calderon
12  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
13  *
14  * Revision 2.1 2003/02/19 03:29:42 calderon
15  * Introduction of CTB classes to repository.
16  *
17  * Revision 1.0 2003/03/18 00:00:00 gans
18  * Introduction of Ctb classes. Modified several classes
19  * accordingly.
20  */
21 #ifndef StMcCtbHitCollection_hh
22 #define StMcCtbHitCollection_hh
23 #include "StMcContainers.hh"
24 #include "StObject.h"
25 
26 class StMcCtbHit;
27 
29 public:
31  virtual ~StMcCtbHitCollection();
32  // StMcCtbHitCollection(const StMcCtbHitCollection&); use default
33  // StMcCtbHitCollection& operator=(const StMcCtbHitCollection&); use default
34  void Clear(const char* opt="");
35  bool IsFolder() const { return true;};
36 virtual void Browse(TBrowser *b);
37 
38  bool addHit(StMcCtbHit*);
39  unsigned long numberOfHits() const;
40 
41  StSPtrVecMcCtbHit& hits();
42  const StSPtrVecMcCtbHit& hits() const;
43 
44 protected:
45  StSPtrVecMcCtbHit mHits;
46  ClassDef(StMcCtbHitCollection,1)
47 };
48 #endif