]>
Commit | Line | Data |
---|---|---|
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 | ||
19 | ClassImp(AliDimIntNotifier) | |
20 | ||
21 | AliDimIntNotifier::AliDimIntNotifier(const TString& service) : | |
22 | DimUpdatedInfo(service, -1), | |
23 | fLastMessage(-1) | |
24 | { | |
25 | ||
26 | } | |
27 | ||
28 | void AliDimIntNotifier::infoHandler() | |
29 | { | |
30 | // Handle DIM message | |
31 | fLastMessage = getData() ? getInt() : -1; | |
32 | DimMessage(fLastMessage); | |
33 | } | |
34 | ||
35 | void AliDimIntNotifier::DimMessage(Int_t) | |
36 | { | |
37 | ||
38 | if (fLastMessage != -1) | |
39 | { | |
40 | Emit("DimMessage(Int_t)", fLastMessage); | |
41 | } | |
42 | gSystem->ProcessEvents(); | |
43 | } |