1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
18 Revision 1.1 2007/09/17 10:23:31 cvetan
19 New TPC monitoring package from Stefan Kniege. The monitoring package can be started by running TPCMonitor.C macro located in macros folder.
24 #include "AliTPCMonitorDateMonitor.h"
28 ClassImp(AliTPCMonitorDateMonitor)
30 //_____________________________________________________________________________
31 AliTPCMonitorDateMonitor::AliTPCMonitorDateMonitor(){
36 //_____________________________________________________________________________
37 AliTPCMonitorDateMonitor::~AliTPCMonitorDateMonitor(){
41 //_____________________________________________________________________________
42 Int_t AliTPCMonitorDateMonitor::OpenMonitoring(string name){
43 // Set data source for the monitor
44 return monitorSetDataSource((char*)name.c_str());
47 //_____________________________________________________________________________
48 char* AliTPCMonitorDateMonitor::DecodeError(Int_t error ){
49 // Return decoded error string
50 return monitorDecodeError(error);
53 //_____________________________________________________________________________
54 Int_t AliTPCMonitorDateMonitor::DeclareMonitor(string name){
55 // Declare monitorn Map
56 return monitorDeclareMp((char*)name.c_str());
59 //_____________________________________________________________________________
60 Int_t AliTPCMonitorDateMonitor::GetEvent(){
62 return monitorGetEventDynamic( (void**)&fPointer );
65 //_____________________________________________________________________________
66 char *AliTPCMonitorDateMonitor::GetEventPointerasChar(){
67 // Return pointer to data mamory
71 //_____________________________________________________________________________
72 Int_t AliTPCMonitorDateMonitor::Logout(){
74 return monitorLogout();
76 //_____________________________________________________________________________
77 int AliTPCMonitorDateMonitor::FlushEvents(){
79 return monitorFlushEvents();
82 //_____________________________________________________________________________
83 void AliTPCMonitorDateMonitor::Free(){
85 if(fPointer)free(fPointer);