]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MONITOR/AliDimIntNotifier.cxx
Merge branch 'master' into TPCdev
[u/mrichter/AliRoot.git] / MONITOR / AliDimIntNotifier.cxx
... / ...
CommitLineData
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
10#include <TError.h>
11#include <TSystem.h>
12
13#include "AliDimIntNotifier.h"
14
15//______________________________________________________________________________
16// Full description of AliDimIntNotifier
17//
18
19ClassImp(AliDimIntNotifier)
20
21AliDimIntNotifier::AliDimIntNotifier(const TString& service) :
22 DimUpdatedInfo(service, -1),
23 fLastMessage(-1)
24{
25
26}
27
28void AliDimIntNotifier::infoHandler()
29{
30 // Handle DIM message
31 fLastMessage = getData() ? getInt() : -1;
32 DimMessage(fLastMessage);
33}
34
35void AliDimIntNotifier::DimMessage(Int_t)
36{
37
38 if (fLastMessage != -1)
39 {
40 Emit("DimMessage(Int_t)", fLastMessage);
41 }
42 gSystem->ProcessEvents();
43}