StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StDetectorState.cxx
1 /***************************************************************************
2  *
3  * $Id: StDetectorState.cxx,v 2.1 2001/12/01 15:34:50 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Dec 2001
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StDetectorState.cxx,v $
13  * Revision 2.1 2001/12/01 15:34:50 ullrich
14  * Initial Revision.
15  *
16  **************************************************************************/
17 #include "StDetectorState.h"
18 
19 static const char rcsid[] = "$Id: StDetectorState.cxx,v 2.1 2001/12/01 15:34:50 ullrich Exp $";
20 
21 ClassImp(StDetectorState)
22 
24  : mDetectorId(kUnknownId), mIsGood(true) {/* noop */}
25 
26 StDetectorState::StDetectorState(StDetectorId det, bool state)
27  : mDetectorId(det), mIsGood(state) {/* noop */}
28 
29 StDetectorState::~StDetectorState() {/* noop */}
30 
31 StDetectorId
32 StDetectorState::detector() const {return mDetectorId;}
33 
34 bool
35 StDetectorState::good() const {return mIsGood;}
36 
37 bool
38 StDetectorState::bad() const {return !good();}
39 
40 void
41 StDetectorState::setDetector(StDetectorId det) {mDetectorId = det;}
42 
43 void
44 StDetectorState::setGood(bool val) {mIsGood = val;}