StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerDetectorCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StTriggerDetectorCollection.cxx,v 2.12 2007/07/11 23:06:46 perev Exp $
4  *
5  * Author: Thomas Ullrich, Sep 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTriggerDetectorCollection.cxx,v $
13  * Revision 2.12 2007/07/11 23:06:46 perev
14  * Cleanup+fix StXXXTriggerDetector
15  *
16  * Revision 2.11 2007/07/02 20:23:08 ullrich
17  * Added FMS and MTD.
18  *
19  * Revision 2.10 2007/04/04 16:40:18 ullrich
20  * Add setup of VPD data to constructor.
21  *
22  * Revision 2.9 2006/09/14 00:02:16 ullrich
23  * Removed argument (run) in constructor. Not needed anymore.
24  *
25  * Revision 2.8 2006/08/21 19:43:35 ullrich
26  * Run number becomes constructor argument. Needed for ZDC. (Akio)
27  *
28  * Revision 2.7 2004/08/03 17:21:15 ullrich
29  * Fpd as trigger detector added.
30  *
31  * Revision 2.6 2004/02/11 01:42:09 ullrich
32  * Added new constructor to load data from StTriggerData.
33  *
34  * Revision 2.5 2003/01/29 23:59:12 ullrich
35  * Changed order of instantiation in constructor.
36  *
37  * Revision 2.4 2003/01/23 23:49:32 ullrich
38  * Feeding now tables to BBC instance as well.
39  *
40  * Revision 2.3 2002/02/20 03:12:15 ullrich
41  * Added EMC trigger.
42  *
43  * Revision 2.2 2002/01/03 20:59:33 ullrich
44  * Added BBC and FPD.
45  *
46  * Revision 2.1 1999/10/28 22:27:58 ullrich
47  * Adapted new StArray version. First version to compile on Linux and Sun.
48  *
49  * Revision 2.0 1999/10/12 18:43:18 ullrich
50  * Completely Revised for New Version
51  *
52  **************************************************************************/
53 #include "StTriggerDetectorCollection.h"
54 #include "StTriggerData.h"
55 #include "tables/St_dst_TrgDet_Table.h"
56 
57 static const char rcsid[] = "$Id: StTriggerDetectorCollection.cxx,v 2.12 2007/07/11 23:06:46 perev Exp $";
58 
60 
62 
63 StTriggerDetectorCollection::StTriggerDetectorCollection(const dst_TrgDet_st& t) :
64  mCtb(t), mMwc(t), mVpd(t), mZdc(t), mBbc(t), mEmc(t), mFpd(t) {/* noop */}
65 
66 StTriggerDetectorCollection::StTriggerDetectorCollection(const StTriggerData& t)
67 // :mCtb(t), mVpd(t), mZdc(t), mBbc(t), mEmc(t), mFpd(t), mFms(t), mMtd(t) {/* noop */}
68  :mCtb(t), mVpd(t), mZdc(t), mBbc(t), mEmc(t), mFpd(t), mFms(t), mMtd(t) {/* noop */}
69 
70 StTriggerDetectorCollection::~StTriggerDetectorCollection() {/* noop */}
71 
73 StTriggerDetectorCollection::bbc() { return mBbc; }
74 
76 StTriggerDetectorCollection::bbc() const { return mBbc; }
77 
79 StTriggerDetectorCollection::ctb() { return mCtb; }
80 
82 StTriggerDetectorCollection::ctb() const { return mCtb; }
83 
85 StTriggerDetectorCollection::mwc() { return mMwc; }
86 
88 StTriggerDetectorCollection::mwc() const { return mMwc; }
89 
91 StTriggerDetectorCollection::vpd() { return mVpd; }
92 
94 StTriggerDetectorCollection::vpd() const { return mVpd; }
95 
97 StTriggerDetectorCollection::zdc() { return mZdc; }
98 
100 StTriggerDetectorCollection::zdc() const { return mZdc; }
101 
103 StTriggerDetectorCollection::emc() { return mEmc; }
104 
106 StTriggerDetectorCollection::emc() const { return mEmc; }
107 
109 StTriggerDetectorCollection::fpd() { return mFpd; }
110 
112 StTriggerDetectorCollection::fpd() const { return mFpd; }
113 
115 StTriggerDetectorCollection::fms() { return mFms; }
116 
118 StTriggerDetectorCollection::fms() const { return mFms; }
119 
121 StTriggerDetectorCollection::mtd() { return mMtd; }
122 
124 StTriggerDetectorCollection::mtd() const { return mMtd; }