ROOT logo
#ifndef HORASLOWCHANRAW_H
#define HORASLOWCHANRAW_H

using namespace std;
#include "TObject.h"
#include "TString.h"
#include <iostream>
#include <iomanip>
#include <fstream>

class HOraSlowChannel;

class HOraSlowChanRaw : public TObject {
private:
  TString  timestamp;   // Timestamp (date + time)
  Int_t    nanoSeconds; // Nanoseconds
  Double_t value;       // Data value
  Int_t    status;      // Status flag (0=connected, 1=disconnected)
public:
  HOraSlowChanRaw();
  ~HOraSlowChanRaw() {}
  void setTimestamp(const Char_t* s) {timestamp=s;}
  void setNanoSeconds(Int_t v) {nanoSeconds=v;}
  void setValue(Double_t v) {value=v;}
  void setValue(Int_t v) {value=(Double_t)v;}
  void setStatus(Int_t v) {status=v;}
  void fill(const Char_t*,Int_t,Double_t,Int_t);
  void fill(const Char_t*,Int_t,Int_t,Int_t);
  const Char_t* getTimestamp() {return timestamp.Data();}
  Int_t getNanoSeconds() {return nanoSeconds;}
  Double_t getValue() {return value;}
  Int_t getStatus() {return status;}
  Int_t getTimeDiff(const Char_t*);
  void print(Int_t valPrec=3);
  void write(fstream& fout,Int_t valPrec=3);
private:
  ClassDef(HOraSlowChanRaw,0) // Raw data of a slowcontrol channel
};

#endif  /* !HORASLOWCHANRAW */
 horaslowchanraw.h:1
 horaslowchanraw.h:2
 horaslowchanraw.h:3
 horaslowchanraw.h:4
 horaslowchanraw.h:5
 horaslowchanraw.h:6
 horaslowchanraw.h:7
 horaslowchanraw.h:8
 horaslowchanraw.h:9
 horaslowchanraw.h:10
 horaslowchanraw.h:11
 horaslowchanraw.h:12
 horaslowchanraw.h:13
 horaslowchanraw.h:14
 horaslowchanraw.h:15
 horaslowchanraw.h:16
 horaslowchanraw.h:17
 horaslowchanraw.h:18
 horaslowchanraw.h:19
 horaslowchanraw.h:20
 horaslowchanraw.h:21
 horaslowchanraw.h:22
 horaslowchanraw.h:23
 horaslowchanraw.h:24
 horaslowchanraw.h:25
 horaslowchanraw.h:26
 horaslowchanraw.h:27
 horaslowchanraw.h:28
 horaslowchanraw.h:29
 horaslowchanraw.h:30
 horaslowchanraw.h:31
 horaslowchanraw.h:32
 horaslowchanraw.h:33
 horaslowchanraw.h:34
 horaslowchanraw.h:35
 horaslowchanraw.h:36
 horaslowchanraw.h:37
 horaslowchanraw.h:38
 horaslowchanraw.h:39
 horaslowchanraw.h:40