]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCDBMetaData.h
Getters and setter of vtx type modified.
[u/mrichter/AliRoot.git] / STEER / AliCDBMetaData.h
CommitLineData
9e1ceb13 1#ifndef ALI_META_DATA_H
2#define ALI_META_DATA_H
3
fe913d8f 4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
9e1ceb13 7/////////////////////////////////////////////////////////////////////
8// //
9// class AliCDBMetaData //
10// Set of data describing the object //
11// but not used to identify the object //
12// //
13/////////////////////////////////////////////////////////////////////
fe913d8f 14
15#include <TObject.h>
9e1ceb13 16#include <TMap.h>
fe913d8f 17
18class AliCDBMetaData: public TObject {
9e1ceb13 19
fe913d8f 20public:
9e1ceb13 21 AliCDBMetaData();
c3a7b59a 22 AliCDBMetaData(const char *responsible, UInt_t beamPeriod=0, const char* alirootVersion="", const char* comment="");
9e1ceb13 23 virtual ~AliCDBMetaData();
fe913d8f 24
9e1ceb13 25 void SetObjectClassName(const char* name)
26 {fObjectClassName = name;};
27 const char* GetObjectClassName() const
28 {return fObjectClassName.Data();};
29
30 void SetResponsible(const char* yourName)
31 {fResponsible = yourName;};
32 const char* GetResponsible() const
33 {return fResponsible.Data();};
fe913d8f 34
9e1ceb13 35 void SetBeamPeriod(UInt_t period)
36 {fBeamPeriod = period;};
37 UInt_t GetBeamPeriod() const
38 {return fBeamPeriod;};
fe913d8f 39
9e1ceb13 40 void SetAliRootVersion(const char* version)
41 {fAliRootVersion = version;};
42 const char* GetAliRootVersion() const
43 {return fAliRootVersion.Data();};
fe913d8f 44
9e1ceb13 45 void SetComment(const char* comment)
46 {fComment = comment;};
47 const char* GetComment() const
48 {return fComment.Data();};
fe913d8f 49
9e1ceb13 50 void SetProperty(const char* property, TObject* object);
51 TObject* GetProperty(const char* property) const;
52 Bool_t RemoveProperty(const char* property);
53
54 void PrintMetaData();
55
56private:
fe913d8f 57
9e1ceb13 58 TString fObjectClassName; // object's class name
59 TString fResponsible; // object's responsible person
b05400be 60 UInt_t fBeamPeriod; // beam period
9e1ceb13 61 TString fAliRootVersion; // AliRoot version
62 TString fComment; // extra comments
63 //TList fCalibRuns;
64
65 TMap fProperties; // list of object specific properties
fe913d8f 66
9e1ceb13 67 ClassDef(AliCDBMetaData, 1);
fe913d8f 68};
69
fe913d8f 70#endif