Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DQSpillServer.cxx

Go to the documentation of this file.
00001 #include "DQSpillServer.h"
00002  
00003 #include "MessageService/MsgService.h"
00004 
00005 //
00006 // $Log $
00007 //
00008 
00009 ClassImp(DQSpillServer)
00010  
00011 CVSID("$Id: DQSpillServer.cxx,v 1.2 2006/04/18 14:47:41 blake Exp $");
00012 
00013 DQSpillServer::DQSpillServer() :
00014   fTime(-1),
00015   fSpillStatus(-1),
00016   fSpillType(-1),
00017   fSpillTimeError(-1)
00018 {
00019  
00020 }
00021  
00022 DQSpillServer::DQSpillServer(const DQSpillServer& rhs) :
00023   TObject(rhs)
00024 {
00025  
00026 }
00027    
00028 DQSpillServer::~DQSpillServer()
00029 {
00030  
00031 }
00032 
00033 void DQSpillServer::Process(RawSpillServerMonitorBlock* rdb)
00034 {
00035   MSG("DataQuality",Msg::kVerbose) << " DQSpillServer::Process(RawSpillServerMonitorBlock) " << endl;
00036 
00037   fTime=((VldTimeStamp)(rdb->GetTimeStamp())).GetSec();
00038 
00039   const mdSpillData_t& spilldata = rdb->GetSpillData();
00040   fSpillStatus = spilldata.isKnown;
00041   fSpillType = spilldata.isSpill;
00042   fSpillTimeError = spilldata.spillTimeError_nsec;
00043 
00044   MSG("DataQuality",Msg::kVerbose) << "   Time=" << fTime << endl;
00045   MSG("DataQuality",Msg::kVerbose) << "   SpillStatus=" << fSpillStatus << endl;
00046   MSG("DataQuality",Msg::kVerbose) << "   SpillType=" << fSpillType << endl;
00047   MSG("DataQuality",Msg::kVerbose) << "   SpillTimeError=" << fSpillTimeError << endl;
00048 
00049 }
00050 
00051 Int_t DQSpillServer::GetTime() const
00052 {
00053   return fTime;
00054 }
00055   
00056 Int_t DQSpillServer::GetSpillStatus() const
00057 {
00058   return fSpillStatus;
00059 }  
00060 
00061 Int_t DQSpillServer::GetSpillType() const
00062 {
00063   return fSpillType;
00064 }  
00065 
00066 Int_t DQSpillServer::GetSpillTimeError() const
00067 {
00068   return fSpillTimeError;
00069 }

Generated on Mon Feb 15 11:06:38 2010 for loon by  doxygen 1.3.9.1