63 cout <<
"___________________________________________________" << endl
64 << GetName() <<
" (" << GetTitle() <<
")" << endl;
66 cout <<
"System : " << GetSystem()->GetName() << endl;
67 if (GetSystem()->GetTarget())
68 cout <<
"Target : " << GetSystem()->GetTarget()->
71 cout <<
"___________________________________________________" << endl;
73 if (fParameters.GetNpar()) {
74 fParameters.Print(
"string");
75 cout <<
"___________________________________________________" << endl;
76 fParameters.Print(
"double");
77 cout <<
"___________________________________________________" << endl;
78 fParameters.Print(
"int");
79 cout <<
"___________________________________________________" << endl;
81 std::cout <<
" -- " << fRunFiles.GetEntries() <<
" associated files:\n";
83 cout <<
"___________________________________________________" << endl;
101 outstr << GetNumber() << _delim.
Data();
103 for (
int i = 0; i < fParameters.GetNpar(); i++) {
104 if (fParameters.GetParameter(i)->IsInt()) {
105 s.Form(
"%s=%d", fParameters.GetParameter(i)->GetName(), fParameters.GetParameter(i)->GetInt());
106 outstr << s.Data() << _delim.
Data();
110 for (
int i = 0; i < fParameters.GetNpar(); i++) {
111 if (fParameters.GetParameter(i)->IsDouble()) {
112 s.Form(
"%s=%f", fParameters.GetParameter(i)->GetName(), fParameters.GetParameter(i)->GetDouble());
113 outstr << s.Data() << _delim.
Data();
117 for (
int i = 0; i < fParameters.GetNpar(); i++) {
118 if (fParameters.GetParameter(i)->IsString()) {
123 TString tmp(fParameters.GetParameter(i)->GetString());
125 s.Form(
"%s=%s", fParameters.GetParameter(i)->GetName(), tmp.
Data());
126 outstr << s.Data() << _delim.
Data();
156 SetNumber(kvs.
Atoi());
167 for (
int i = 1; i < fields->
GetEntries(); i++) {
176 if (
value.IsDigit()) {
178 SetScaler(parameter.
Data(),
value.Atoi());
181 else if (
value.IsFloat()) {
191 value.ReplaceAll(
"\\equal",
"=");
212 outstr <<
"Version=10" << endl;
229 GetSystem()->RemoveRun(
this);
231 SetTitle(
"Experimental run");
241 if (GetKey(
"Systems")) {
242 if (GetKey(
"Systems")->GetLinks()->GetSize())
256 if (!GetKey(
"Systems")) {
257 KVDBKey* key = AddKey(
"Systems",
"Physical system used");
264 if (!AddLink(
"Systems", system)) {
265 Warning(
"SetSystem(KVDBSystem*)",
266 "System %s couldn't be set for Run %d. This bizarre...",
267 system->
GetName(), GetNumber());
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Cross-reference in a KVDataBase.
virtual void SetUniqueStatus(Bool_t unique)
virtual void SetSingleStatus(Bool_t single)
virtual KVRList * GetLinks(const Char_t *key) const
Returns the list of records linked to this record in table "key".
Description of an experimental run in database ,,.
void Print(Option_t *option="") const override
virtual void SetSystem(KVDBSystem *system)
Set system for run. Any previous system is unassociated (run will be removed from system's list)
KVDBSystem * GetSystem() const
virtual void WriteRunListLine(std::ostream &, Char_t delim='|') const
virtual void ReadRunListLine(const KVString &)
virtual void UnsetSystem()
virtual void WriteRunListHeader(std::ostream &, Char_t delim='|') const
Write the version flag.
Database class used to store information on different colliding systems studied during an experiment....
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
const char * GetName() const override
Int_t GetEntries() const override
TObject * At(Int_t idx) const override
TObject * First() const override
const char * Data() const
TObjArray * Tokenize(const TString &delim) const
TString & ReplaceAll(const char *s1, const char *s2)