KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVRunFile.h
1
3
4#ifndef __KVRUNFILE_H
5#define __KVRUNFILE_H
6
7#include "KVBase.h"
8
9#include <KVDBRun.h>
10#include <KVDatime.h>
11
19class KVRunFile : public KVBase {
24
25public:
26 KVRunFile();
27 KVRunFile(KVDBRun*, const KVString&, const KVDatime&, const KVString&, const KVString&);
28
29 virtual ~KVRunFile();
30
31 const KVDBRun* GetRun() const
32 {
33 return fRun;
34 }
36 {
37 return (fRun ? fRun->GetNumber() : 0);
38 }
40 {
41 return (fRun ? fRun->GetTrigger() : 0);
42 }
44 {
45 return (fRun ? fRun->GetEvents() : 0);
46 }
47 const Char_t* GetFileWritten() const
48 {
49 return fFileWritten.AsString();
50 }
51 const Char_t* GetComments() const
52 {
53 return (fRun ? fRun->GetComments() : "");
54 }
55 const Char_t* GetVersion() const
56 {
57 return fVersion;
58 }
59 const Char_t* GetUser() const
60 {
61 return fUser;
62 }
63 Int_t Compare(const TObject* obj) const;
65 {
66 return kTRUE;
67 }
68
69 ClassDef(KVRunFile, 1) //A file containing data for a run
70};
71
72#endif
int Int_t
bool Bool_t
char Char_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
Base class for KaliVeda framework.
Definition KVBase.h:142
virtual Int_t GetNumber() const
Definition KVDBRecord.h:73
Description of an experimental run in database ,,.
Definition KVDBRun.h:36
const Char_t * GetComments() const
Definition KVDBRun.h:147
ULong64_t GetEvents() const
Definition KVDBRun.h:134
Int_t GetTrigger() const
Definition KVDBRun.h:104
Extension of TDatime to handle various useful date formats.
Definition KVDatime.h:33
Description of an individual run file in an experimental dataset.
Definition KVRunFile.h:19
KVRunFile()
Default constructor.
Definition KVRunFile.cpp:12
Bool_t IsSortable() const
Definition KVRunFile.h:64
Int_t GetRunNumber() const
Definition KVRunFile.h:35
const Char_t * GetComments() const
Definition KVRunFile.h:51
KVDatime fFileWritten
modification date of file
Definition KVRunFile.h:21
Int_t Compare(const TObject *obj) const
Definition KVRunFile.cpp:46
const KVDBRun * GetRun() const
Definition KVRunFile.h:31
const Char_t * GetFileWritten() const
Definition KVRunFile.h:47
KVString fUser
name of user who wrote file
Definition KVRunFile.h:23
const Char_t * GetUser() const
Definition KVRunFile.h:59
virtual ~KVRunFile()
Destructor.
Definition KVRunFile.cpp:34
KVDBRun * fRun
pointer to associated database run
Definition KVRunFile.h:20
Int_t GetEvents() const
Definition KVRunFile.h:43
Int_t GetTrigger() const
Definition KVRunFile.h:39
const Char_t * GetVersion() const
Definition KVRunFile.h:55
KVString fVersion
version of KaliVeda used to write file
Definition KVRunFile.h:22
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition KVString.h:73
const char * AsString() const