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