AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliDimIntNotifier.cxx
Go to the documentation of this file.
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 
20 
21 AliDimIntNotifier::AliDimIntNotifier(const TString& service) :
22  DimUpdatedInfo(service, -1),
23  fLastMessage(-1)
24 {
25 
26 }
27 
29 {
30  // Handle DIM message
31  fLastMessage = getData() ? getInt() : -1;
33 }
34 
36 {
37 
38  if (fLastMessage != -1)
39  {
40  Emit("DimMessage(Int_t)", fLastMessage);
41  }
42  gSystem->ProcessEvents();
43 }
void DimMessage(Int_t mess=-1)
ClassImp(AliDimIntNotifier) AliDimIntNotifier