Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / MONITOR / AliDimIntNotifier.cxx
CommitLineData
c6d78c69 1// @(#)root/eve:$Id$
2// Author: Matevz Tadel 2007
3
4/**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
9
dc836d53 10#include <TError.h>
7e0cf530 11#include <TSystem.h>
12
13#include "AliDimIntNotifier.h"
c6d78c69 14
15//______________________________________________________________________________
16// Full description of AliDimIntNotifier
17//
18
19ClassImp(AliDimIntNotifier)
20
c6d78c69 21AliDimIntNotifier::AliDimIntNotifier(const TString& service) :
22 DimUpdatedInfo(service, -1),
c6d78c69 23 fLastMessage(-1)
24{
c6d78c69 25
c6d78c69 26}
27
28void AliDimIntNotifier::infoHandler()
29{
7e0cf530 30 // Handle DIM message
31 fLastMessage = getData() ? getInt() : -1;
32 DimMessage(fLastMessage);
c6d78c69 33}
34
35void AliDimIntNotifier::DimMessage(Int_t)
36{
7e0cf530 37
c6d78c69 38 if (fLastMessage != -1)
39 {
40 Emit("DimMessage(Int_t)", fLastMessage);
c6d78c69 41 }
7e0cf530 42 gSystem->ProcessEvents();
c6d78c69 43}