Renaming calibration classes (A.Colla)
[u/mrichter/AliRoot.git] / STEER / AliCDBEntry.h
CommitLineData
fe913d8f 1#ifndef ALICDBENTRY_H
2#define ALICDBENTRY_H
2c8628dd 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8///
9/// class that contains an object from the data base and knows about its
10/// validity range (meta data)
11///
12
13#include <TObject.h>
fe913d8f 14#include "AliCDBMetaData.h"
2c8628dd 15
16
fe913d8f 17class AliCDBEntry: public TObject {
2c8628dd 18public:
fe913d8f 19 AliCDBEntry();
20 AliCDBEntry(const TObject* object, const AliCDBMetaData& metaData);
21 virtual ~AliCDBEntry();
2c8628dd 22
fe913d8f 23 AliCDBEntry(const AliCDBEntry& entry);
24 AliCDBEntry& operator = (const AliCDBEntry& entry);
2c8628dd 25
26 void SetVersion(Int_t version = -1)
fe913d8f 27 {fMetaData.SetVersion(version);}
f05209ee 28
29 void SetRunRange(Int_t firstRun = -1, Int_t lastRun=-1)
fe913d8f 30 {fMetaData.SetRunRange(firstRun, lastRun);}
2c8628dd 31
32 virtual const char* GetName() const;
33 const TObject* GetObject() const {return fObject;}
fe913d8f 34 const AliCDBMetaData& GetCDBMetaData() const {return fMetaData;}
2c8628dd 35
36 virtual Int_t Compare(const TObject* object) const;
37
38private:
39 TObject* fObject; // pointer to the data base entry obj.
fe913d8f 40 AliCDBMetaData fMetaData; // object's meta data
2c8628dd 41
fe913d8f 42 ClassDef(AliCDBEntry, 2) // container for a data base entry object
2c8628dd 43};
44
45#endif