Changes related to the extraction of the V0 finder into a separate class (A. Dainese...
[u/mrichter/AliRoot.git] / ITS / StoreDDLMapSDD.C
CommitLineData
979b5a5f 1#if !defined(__CINT__) || defined(__MAKECINT__)
2#include "AliCDBManager.h"
3#include "AliITSDDLModuleMapSDD.h"
4#include "AliCDBMetaData.h"
5#include "AliCDBStorage.h"
6#include "AliCDBId.h"
7#include "AliCDBPath.h"
8#include "AliCDBEntry.h"
9#include <TObjArray.h>
10#include <TRandom3.h>
11#endif
12
13void StoreDDLMapSDD(Int_t firstRun=0, Int_t lastRun=9999999){
14 ///////////////////////////////////////////////////////////////////////
15 // Macro to generate and store the DDL map for SDD //
16 // Generates: //
17 // 1 file with 1 AliITSDDLModuleMapSDD object (DDLmapSDD) //
18 ///////////////////////////////////////////////////////////////////////
19
20 if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
21 AliCDBManager::Instance()->SetDefaultStorage("local://OCDB");
22 }
23
24
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");
31
32 AliCDBId idDDLSDD("ITS/Calib/DDLMapSDD",firstRun, lastRun);
33 AliITSDDLModuleMapSDD *ddlmap=new AliITSDDLModuleMapSDD();
34 ddlmap->SetDefaultMap();
35 AliCDBManager::Instance()->GetDefaultStorage()->Put(ddlmap, idDDLSDD, md1);
36}