1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 ///////////////////////////////////////////////////////////////////////////////
20 // Object meta data: full description of a run dependent database object //
22 ///////////////////////////////////////////////////////////////////////////////
26 #include <TObjArray.h>
27 #include <TObjString.h>
30 #include "AliObjectMetaData.h"
31 #include "AliMetaData.h"
35 ClassImp(AliObjectMetaData)
38 //_____________________________________________________________________________
39 AliObjectMetaData::AliObjectMetaData() :
43 fResponsible("Duck, Donald"),
46 // default constructor
47 // the default values mean no selection
50 //_____________________________________________________________________________
51 AliObjectMetaData::AliObjectMetaData
52 (const char* name, Int_t firstRun, Int_t lastRun, Int_t period,
53 const char* objFormat, const char* responsible,
54 const char* extraInfo):
55 AliMetaData(name, firstRun, lastRun),
58 fResponsible(responsible),
64 //_____________________________________________________________________________
65 AliObjectMetaData::AliObjectMetaData(const AliObjectMetaData& entry) :
67 fPeriod(entry.fPeriod),
68 fFormat(entry.fFormat),
69 fResponsible(entry.fResponsible),
70 fExtraInfo(entry.fExtraInfo)
75 //_____________________________________________________________________________
76 AliObjectMetaData& AliObjectMetaData::operator = (const AliObjectMetaData& entry)
78 // assignment operator
80 fFirstRun = entry.fFirstRun;
81 fLastRun = entry.fLastRun;
82 fPeriod=entry.fPeriod;
83 fFormat=entry.fFormat;
84 fResponsible=entry.fResponsible;
85 fExtraInfo=entry.fExtraInfo;
90 //_____________________________________________________________________________
91 const int AliObjectMetaData::GetPeriod() const
93 // get the beam period
98 //_____________________________________________________________________________
99 const char* AliObjectMetaData::GetFormat() const
101 // get the object's format
103 return fFormat.Data();
106 //_____________________________________________________________________________
107 const char* AliObjectMetaData::GetResponsible() const
109 // get the object's responsible (the person who made it)
111 return fResponsible.Data();
114 //_____________________________________________________________________________
115 const char* AliObjectMetaData::GetExtraInfo() const
117 // get the object's extra info
119 return fExtraInfo.Data();