]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCMonitorDateMonitor.cxx
Extra semicolon removed (Marian)
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorDateMonitor.cxx
CommitLineData
48265b32 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/*
17$Log$
33dc3c99 18Revision 1.1 2007/09/17 10:23:31 cvetan
19New TPC monitoring package from Stefan Kniege. The monitoring package can be started by running TPCMonitor.C macro located in macros folder.
20
48265b32 21*/
22
23#include <iostream>
24#include "AliTPCMonitorDateMonitor.h"
33dc3c99 25#include "event.h"
26#include "monitor.h"
27
48265b32 28ClassImp(AliTPCMonitorDateMonitor)
29
30//_____________________________________________________________________________
31AliTPCMonitorDateMonitor::AliTPCMonitorDateMonitor(){
32 // Constructor
33 fPointer = 0;
34}
35
36//_____________________________________________________________________________
37AliTPCMonitorDateMonitor::~AliTPCMonitorDateMonitor(){
38 // Destructor
39}
40
41//_____________________________________________________________________________
42Int_t AliTPCMonitorDateMonitor::OpenMonitoring(string name){
43 // Set data source for the monitor
44 return monitorSetDataSource((char*)name.c_str());
45}
46
47//_____________________________________________________________________________
48char* AliTPCMonitorDateMonitor::DecodeError(Int_t error ){
49 // Return decoded error string
50 return monitorDecodeError(error);
51}
52
53//_____________________________________________________________________________
54Int_t AliTPCMonitorDateMonitor::DeclareMonitor(string name){
55 // Declare monitorn Map
56 return monitorDeclareMp((char*)name.c_str());
57}
58
59//_____________________________________________________________________________
60Int_t AliTPCMonitorDateMonitor::GetEvent(){
61 // Get next event
62 return monitorGetEventDynamic( (void**)&fPointer );
63}
64
65//_____________________________________________________________________________
66char *AliTPCMonitorDateMonitor::GetEventPointerasChar(){
67 // Return pointer to data mamory
68 return fPointer;
69}
70
71//_____________________________________________________________________________
72Int_t AliTPCMonitorDateMonitor::Logout(){
73 // Logout the monitor
74 return monitorLogout();
75}
76//_____________________________________________________________________________
77int AliTPCMonitorDateMonitor::FlushEvents(){
78 // Flush events
79 return monitorFlushEvents();
80}
81
82//_____________________________________________________________________________
83void AliTPCMonitorDateMonitor::Free(){
84 // Free fPointer
85 if(fPointer)free(fPointer);
86 fPointer = 0;
87}