]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCMonitorDateMonitor.cxx
The package was overwriting the rootcint flags. This was fixed by applying the necess...
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorDateMonitor.cxx
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$
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.
20
21 */ 
22
23 #include <iostream>
24 #include "AliTPCMonitorDateMonitor.h"
25 #include "event.h"
26 #include "monitor.h"
27
28 ClassImp(AliTPCMonitorDateMonitor)
29
30 //_____________________________________________________________________________
31 AliTPCMonitorDateMonitor::AliTPCMonitorDateMonitor(){
32   // Constructor
33   fPointer = 0;
34 }
35
36 //_____________________________________________________________________________
37 AliTPCMonitorDateMonitor::~AliTPCMonitorDateMonitor(){
38   // Destructor
39 }
40
41 //_____________________________________________________________________________
42 Int_t AliTPCMonitorDateMonitor::OpenMonitoring(string name){
43   // Set data source for the monitor
44         return monitorSetDataSource((char*)name.c_str());
45 }
46
47 //_____________________________________________________________________________
48 char* AliTPCMonitorDateMonitor::DecodeError(Int_t error  ){
49   // Return decoded error string 
50   return monitorDecodeError(error);
51 }
52
53 //_____________________________________________________________________________
54 Int_t AliTPCMonitorDateMonitor::DeclareMonitor(string name){
55   // Declare monitorn Map
56   return monitorDeclareMp((char*)name.c_str());
57 }
58
59 //_____________________________________________________________________________
60 Int_t AliTPCMonitorDateMonitor::GetEvent(){
61   // Get next event
62   return monitorGetEventDynamic( (void**)&fPointer );
63 }
64  
65 //_____________________________________________________________________________
66 char *AliTPCMonitorDateMonitor::GetEventPointerasChar(){
67   // Return pointer to data mamory
68   return fPointer;
69 }
70
71 //_____________________________________________________________________________
72 Int_t AliTPCMonitorDateMonitor::Logout(){
73   // Logout the monitor
74   return monitorLogout();
75 }
76 //_____________________________________________________________________________
77 int AliTPCMonitorDateMonitor::FlushEvents(){
78   // Flush events 
79   return monitorFlushEvents();
80 }
81
82 //_____________________________________________________________________________
83 void  AliTPCMonitorDateMonitor::Free(){
84   // Free fPointer 
85   if(fPointer)free(fPointer);
86   fPointer = 0;
87 }