1 #if !defined(__CINT__) || defined(__MAKECINT__)
2 #include "AliCDBManager.h"
3 #include "AliITSDDLModuleMapSDD.h"
4 #include "AliCDBMetaData.h"
5 #include "AliCDBStorage.h"
7 #include "AliCDBPath.h"
8 #include "AliCDBEntry.h"
13 void StoreDDLMapSDD(Int_t firstRun=0, Int_t lastRun=9999999){
14 ///////////////////////////////////////////////////////////////////////
15 // Macro to generate and store the DDL map for SDD //
17 // 1 file with 1 AliITSDDLModuleMapSDD object (DDLmapSDD) //
18 ///////////////////////////////////////////////////////////////////////
20 if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
21 AliCDBManager::Instance()->SetDefaultStorage("local://OCDB");
25 AliCDBMetaData *md1= new AliCDBMetaData(); // metaData describing the object
26 md1->SetObjectClassName("AliITSDDLModuleMapSDD");
27 md1->SetResponsible("Francesco Prino");
28 md1->SetBeamPeriod(0);
29 md1->SetAliRootVersion("Head 20 dec. 2007"); //root version
30 md1->SetComment("This is a test");
32 AliCDBId idDDLSDD("ITS/Calib/DDLMapSDD",firstRun, lastRun);
33 AliITSDDLModuleMapSDD *ddlmap=new AliITSDDLModuleMapSDD();
34 ddlmap->SetDefaultMap();
35 AliCDBManager::Instance()->GetDefaultStorage()->Put(ddlmap, idDDLSDD, md1);