KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVINDRADBRun.h
Go to the documentation of this file.
1 /***************************************************************************
2 $Id: KVINDRADBRun.h,v 1.10 2009/01/22 13:58:33 franklan Exp $
3 $Revision: 1.10 $
4 $Date: 2009/01/22 13:58:33 $
5 $Author: franklan $
6  ***************************************************************************/
7 #ifndef KV_DB_INDRARUN_H
8 #define KV_DB_INDRARUN_H
9 
10 #include "KVDBTape.h"
11 #include "KVString.h"
12 #include "KVDBRun.h"
13 #include "KVDatime.h"
14 
29 class KVINDRADBRun: public KVDBRun {
30 
31 private:
33 public:
34 
35  KVINDRADBRun();
36  KVINDRADBRun(Int_t number, const Char_t* title = "INDRA Run");
37  virtual ~ KVINDRADBRun();
38 
39  KVDBTape* GetTape() const;
40  Int_t GetTapeNumber() const;
42  {
43  return Get("Dead time (%)");
44  };
45  const Char_t* GetCahier() const
46  {
47  return GetString("Logbook");
48  };
49  const Char_t* GetLogbook() const
50  {
51  return GetCahier();
52  };
53 
55  {
56  Set("Dead time (%)", tmp);
57  };
58 
59  void SetCahier(const Char_t* log)
60  {
61  SetLogbook(log);
62  };
63  void SetLogbook(const Char_t* log)
64  {
65  Set("Logbook", log);
66  };
67 
69  Double_t Coul_par_top = 1.e-10) const;
71  Double_t Coul_par_top = 1.e-10) const;
72 
73  Double_t GetTempsMort() const;
75  {
76  return GetTempsMort();
77  };
78  Double_t GetNIncidentIons(Double_t Q_apres_cible,
79  Double_t Coul_par_top = 1.e-10) const;
80 
87  virtual Double_t GetGeneDirectTime(Double_t average_gene_dir_frequency = 185.0) const
88  {
89  return GetScaler("Gene DIRECT") / average_gene_dir_frequency;
90  }
91  virtual void UnsetSystem();
92 
94  {
99  else fStartEndDate.Set();
100  return fStartEndDate;
101  };
103  {
106  if (strcmp(GetEndDate(), "")) fStartEndDate.SetGanacqDate(GetEndDate());
107  else fStartEndDate.Set();
108  return fStartEndDate;
109  };
110  Float_t GetMeanPulser(const Char_t*);
111 
112  ClassDef(KVINDRADBRun, 4) //Class for storing information on INDRA runs
113 };
114 #endif
int Int_t
char Char_t
double Double_t
float Float_t
#define ClassDef(name, id)
double log(double)
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
const Char_t * GetEndDate() const
Definition: KVDBRun.h:158
void Set(const Char_t *param, Double_t val)
Set numerical (non-scaler) characteristic of run.
Definition: KVDBRun.h:230
Double_t Get(const Char_t *param) const
Get numerical (non-scaler) characteristic of run.
Definition: KVDBRun.h:236
const Char_t * GetStartDate() const
Definition: KVDBRun.h:150
virtual Int_t GetScaler(const Char_t *name) const
Get value of scaler with the given name for this run.
Definition: KVDBRun.h:214
const Char_t * GetString(const Char_t *param) const
Get characteristic of run.
Definition: KVDBRun.h:247
Database entry describing a data storage tape used to store raw data.
Definition: KVDBTape.h:24
Extension of TDatime to handle various useful date formats.
Definition: KVDatime.h:32
void SetGanacqDate(const Char_t *GanacqDateString)
Definition: KVDatime.cpp:323
Database entry for each run of an INDRA experiment.
Definition: KVINDRADBRun.h:29
Double_t GetNIncidentIons(Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
KVDBTape * GetTape() const
virtual Double_t GetGeneDirectTime(Double_t average_gene_dir_frequency=185.0) const
Definition: KVINDRADBRun.h:87
void SetCahier(const Char_t *log)
Definition: KVINDRADBRun.h:59
Double_t GetTMpercent() const
Definition: KVINDRADBRun.h:41
Float_t GetMeanPulser(const Char_t *)
Double_t GetTempsMort() const
Double_t GetEventCrossSection(Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
KVINDRADBRun()
default ctor
Int_t GetTapeNumber() const
Double_t GetDeadTime() const
Definition: KVINDRADBRun.h:74
virtual ~ KVINDRADBRun()
const Char_t * GetLogbook() const
Definition: KVINDRADBRun.h:49
void SetLogbook(const Char_t *log)
Definition: KVINDRADBRun.h:63
Double_t GetTotalCrossSection(Double_t Q_apres_cible, Double_t Coul_par_top=1.e-10) const
KVDatime & GetEndDatime()
Definition: KVINDRADBRun.h:102
virtual void UnsetSystem()
const Char_t * GetCahier() const
Definition: KVINDRADBRun.h:45
void SetTMpercent(Float_t tmp)
Definition: KVINDRADBRun.h:54
KVDatime fStartEndDate
used by GetStartDatime and GetEndDatime methods
Definition: KVINDRADBRun.h:32
KVDatime & GetStartDatime()
Definition: KVINDRADBRun.h:93
void Set()