fix finding of pad neighbours; remove methods to write them in OCDB
[u/mrichter/AliRoot.git] / VZERO / DBStorageSurvey.C
CommitLineData
ef302f91 1
2void DBStorageSurvey(){
3
4AliCDBManager *man = AliCDBManager::Instance();
5
6AliCDBStorage *storLoc;
162637e4 7man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
ef302f91 8
9// Setting fake survey values :
10
11AliVZEROSurveyData *surveyda = new AliVZEROSurveyData("Survey");
12
13Float_t ngA[3] = { -22.327, -22.427, -84.7 };
14surveyda->SetPointA(ngA);
15Float_t ngB[3] = { 22.927, -22.427, -84.7 };
16surveyda->SetPointB(ngB);
17Float_t ngC[3] = { 22.927, 22.827, -84.7 };
18surveyda->SetPointC(ngC);
19Float_t ngD[3] = { -22.327, 22.827, -84.7 };
20surveyda->SetPointD(ngD);
21
22// Creation of the object VZERO Survey as a MetaData
23
24TObjString str("VZERO Survey"); // object that will be stored
25
26AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
27
28AliCDBId id("VZERO/Survey/Data",0,9999999);
29
30//md->SetObjectClassName("VZERO survey parameters"); automatically
31//set to AliVZEROSurveyData by the CDB classes during storage
32
33md->SetResponsible("Brigitte Cheynis");
34md->SetBeamPeriod(0);
35md->SetAliRootVersion("March2007");
36md->SetComment("Prototype");
37md->PrintMetaData();
38
39storLoc = man->GetDefaultStorage();
40storLoc->Put(surveyda, id, md);
41
42storLoc->Delete();
43delete md;
44
45}