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.2 2007/09/17 16:34:54 cvetan
19 The package was overwriting the rootcint flags. This was fixed by applying the necessary changes in the DATE-dependent parts of the code
21 Revision 1.1 2007/09/17 10:23:31 cvetan
22 New TPC monitoring package from Stefan Kniege. The monitoring package can be started by running TPCMonitor.C macro located in macros folder.
26 ////////////////////////////////////////////////////////////////////////
28 // AliTPCMonitorDateMonitor class
30 // Monitoring wrapper class for DATE raw data monitoring used by the TPC
32 // Online monitoring is only possible if DATE is installed on the machine.
33 // If not, raw data can be read using the AliTPCMonitorDateFile
34 // (can be choosen from 'Sel.Format' in the TPCMonitor gui")
36 // Authors: Roland Bramm,
37 // Stefan Kniege, IKF, Frankfurt
39 /////////////////////////////////////////////////////////////////////////
44 #include "AliTPCMonitorDateMonitor.h"
48 ClassImp(AliTPCMonitorDateMonitor)
50 //_____________________________________________________________________________
51 AliTPCMonitorDateMonitor::AliTPCMonitorDateMonitor():
58 //_____________________________________________________________________________
59 AliTPCMonitorDateMonitor::AliTPCMonitorDateMonitor(const AliTPCMonitorDateMonitor &datemon) :
60 TNamed(datemon.GetName(),datemon.GetTitle()),
61 fPointer(datemon.fPointer)
66 //_____________________________________________________________________________
67 AliTPCMonitorDateMonitor &AliTPCMonitorDateMonitor::operator =(const AliTPCMonitorDateMonitor& datemon)
69 // assignement operator
71 fPointer=datemon.fPointer;
77 //_____________________________________________________________________________
78 AliTPCMonitorDateMonitor::~AliTPCMonitorDateMonitor(){
82 //_____________________________________________________________________________
83 Int_t AliTPCMonitorDateMonitor::OpenMonitoring(string name){
84 // Set data source for the monitor
85 return monitorSetDataSource((char*)name.c_str());
88 //_____________________________________________________________________________
89 const char* AliTPCMonitorDateMonitor::DecodeError(Int_t error ){
90 // Return decoded error string
91 return monitorDecodeError(error);
94 //_____________________________________________________________________________
95 Int_t AliTPCMonitorDateMonitor::DeclareMonitor(string name){
96 // Declare monitorn Map
97 return monitorDeclareMp((char*)name.c_str());
100 //_____________________________________________________________________________
101 Int_t AliTPCMonitorDateMonitor::GetEvent(){
103 return monitorGetEventDynamic( (void**)&fPointer );
106 //_____________________________________________________________________________
107 char *AliTPCMonitorDateMonitor::GetEventPointerasChar(){
108 // Return pointer to data mamory
112 //_____________________________________________________________________________
113 Int_t AliTPCMonitorDateMonitor::Logout(){
114 // Logout the monitor
115 return monitorLogout();
117 //_____________________________________________________________________________
118 int AliTPCMonitorDateMonitor::FlushEvents(){
120 return monitorFlushEvents();
123 //_____________________________________________________________________________
124 void AliTPCMonitorDateMonitor::Free(){
126 if(fPointer)free(fPointer);