StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerIdCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StTriggerIdCollection.cxx,v 2.4 2006/05/04 19:07:49 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, January 2003
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTriggerIdCollection.cxx,v $
13  * Revision 2.4 2006/05/04 19:07:49 ullrich
14  * Added L3 trigger expansion.
15  *
16  * Revision 2.3 2003/03/14 21:44:47 jeromel
17  * delete to avoid memory leak
18  *
19  * Revision 2.2 2003/01/30 18:37:19 ullrich
20  * Changed name of method, now setNominal().
21  *
22  * Revision 2.1 2003/01/30 18:14:15 ullrich
23  * Initial Revision.
24  *
25  **************************************************************************/
26 #include "StTriggerIdCollection.h"
27 
28 ClassImp(StTriggerIdCollection)
29 
31 {
32  mL1TriggerId = 0;
33  mL2TriggerId = 0;
34  mL3TriggerId = 0;
35  mL3ExpandedTriggerId = 0;
36  mNominalTriggerId = 0;
37 }
38 
39 StTriggerIdCollection::~StTriggerIdCollection()
40 {
41  delete mL1TriggerId; mL1TriggerId = 0;
42  delete mL2TriggerId; mL2TriggerId = 0;
43  delete mL3TriggerId; mL3TriggerId = 0;
44  delete mL3ExpandedTriggerId; mL3ExpandedTriggerId = 0;
45  delete mNominalTriggerId; mNominalTriggerId = 0;
46 }
47 
48 const StTriggerId*
49 StTriggerIdCollection::nominal() const {return mNominalTriggerId;}
50 
51 const StTriggerId*
52 StTriggerIdCollection::l1() const {return mL1TriggerId;}
53 
54 const StTriggerId*
55 StTriggerIdCollection::l2() const {return mL2TriggerId;}
56 
57 const StTriggerId*
58 StTriggerIdCollection::l3() const {return mL3TriggerId;}
59 
60 const StTriggerId*
61 StTriggerIdCollection::l3Expanded() const {return mL3ExpandedTriggerId;}
62 
63 void
64 StTriggerIdCollection::setL1(StTriggerId* val) {mL1TriggerId = val;}
65 
66 void
67 StTriggerIdCollection::setL2(StTriggerId* val) {mL2TriggerId = val;}
68 
69 void
70 StTriggerIdCollection::setL3(StTriggerId* val) {mL3TriggerId = val;}
71 
72 void
73 StTriggerIdCollection::setL3Expanded(StTriggerId* val) {mL3ExpandedTriggerId = val;}
74 
75 void
76 StTriggerIdCollection::setNominal(StTriggerId* val) {mNominalTriggerId = val;}
77 
Collection of trigger ids as stored in StEvent.