ROOT logo
#ifndef HSPECPARORA2IO_H

#define HSPECPARORA2IO_H


#include "hdetparora2io.h"
#include "TList.h"


class HSpecGeomPar;
class HOra2GeomDetVersion;
class HTrbnetAddressMapping;
class HTrb2Correction;
class HSlowPar;

class HSpecParOra2Io : public HDetParOra2Io {
private:
  HOra2GeomDetVersion* geomCaveVers;    // Geometry version and range for the cave

  HOra2GeomDetVersion* geomSectorVers;  // Geometry version and range for the sectors

  HOra2GeomDetVersion* geomTargetVers;  // Geometry version and range for the targets

  HParOra2Set*         alignTargetVers; // Alignment version and range for the targets

  HParOra2Set*         slowVers;        // Slow control parameter version and range

  TString              slowPartition;   // Slow control partition

public:
  HSpecParOra2Io(HOra2Conn* p=0);
  ~HSpecParOra2Io();
  Bool_t init(HParSet*,Int_t*);
  Int_t write(HParSet*);
  Int_t writeTrb2Corrections(HTrbnetAddressMapping*);
private:
  Bool_t read(HSpecGeomPar*,Int_t*);
  Bool_t readTargetVolumes(HSpecGeomPar*,TList&);
  Bool_t getVersion(HParSet*,Int_t&);
  Bool_t read(HTrbnetAddressMapping*);
  Bool_t readTrb2CorrData(HTrb2Correction*,Int_t);
  void findTrb2CorrDataTimeRange(HTrb2Correction*,Double_t*);
  Bool_t read(HSlowPar* pPar);
  Bool_t readSlowParRuns(HSlowPar*,Int_t&,Int_t&);
  void readSlowSummaries(HSlowPar* pPar);
  Int_t writeAlignment(HSpecGeomPar*);
  Int_t createTrbnetAddressMappingVers(HTrbnetAddressMapping*);
  Int_t writeTrbnetAddressMapping(HTrbnetAddressMapping*);
  Int_t compareForWrite(HTrb2Correction&,Float_t&);
  ClassDef(HSpecParOra2Io,0) // Parameter I/O from Oracle for spectrometer

};

#endif  /* !HSPECPARORA2IO_H */

 hspecparora2io.h:1
 hspecparora2io.h:2
 hspecparora2io.h:3
 hspecparora2io.h:4
 hspecparora2io.h:5
 hspecparora2io.h:6
 hspecparora2io.h:7
 hspecparora2io.h:8
 hspecparora2io.h:9
 hspecparora2io.h:10
 hspecparora2io.h:11
 hspecparora2io.h:12
 hspecparora2io.h:13
 hspecparora2io.h:14
 hspecparora2io.h:15
 hspecparora2io.h:16
 hspecparora2io.h:17
 hspecparora2io.h:18
 hspecparora2io.h:19
 hspecparora2io.h:20
 hspecparora2io.h:21
 hspecparora2io.h:22
 hspecparora2io.h:23
 hspecparora2io.h:24
 hspecparora2io.h:25
 hspecparora2io.h:26
 hspecparora2io.h:27
 hspecparora2io.h:28
 hspecparora2io.h:29
 hspecparora2io.h:30
 hspecparora2io.h:31
 hspecparora2io.h:32
 hspecparora2io.h:33
 hspecparora2io.h:34
 hspecparora2io.h:35
 hspecparora2io.h:36
 hspecparora2io.h:37
 hspecparora2io.h:38
 hspecparora2io.h:39
 hspecparora2io.h:40
 hspecparora2io.h:41
 hspecparora2io.h:42
 hspecparora2io.h:43
 hspecparora2io.h:44