Changes for Root6 (Mikolaj)
[u/mrichter/AliRoot.git] / ACORDE / macros / MakeACORDEOCDBConfigModAct.C
1
2 /**************************************************************************
3
4         Macro created for storing the OCDB Config data of ACORDE
5         in $ALICE_ROOT/OCDB/ACORDE/Config/ModulesActivity 
6         
7         From: 
8
9                 Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch>
10                 FCFM, BUAP, Puebla, Mexico
11
12         Created:
13
14                 March 3rd. 2009 @ CERN
15
16
17         Further commnents:
18
19                 Arturo Fernandez <afernan@mail.cern.ch>
20
21 **************************************************************************/
22 void MakeACORDEOCDBConfigModAct()
23 {
24
25         AliCDBManager *man = AliCDBManager::Instance();
26
27         AliCDBStorage *storLoc;
28         man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
29
30
31         AliACORDECalibData *calibda = new AliACORDECalibData("OCDBConfigModAct");
32
33         Float_t ModulesActivity[60] = 
34         {
35                 0.92,0.51,0.68,0.76,0.78,0.83,0.00,0.69,0.72,0.86,
36                 0.86,0.85,0.79,0.75,0.79,0.62,0.82,0.92,0.79,0.78,
37                 0.00,0.90,0.84,0.95,0.79,0.87,0.91,0.88,0.92,0.82,
38                 0.80,0.98,1.00,0.89,0.82,0.89,0.85,0.92,0.88,0.91,
39                 0.86,0.00,0.86,0.92,0.88,0.81,0.45,0.84,0.86,0.60,
40                 0.84,0.86,0.74,0.24,0.71,0.82,0.56,0.00,0.00,0.79               
41         };
42   
43         calibda->SetModulesActivity(ModulesActivity);
44         
45         // Creation of the object ACORDE Calibration as a MetaData
46         
47         TObjString str("ACORDE OCDB Reference Config Modules Activity Data");      // object that will be stored
48
49         AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
50
51         AliCDBId id("ACORDE/Config/ModulesActivity",0,9999999);
52
53         md->SetResponsible("Mario Rodriguez");
54         md->SetBeamPeriod(0);
55         md->SetAliRootVersion("Current trunk version");
56         md->SetComment("Version 1.0 of OCDB Reference Config Data for ACORDE");
57         md->PrintMetaData();
58
59         storLoc = man->GetDefaultStorage();
60         storLoc->Put(calibda, id, md);
61
62         storLoc->Delete();
63         delete md;
64
65 }
66