KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
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
16class KVDBRun;
17
25class KVDBTape: public KVDBRecord {
26
27public:
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
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
virtual KVRList * GetRuns()
Definition KVDBTape.h:32
void AddRun(KVDBRun *run)
add run to list of runs stored on this tape
Definition KVDBTape.cpp:52
Wrapper for TRefArray adding some functionality.
Definition KVRList.h:37