00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "StDetectorState.h"
00018
00019 static const char rcsid[] = "$Id: StDetectorState.cxx,v 2.1 2001/12/01 15:34:50 ullrich Exp $";
00020
00021 ClassImp(StDetectorState)
00022
00023 StDetectorState::StDetectorState()
00024 : mDetectorId(kUnknownId), mIsGood(true) {}
00025
00026 StDetectorState::StDetectorState(StDetectorId det, bool state)
00027 : mDetectorId(det), mIsGood(state) {}
00028
00029 StDetectorState::~StDetectorState() {}
00030
00031 StDetectorId
00032 StDetectorState::detector() const {return mDetectorId;}
00033
00034 bool
00035 StDetectorState::good() const {return mIsGood;}
00036
00037 bool
00038 StDetectorState::bad() const {return !good();}
00039
00040 void
00041 StDetectorState::setDetector(StDetectorId det) {mDetectorId = det;}
00042
00043 void
00044 StDetectorState::setGood(bool val) {mIsGood = val;}