StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMtdCollection.h
1 
4 /***************************************************************************
5  *
6  * $Id: StMtdCollection.h,v 2.2 2012/02/28 01:25:32 perev Exp $
7  *
8  * Author: Frank Geurts, April 25, 2011
9  ***************************************************************************
10  *
11  * Description:
12  *
13  * Persistent data which is written into StEvent
14  * directly from the reco chain.
15  *
16  ***************************************************************************
17  *
18  * $Log: StMtdCollection.h,v $
19  * Revision 2.2 2012/02/28 01:25:32 perev
20  * Browse(...) added
21  *
22  * Revision 2.1 2011/04/25 21:24:02 ullrich
23  * Initial Revision.
24  *
25  *
26  **************************************************************************/
27 #ifndef StMtdCollection_hh
28 #define StMtdCollection_hh
29 
30 #include "StObject.h"
31 #include "StContainers.h"
32 #include "StEnumerations.h"
33 #include "StMtdHeader.h"
34 #include "StMtdHit.h"
35 #include "StMtdRawHit.h"
36 class TBrowser;
37 
38 class StMtdCollection : public StObject {
39 public:
41  ~StMtdCollection();
42 
43  bool IsFolder() const { return true;};
44  void Browse(TBrowser *b);
45 
46  const StMtdHeader* mtdHeader() const;
47  StMtdHeader* mtdHeader();
48 
49  const StSPtrVecMtdHit& mtdHits() const;
50  StSPtrVecMtdHit& mtdHits();
51 
52  const StSPtrVecMtdRawHit& mtdRawHits() const;
53  StSPtrVecMtdRawHit& mtdRawHits();
54 
55  void setHeader(StMtdHeader*);
56 
57  void addHit(const StMtdHit*);
58  void addRawHit(const StMtdRawHit*);
59 
60  bool hitsPresent() const;
61  bool rawHitsPresent() const;
62 
63 private:
64  StMtdHeader* mMtdHeader;
65 
66  StSPtrVecMtdHit mMtdHits;
67  StSPtrVecMtdRawHit mMtdRawHits;
68 
69  ClassDef(StMtdCollection, 1)
70 };
71 
72 #endif