KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVRunFile.cpp
Go to the documentation of this file.
1 //Created by KVClassFactory on Thu Aug 4 12:08:39 2016
2 //Author: John Frankland,,,
3 
4 #include "KVRunFile.h"
5 
7 
8 
9 
13  : KVBase(), fRun(nullptr)
14 {
15  // Default constructor
16 }
17 
18 
19 
21 
22 KVRunFile::KVRunFile(KVDBRun* r, const KVString& f, const KVDatime& d, const KVString& v, const KVString& w)
23  : KVBase(f, "KVRunFile"), fRun(r), fFileWritten(d), fVersion(v), fUser(w)
24 {
25 
26 }
27 
28 
29 
30 
33 
35 {
36  // Destructor
37 }
38 
39 
40 
41 
45 
46 Int_t KVRunFile::Compare(const TObject* obj) const
47 {
48  // Compare two run numbers for sorting lists.
49  // Lists will be sorted in ascending order.
50 
51  KVRunFile* dbobj =
52  dynamic_cast < KVRunFile* >(const_cast < TObject* >(obj));
53  return (dbobj->GetRunNumber() ==
54  GetRunNumber() ? 0 : (dbobj->GetRunNumber() > GetRunNumber() ? -1 : 1));
55 }
56 
57 
int Int_t
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
ROOT::R::TRInterface & r
#define d(i)
#define f(i)
Base class for KaliVeda framework.
Definition: KVBase.h:141
Description of an experimental run in database ,.
Definition: KVDBRun.h:35
Extension of TDatime to handle various useful date formats.
Definition: KVDatime.h:32
Description of an individual run file in an experimental dataset.
Definition: KVRunFile.h:18
KVRunFile()
Default constructor.
Definition: KVRunFile.cpp:12
Int_t GetRunNumber() const
Definition: KVRunFile.h:34
Int_t Compare(const TObject *obj) const
Definition: KVRunFile.cpp:46
virtual ~KVRunFile()
Destructor.
Definition: KVRunFile.cpp:34
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:72
v