StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StETofCollection.h
1 /***************************************************************************
2  *
3  * $Id: StETofCollection.h,v 2.1 2018/07/09 14:53:47 ullrich Exp $
4  *
5  * Author: Florian Seck, April 2018
6  ***************************************************************************
7  *
8  * Description: This class collects eTOF objects for persistent
9  * storage in StEvent. All eTOF stuff goes here expect the PiDTraits:
10  * - StETofDigi
11  * - StETofHit
12  * - StETofHeader
13  *
14  ***************************************************************************
15  *
16  * $Log: StETofCollection.h,v $
17  * Revision 2.1 2018/07/09 14:53:47 ullrich
18  * Initial Revision.
19  *
20  *
21  ***************************************************************************/
22 #ifndef STETOFCOLLECTION_H
23 #define STETOFCOLLECTION_H
24 
25 #include "StObject.h"
26 #include "StETofDigi.h"
27 #include "StETofHit.h"
28 #include "StETofHeader.h"
29 
30 #include "StContainers.h"
31 #include "StEnumerations.h"
32 
33 class StETofCollection : public StObject {
34 public:
37 
38  const StETofHeader* etofHeader() const;
39  StETofHeader* etofHeader();
40 
41  const StSPtrVecETofDigi& etofDigis() const;
42  StSPtrVecETofDigi& etofDigis();
43 
44  const StSPtrVecETofHit& etofHits() const;
45  StSPtrVecETofHit& etofHits();
46 
47  void setHeader( StETofHeader* );
48 
49  void addDigi( const StETofDigi* );
50  void addHit( const StETofHit* );
51 
52  bool digisPresent() const;
53  bool hitsPresent() const;
54 
55 private:
56  StETofHeader* mETofHeader;
57 
58  StSPtrVecETofDigi mETofDigis;
59  StSPtrVecETofHit mETofHits;
60 
61 
62  ClassDef( StETofCollection, 1 )
63 };
64 
65 #endif // STETOFCOLLECTION_H
66