setting of the class name of the entry's object included in all constructors
authorrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Nov 2009 18:39:49 +0000 (18:39 +0000)
committerrgrosso <rgrosso@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 28 Nov 2009 18:39:49 +0000 (18:39 +0000)
STEER/AliCDBEntry.cxx
STEER/AliCDBStorage.cxx

index 368f73a..1249c0c 100644 (file)
@@ -56,7 +56,7 @@ fId(path, runRange, -1, -1),
 fMetaData(metaData),
 fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 //_____________________________________________________________________________
@@ -68,7 +68,7 @@ fId(path, runRange, version, -1),
 fMetaData(metaData),
 fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 //_____________________________________________________________________________
@@ -81,7 +81,7 @@ fId(path, runRange, version, subVersion),
 fMetaData(metaData), 
 fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 
@@ -94,7 +94,7 @@ fId(path, firstRun, lastRun, -1, -1),
 fMetaData(metaData), 
 fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 //_____________________________________________________________________________
@@ -107,7 +107,7 @@ fId(path, firstRun, lastRun, version, -1),
 fMetaData(metaData), 
 fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 //_____________________________________________________________________________
@@ -119,7 +119,7 @@ fObject(object),
 fId(path, firstRun, lastRun, version, subVersion),
 fMetaData(metaData), fIsOwner(owner){
 // constructor
-
+    fMetaData->SetObjectClassName(fObject->ClassName());
 }
 
 //_____________________________________________________________________________
index d7dc53b..026a469 100644 (file)
@@ -414,9 +414,6 @@ Bool_t AliCDBStorage::Put(AliCDBEntry* entry, AliCDBManager::DataType type) {
                        return 0;
        }
 
-       // set object's class name into metaData!
-       entry->GetMetaData()->SetObjectClassName(entry->GetObject()->ClassName());
-
        return PutEntry(entry);
 }