2 /**************************************************************************
4 Macro created for storing the OCDB Config Efficiency data of
5 ACORDE in $ALICE_ROOT/OCDB/ACORDE/Config/Efficiency
10 Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch>
11 FCFM, BUAP, Puebla, Mexico
15 March 3rd. 2009 @ CERN
20 Arturo Fernandez <afernan@mail.cern.ch>
22 **************************************************************************/
23 void MakeACORDEOCDBConfigEff()
26 AliCDBManager *man = AliCDBManager::Instance();
28 AliCDBStorage *storLoc;
29 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
32 AliACORDECalibData *calibda = new AliACORDECalibData("OCDBConfigEff");
34 Float_t Efficiencies[60] =
36 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
37 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
38 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
39 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
40 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
41 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94
43 calibda->SetEfficiencies(Efficiencies);
45 // Creation of the object ACORDE Calibration as a MetaData
47 TObjString str("ACORDE OCDB Config Efficiency Data"); // object that will be stored
49 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
51 AliCDBId id("ACORDE/Config/Efficiency",0,9999999);
53 md->SetResponsible("Mario Rodriguez");
55 md->SetAliRootVersion("Current trunk version");
56 md->SetComment("Version 1.0 of OCDB Config Efficiency Reference Calib Data for ACORDE");
59 storLoc = man->GetDefaultStorage();
60 storLoc->Put(calibda, id, md);