Adding macros to store into the OCDB and QAref/ACORDE the reference data for ACORDE...
[u/mrichter/AliRoot.git] / ACORDE / macros / MakeACORDEOCDBConfigRate.C
CommitLineData
5b653c44 1
2/**************************************************************************
3
4 Macro created for storing the OCDB Config Rates data of
5 ACORDE in $ALICE_ROOT/OCDB/ACORDE/Config/Rates
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**************************************************************************/
22void MakeACORDEOCDBConfigRate()
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("OCDBConfgRates");
32
33 Float_t Rates[60] =
34 {
35 1.14, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
36 1.14, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
37 1.14, 0.94, 0.94, 0.94, 0.94, 1.94, 0.94, 0.94, 0.94, 0.94,
38 1.14, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94, 0.94,
39 1.94, 0.94, 0.94, 0.94, 1.94, 0.94, 0.94, 0.94, 0.94, 0.94,
40 0.94, 0.94, 0.94, 0.94, 1.94, 0.94, 0.94, 0.94, 0.94, 0.94
41 };
42
43 calibda->SetRates(Rates);
44
45 // Creation of the object ACORDE Calibration as a MetaData
46
47 TObjString str("ACORDE OCDB Reference Config Rates Data"); // object that will be stored
48
49 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
50
51 AliCDBId id("ACORDE/Config/Rates",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