StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBTofCollection.h
1 
5 /***************************************************************************
6  *
7  * $Id: StBTofCollection.h,v 2.1 2008/12/22 20:30:55 ullrich Exp $
8  *
9  * Author: Xin Dong, Nov 2008
10  ***************************************************************************
11  *
12  * Description:
13  *
14  * Persistent data which is written into StEvent
15  * directly from the reco chain. All Barrel ToF stuff goes here
16  * except the StBTofPidTraits.
17  *
18  ***************************************************************************
19  *
20  * $Log: StBTofCollection.h,v $
21  * Revision 2.1 2008/12/22 20:30:55 ullrich
22  * Initial Revision.
23  *
24  *
25  **************************************************************************/
26 #ifndef StBTofCollection_hh
27 #define StBTofCollection_hh
28 
29 #include "StObject.h"
30 #include "StContainers.h"
31 #include "StEnumerations.h"
32 #include "StBTofHeader.h"
33 #include "StBTofHit.h"
34 #include "StBTofRawHit.h"
35 
36 class StBTofCollection : public StObject {
37 public:
40 
41  const StBTofHeader* tofHeader() const;
42  StBTofHeader* tofHeader();
43 
44  const StSPtrVecBTofHit& tofHits() const;
45  StSPtrVecBTofHit& tofHits();
46 
47  const StSPtrVecBTofRawHit& tofRawHits() const;
48  StSPtrVecBTofRawHit& tofRawHits();
49 
50  void setHeader(StBTofHeader*);
51 
52  void addHit(const StBTofHit*);
53  void addRawHit(const StBTofRawHit*);
54 
55  bool hitsPresent() const;
56  bool rawHitsPresent() const;
57 
58 private:
59  StBTofHeader* mBTofHeader;
60 
61  StSPtrVecBTofHit mBTofHits;
62  StSPtrVecBTofRawHit mBTofRawHits;
63 
64  ClassDef(StBTofCollection, 1)
65 };
66 
67 #endif