KaliVeda
Toolkit for HIC analysis
KVDBTape.h
1 /***************************************************************************
2 $Id: KVDBTape.h,v 1.13 2006/10/19 14:32:43 franklan Exp $
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  * *
9  ***************************************************************************/
10 #ifndef KV_DB_TAPE_H
11 #define KV_DB_TAPE_H
12 
13 #include "KVDBRecord.h"
14 #include "KVDBKey.h"
15 
16 class KVDBRun;
17 
25 class KVDBTape: public KVDBRecord {
26 
27 public:
28  KVDBTape();
29  KVDBTape(Int_t tape_number);
30  virtual ~ KVDBTape();
31 
32  virtual KVRList* GetRuns()
33  {
34  if (GetKey("Runs")) {
35  return GetKey("Runs")->GetLinks();
36  }
37  return 0;
38  }
39  void AddRun(KVDBRun* run);
40 
41  ClassDef(KVDBTape, 3) // Class describing a DLT tape
42 };
43 
44 #endif
int Int_t
#define ClassDef(name, id)
virtual KVRList * GetLinks() const
return the list of cross-referenced objects
Definition: KVDBKey.h:65
Record folder for the database.
Definition: KVDBRecord.h:43
virtual KVDBKey * GetKey(const Char_t *key) const
Definition: KVDBRecord.cpp:290
Description of an experimental run in database ,,.
Definition: KVDBRun.h:36
Database entry describing a data storage tape used to store raw data.
Definition: KVDBTape.h:25
void AddRun(KVDBRun *run)
add run to list of runs stored on this tape
Definition: KVDBTape.cpp:52
virtual KVRList * GetRuns()
Definition: KVDBTape.h:32
virtual ~ KVDBTape()
KVDBTape()
Definition: KVDBTape.cpp:19
Wrapper for TRefArray adding some functionality.
Definition: KVRList.h:37