ROOT logo

void DBStorageSurvey(){

AliCDBManager *man = AliCDBManager::Instance();

AliCDBStorage *storLoc;
man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");

// Setting fake survey values :

AliVZEROSurveyData *surveyda = new AliVZEROSurveyData("Survey");

Float_t ngA[3] = { -22.327, -22.427, -84.7 };
surveyda->SetPointA(ngA);
Float_t ngB[3] = { 22.927, -22.427, -84.7 };
surveyda->SetPointB(ngB);
Float_t ngC[3] = { 22.927, 22.827, -84.7 };
surveyda->SetPointC(ngC);
Float_t ngD[3] = { -22.327, 22.827, -84.7 };
surveyda->SetPointD(ngD);

// Creation of the object VZERO Survey as a MetaData
	
TObjString str("VZERO Survey");      // object that will be stored

AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object

AliCDBId id("VZERO/Survey/Data",0,9999999);

//md->SetObjectClassName("VZERO survey parameters"); automatically 
//set to AliVZEROSurveyData by the CDB classes during storage 

md->SetResponsible("Brigitte Cheynis");
md->SetBeamPeriod(0);
md->SetAliRootVersion("March2007");
md->SetComment("Prototype");
md->PrintMetaData();

storLoc = man->GetDefaultStorage();
storLoc->Put(surveyda, id, md);

storLoc->Delete();
delete md;

}
 DBStorageSurvey.C:1
 DBStorageSurvey.C:2
 DBStorageSurvey.C:3
 DBStorageSurvey.C:4
 DBStorageSurvey.C:5
 DBStorageSurvey.C:6
 DBStorageSurvey.C:7
 DBStorageSurvey.C:8
 DBStorageSurvey.C:9
 DBStorageSurvey.C:10
 DBStorageSurvey.C:11
 DBStorageSurvey.C:12
 DBStorageSurvey.C:13
 DBStorageSurvey.C:14
 DBStorageSurvey.C:15
 DBStorageSurvey.C:16
 DBStorageSurvey.C:17
 DBStorageSurvey.C:18
 DBStorageSurvey.C:19
 DBStorageSurvey.C:20
 DBStorageSurvey.C:21
 DBStorageSurvey.C:22
 DBStorageSurvey.C:23
 DBStorageSurvey.C:24
 DBStorageSurvey.C:25
 DBStorageSurvey.C:26
 DBStorageSurvey.C:27
 DBStorageSurvey.C:28
 DBStorageSurvey.C:29
 DBStorageSurvey.C:30
 DBStorageSurvey.C:31
 DBStorageSurvey.C:32
 DBStorageSurvey.C:33
 DBStorageSurvey.C:34
 DBStorageSurvey.C:35
 DBStorageSurvey.C:36
 DBStorageSurvey.C:37
 DBStorageSurvey.C:38
 DBStorageSurvey.C:39
 DBStorageSurvey.C:40
 DBStorageSurvey.C:41
 DBStorageSurvey.C:42
 DBStorageSurvey.C:43
 DBStorageSurvey.C:44
 DBStorageSurvey.C:45
 DBStorageSurvey.C:46