]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/AliCDBEntry.cxx
Test case for B0 -> mu
[u/mrichter/AliRoot.git] / STEER / AliCDBEntry.cxx
CommitLineData
2c8628dd 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
9e1ceb13 16/////////////////////////////////////////////////////////////////////
17// //
18// class AliCDBEntry //
19// container for an object, it identity (AliCDBId) //
20// and its metaData (AliCDBMetaData) //
21// //
22/////////////////////////////////////////////////////////////////////
2c8628dd 23
fe913d8f 24#include "AliCDBEntry.h"
2c8628dd 25
fe913d8f 26ClassImp(AliCDBEntry)
2c8628dd 27
2c8628dd 28//_____________________________________________________________________________
9e1ceb13 29AliCDBEntry::AliCDBEntry():
30fObject(NULL),
31fMetaData(NULL),
32fIsOwner(kFALSE){
2c8628dd 33// default constructor
34
35}
36
37//_____________________________________________________________________________
9e1ceb13 38AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBId& id,
39 AliCDBMetaData* metaData, Bool_t owner):
40fObject(object),
41fId(id),
42fMetaData(metaData),
43fIsOwner(owner){
2c8628dd 44// constructor
45
46}
47
48//_____________________________________________________________________________
9e1ceb13 49AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
50 const AliCDBRunRange& runRange,
51 AliCDBMetaData* metaData,Bool_t owner):
52fObject(object),
53fId(path, runRange, -1, -1),
54fMetaData(metaData),
55fIsOwner(owner){
56// constructor
2c8628dd 57
2c8628dd 58}
59
2c8628dd 60//_____________________________________________________________________________
9e1ceb13 61AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
62 const AliCDBRunRange& runRange,
63 Int_t version, AliCDBMetaData* metaData, Bool_t owner):
64fObject(object),
65fId(path, runRange, version, -1),
66fMetaData(metaData),
67fIsOwner(owner){
68// constructor
2c8628dd 69
70}
71
72//_____________________________________________________________________________
9e1ceb13 73AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
74 const AliCDBRunRange& runRange,
75 Int_t version, Int_t subVersion,
76 AliCDBMetaData* metaData, Bool_t owner):
77fObject(object),
78fId(path, runRange, version, subVersion),
79fMetaData(metaData),
80fIsOwner(owner){
81// constructor
82
2c8628dd 83}
84
85
9e1ceb13 86//_____________________________________________________________________________
87AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
88 Int_t firstRun, Int_t lastRun,
89 AliCDBMetaData* metaData, Bool_t owner):
90fObject(object),
91fId(path, firstRun, lastRun, -1, -1),
92fMetaData(metaData),
93fIsOwner(owner){
94// constructor
95
96}
2c8628dd 97
98//_____________________________________________________________________________
9e1ceb13 99AliCDBEntry::AliCDBEntry(TObject* object, const AliCDBPath& path,
100 Int_t firstRun, Int_t lastRun,
101 Int_t version, AliCDBMetaData* metaData,
102 Bool_t owner):
103fObject(object),
104fId(path, firstRun, lastRun, version, -1),
105fMetaData(metaData),
106fIsOwner(owner){
107// constructor
2c8628dd 108
2c8628dd 109}
110
9e1ceb13 111//_____________________________________________________________________________
112AliCDBEntry::AliCDBEntry( TObject* object, const AliCDBPath& path,
113 Int_t firstRun, Int_t lastRun,
114 Int_t version, Int_t subVersion,
115 AliCDBMetaData* metaData, Bool_t owner):
116fObject(object),
117fId(path, firstRun, lastRun, version, subVersion),
118fMetaData(metaData), fIsOwner(owner){
119// constructor
120
121}
2c8628dd 122
123//_____________________________________________________________________________
9e1ceb13 124AliCDBEntry::~AliCDBEntry() {
125// destructor
126
127 if (fIsOwner) {
128 if (fObject) {
129 delete fObject;
130 }
2c8628dd 131
9e1ceb13 132 if (fMetaData) {
133 delete fMetaData;
134 }
135 }
2c8628dd 136}
137