StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuTriggerIdCollection.cxx
1 /***************************************************************************
2  *
3  * $Id: StMuTriggerIdCollection.cxx,v 1.3 2006/05/04 21:04:35 mvl Exp $
4  *
5  * Author: Frank Laue
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************/
11 #include "StMuTriggerIdCollection.h"
12 
14 
16 
17 StMuTriggerIdCollection::StMuTriggerIdCollection(const StTriggerIdCollection* c) { fill(c); }
18 
19 StMuTriggerIdCollection::~StMuTriggerIdCollection(){}
20 
21 void StMuTriggerIdCollection::fill(const StTriggerIdCollection* c) {
22  if (!c) return;
23  if ( c->l1() ) setL1( *(c->l1()) );
24  if ( c->l2() ) setL2( *(c->l2()) );
25  if ( c->l3() ) setL3( *(c->l3()) );
26  if ( c->l3Expanded() ) setL3Expanded( *(c->l3Expanded()) );
27  if ( c->nominal() ) setNominal( *(c->nominal()) );
28 }
29 
30 bool StMuTriggerIdCollection::isEmpty(const StTriggerId& id){
31  if ( id.triggerIds().size()==0) return true;
32  return false;
33 }
34 
35 const StTriggerId&
36 StMuTriggerIdCollection::nominal() const {return mNTriggerId;}
37 
38 const StTriggerId&
39 StMuTriggerIdCollection::l1() const {return mL1TriggerId;}
40 
41 const StTriggerId&
42 StMuTriggerIdCollection::l2() const {return mL2TriggerId;}
43 
44 const StTriggerId&
45 StMuTriggerIdCollection::l3() const {return mL3TriggerId;}
46 
47 const StTriggerId&
48 StMuTriggerIdCollection::l3Expanded() const {return mLETriggerId;}
49 
50 void
51 StMuTriggerIdCollection::setL1(const StTriggerId val) {mL1TriggerId = val;}
52 
53 void
54 StMuTriggerIdCollection::setL2(const StTriggerId val) {mL2TriggerId = val;}
55 
56 void
57 StMuTriggerIdCollection::setL3(const StTriggerId val) {mL3TriggerId = val;}
58 
59 void
60 StMuTriggerIdCollection::setL3Expanded(const StTriggerId val) {mLETriggerId = val;}
61 
62 void
63 StMuTriggerIdCollection::setNominal(const StTriggerId val) {mNTriggerId = val;}
64 
65 
66 /**************************************************************************
67  *
68  * $Log: StMuTriggerIdCollection.cxx,v $
69  * Revision 1.3 2006/05/04 21:04:35 mvl
70  * Additions for extra L3 information (from Jamie)
71  *
72  * Revision 1.2 2003/03/19 18:58:04 laue
73  * StMuChainMaker: updates for moved file catalog
74  * StTriggerIdCollection added to the createStEvent function in StMuDst.cxx
75  *
76  * Revision 1.1 2003/02/20 15:50:30 laue
77  * New. Wrapper around StEVent/StStriggerIdCollection
78  *
79  *
80  **************************************************************************/
Collection of trigger ids as stored in StEvent.
Collection of trigger ids as stored in MuDst.