KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDBChIoPressures.h
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
47private:
49protected:
51 void InitCommon();
52
53public:
56 Float_t p5);
60
61 Float_t GetChIoPressures(UInt_t chio_number);
63 virtual Float_t GetPressure(UInt_t chio_number);
64 virtual Float_t* GetPressures();
65 void SetPressures(Float_t p1 = 0, Float_t p2 = 0, Float_t p3 = 0,
66 Float_t p4 = 0, Float_t p5 = 0);
67 void SetPressures(Float_t* pressures);
68 virtual void SetPressure(UInt_t n, Float_t pressure);
69
70 virtual void Print(Option_t* option = "") const;
71
72 ClassDef(KVDBChIoPressures, 1) //Database record with INDRA ChIo pressures for a set of runs
73};
74
76{
77 return fPressures[chio_number];
78}
79
84
86{
87 return fPressures[chio_number];
88}
89
94
96 Float_t p3, Float_t p4,
97 Float_t p5)
98{
99 fPressures[CHIO_2_3] = p1;
100 fPressures[CHIO_4_5] = p2;
101 fPressures[CHIO_6_7] = p3;
102 fPressures[CHIO_8_12] = p4;
103 fPressures[CHIO_13_17] = p5;
104}
105
107{
108 for (UInt_t i = CHIO_2_3; i <= CHIO_13_17; i++) {
109 fPressures[i] = pressures[i];
110 }
111}
112
114{
115 fPressures[n] = pressure;
116}
117
118#endif
unsigned int UInt_t
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:43
const Int_t n