StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerDetectorCollection.h
1 
5 /***************************************************************************
6  *
7  * $Id: StTriggerDetectorCollection.h,v 2.9 2007/07/02 20:23:09 ullrich Exp $
8  *
9  * Author: Thomas Ullrich, Sep 1999
10  ***************************************************************************
11  *
12  * Description:
13  *
14  ***************************************************************************
15  *`
16  * $Log: StTriggerDetectorCollection.h,v $
17  * Revision 2.9 2007/07/02 20:23:09 ullrich
18  * Added FMS and MTD.
19  *
20  * Revision 2.8 2006/09/14 00:02:16 ullrich
21  * Removed argument (run) in constructor. Not needed anymore.
22  *
23  * Revision 2.7 2006/08/21 19:43:35 ullrich
24  * Run number becomes constructor argument. Needed for ZDC. (Akio)
25  *
26  * Revision 2.6 2005/10/10 22:27:42 ullrich
27  * Added setXXX functions.
28  *
29  * Revision 2.5 2004/08/03 17:21:15 ullrich
30  * Fpd as trigger detector added.
31  *
32  * Revision 2.4 2004/02/11 01:42:09 ullrich
33  * Added new constructor to load data from StTriggerData.
34  *
35  * Revision 2.3 2002/02/22 22:56:53 jeromel
36  * Doxygen basic documentation in all header files. None of this is required
37  * for QM production.
38  *
39  * Revision 2.2 2002/02/20 03:12:15 ullrich
40  * Added EMC trigger.
41  *
42  * Revision 2.1 2002/01/03 20:59:34 ullrich
43  * Added BBC and FPD.
44  *
45  * Revision 2.0 1999/10/12 18:43:20 ullrich
46  * Completely Revised for New Version
47  *
48  **************************************************************************/
49 #ifndef StTriggerDetectorCollection_hh
50 #define StTriggerDetectorCollection_hh
51 #include "StObject.h"
52 #include "StBbcTriggerDetector.h"
53 #include "StCtbTriggerDetector.h"
54 #include "StMwcTriggerDetector.h"
55 #include "StVpdTriggerDetector.h"
56 #include "StZdcTriggerDetector.h"
57 #include "StEmcTriggerDetector.h"
58 #include "StFpdTriggerDetector.h"
59 #include "StFmsTriggerDetector.h"
60 #include "StMtdTriggerDetector.h"
61 
62 class dst_TrgDet_st;
63 class StTriggerData;
64 
66 public:
68  StTriggerDetectorCollection(const dst_TrgDet_st&);
70  // StTriggerDetectorCollection(const StTriggerDetectorCollection&); use default
71  // StTriggerDetectorCollection& operator=(const StTriggerDetectorCollection&); use default
72  virtual ~StTriggerDetectorCollection();
73 
74  StBbcTriggerDetector& bbc();
75  const StBbcTriggerDetector& bbc() const;
76  StCtbTriggerDetector& ctb();
77  const StCtbTriggerDetector& ctb() const;
78  StMwcTriggerDetector& mwc();
79  const StMwcTriggerDetector& mwc() const;
80  StVpdTriggerDetector& vpd();
81  const StVpdTriggerDetector& vpd() const;
82  StZdcTriggerDetector& zdc();
83  const StZdcTriggerDetector& zdc() const;
84  StEmcTriggerDetector& emc();
85  const StEmcTriggerDetector& emc() const;
86  StFpdTriggerDetector& fpd();
87  const StFpdTriggerDetector& fpd() const;
88  StFmsTriggerDetector& fms();
89  const StFmsTriggerDetector& fms() const;
90  StMtdTriggerDetector& mtd();
91  const StMtdTriggerDetector& mtd() const;
92 
93  void setCtbTriggerDetector(const StCtbTriggerDetector&);
94  void setMwcTriggerDetector(const StMwcTriggerDetector&);
95  void setVpdTriggerDetector(const StVpdTriggerDetector&);
96  void setZdcTriggerDetector(const StZdcTriggerDetector&);
97  void setBbcTriggerDetector(const StBbcTriggerDetector&);
98  void setEmcTriggerDetector(const StEmcTriggerDetector&);
99  void setFpdTriggerDetector(const StFpdTriggerDetector&);
100  void setFmsTriggerDetector(const StFmsTriggerDetector&);
101  void setMtdTriggerDetector(const StMtdTriggerDetector&);
102 
103 protected:
113 
114  ClassDef(StTriggerDetectorCollection,6)
115 };
116 
117 inline void StTriggerDetectorCollection::setCtbTriggerDetector(const StCtbTriggerDetector& val) {mCtb = val;}
118 inline void StTriggerDetectorCollection::setMwcTriggerDetector(const StMwcTriggerDetector& val) {mMwc = val;}
119 inline void StTriggerDetectorCollection::setVpdTriggerDetector(const StVpdTriggerDetector& val) {mVpd = val;}
120 inline void StTriggerDetectorCollection::setZdcTriggerDetector(const StZdcTriggerDetector& val) {mZdc = val;}
121 inline void StTriggerDetectorCollection::setBbcTriggerDetector(const StBbcTriggerDetector& val) {mBbc = val;}
122 inline void StTriggerDetectorCollection::setEmcTriggerDetector(const StEmcTriggerDetector& val) {mEmc = val;}
123 inline void StTriggerDetectorCollection::setFpdTriggerDetector(const StFpdTriggerDetector& val) {mFpd = val;}
124 inline void StTriggerDetectorCollection::setFmsTriggerDetector(const StFmsTriggerDetector& val) {mFms = val;}
125 inline void StTriggerDetectorCollection::setMtdTriggerDetector(const StMtdTriggerDetector& val) {mMtd = val;}
126 
127 #endif