KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDBChIoPressures.h
Go to the documentation of this file.
1 /***************************************************************************
2 $Id: KVDBChIoPressures.h,v 1.4 2007/02/14 14:11:15 franklan Exp $
3  KVDBChIoPressures5.h - description
4  -------------------
5  begin : mer mai 7 2003
6  copyright : (C) 2003 by Alexis Mignon
7  email : mignon@ganil.fr
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef KVDB_CHIO_PRESSURES
19 #define KVDB_CHIO_PRESSURES
20 
21 #define CHIO_2_3 0
22 #define CHIO_4_5 1
23 #define CHIO_6_7 2
24 #define CHIO_8_12 3
25 #define CHIO_13_17 4
26 
27 #include "Riostream.h"
28 #include "KVDBRecord.h"
29 
46 private:
48 protected:
50  void InitCommon();
51 
52 public:
55  Float_t p5);
59 
60  Float_t GetChIoPressures(UInt_t chio_number);
62  virtual Float_t GetPressure(UInt_t chio_number);
63  virtual Float_t* GetPressures();
64  void SetPressures(Float_t p1 = 0, Float_t p2 = 0, Float_t p3 = 0,
65  Float_t p4 = 0, Float_t p5 = 0);
66  void SetPressures(Float_t* pressures);
67  virtual void SetPressure(UInt_t n, Float_t pressure);
68 
69  virtual void Print(Option_t* option = "") const;
70 
71  ClassDef(KVDBChIoPressures, 1) //Database record with INDRA ChIo pressures for a set of runs
72 };
73 
75 {
76  return fPressures[chio_number];
77 }
78 
80 {
81  return fPressures;
82 }
83 
85 {
86  return fPressures[chio_number];
87 }
88 
90 {
91  return fPressures;
92 }
93 
95  Float_t p3, Float_t p4,
96  Float_t p5)
97 {
98  fPressures[CHIO_2_3] = p1;
99  fPressures[CHIO_4_5] = p2;
100  fPressures[CHIO_6_7] = p3;
101  fPressures[CHIO_8_12] = p4;
102  fPressures[CHIO_13_17] = p5;
103 }
104 
106 {
107  for (UInt_t i = CHIO_2_3; i <= CHIO_13_17; i++) {
108  fPressures[i] = pressures[i];
109  }
110 }
111 
113 {
114  fPressures[n] = pressure;
115 }
116 
117 #endif
unsigned int UInt_t
#define CHIO_4_5
#define CHIO_8_12
#define CHIO_13_17
#define CHIO_6_7
#define CHIO_2_3
float Float_t
const char Option_t
#define ClassDef(name, id)
CHIO pressure parameters.
void SetPressures(Float_t p1=0, Float_t p2=0, Float_t p3=0, Float_t p4=0, Float_t p5=0)
virtual void Print(Option_t *option="") const
Float_t * GetChIoPressures()
virtual void SetPressure(UInt_t n, Float_t pressure)
virtual Float_t GetPressure(UInt_t chio_number)
virtual Float_t * GetPressures()
KVDBChIoPressures(Float_t *pressures)
static UInt_t fSetNumber
Float_t fPressures[5]
[5]
Record folder for the database.
Definition: KVDBRecord.h:42
const Int_t n