StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMcTofHitCollection.hh
1 /***************************************************************************
2  *
3  * $Id: StMcTofHitCollection.hh,v 2.5 2012/03/22 00:50:46 perev Exp $
4  * $Log: StMcTofHitCollection.hh,v $
5  * Revision 2.5 2012/03/22 00:50:46 perev
6  * private => protected
7  *
8  * Revision 2.4 2012/03/01 16:48:29 perev
9  * method Browse() added
10  *
11  * Revision 2.3 2009/07/24 19:08:09 perev
12  * Cleanup + Btof added (Geurts)
13  *
14  * Revision 2.2 2005/01/27 23:40:48 calderon
15  * Adding persistency to StMcEvent as a step for Virtual MonteCarlo.
16  *
17  * Revision 2.1 2003/08/20 18:50:21 calderon
18  * Addition of Tof classes and Pixel classes. Modified track, event, and
19  * container code to reflect this.
20  * Fix bug in StMcVertex and in clearing of some hit collections.
21  *
22  */
23 #ifndef StMcTofHitCollection_hh
24 #define StMcTofHitCollection_hh
25 #include "StMcContainers.hh"
26 #include "StObject.h"
27 
28 class StMcTofHit;
29 
31 public:
33  virtual ~StMcTofHitCollection();
34  void Clear(const char* opt="");
35  bool IsFolder() const { return true;};
36 virtual void Browse(TBrowser *b);
37 
38  bool addHit(StMcTofHit*);
39  unsigned long numberOfHits() const;
40 
41  StSPtrVecMcTofHit& hits();
42  const StSPtrVecMcTofHit& hits() const;
43 
44 protected:
45  StSPtrVecMcTofHit mHits;
46  ClassDef(StMcTofHitCollection,1)
47 };
48 #endif