Skip to content

Commit

Permalink
Merge pull request alisw#236 from mbroz84/master
Browse files Browse the repository at this point in the history
Gain curve parameters for 2017
  • Loading branch information
alibuild authored Jun 7, 2017
2 parents 2a63329 + f354024 commit 801ffaa
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions AD/macros/MakeADPMGainsEntry.C
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,20 @@ void MakeADPMGainsEntry(const char *outputCDB = "local://$ALICE_ROOT/OCDB")
Double_t b[16] = { 6.230, 6.866, 6.799, 6.510, 6.118, 6.815, 9.027, 6.739,
5.928, 8.848, 6.568, 6.794, 7.394, 5.681, 6.503, 7.147};
/*/
//2016 after run 252234
Double_t a[16] = {1584.3, 1472.4, 1422.5, 1376.6, 1417.6, 1316.6, 1251.3, 1437.6,
1419.6, 1488.5, 1599.5, 1320.5, 1438.0, 1557.8, 1396.2, 1352.5};
Double_t b[16] = { 8.252, 7.496, 7.229, 7.232, 7.488, 7.284, 7.150, 7.613,
7.296, 8.003, 9.106, 7.477, 7.225, 7.254, 8.036, 7.600};
7.296, 8.003, 9.106, 7.477, 7.225, 7.254, 8.036, 7.600};
/*/
//2017 default
Double_t a[16] = {1277.9, 1452.0, 1402.0, 1305.0, 1395.6, 1328.8, 1246.3, 1389.9,
1427.1, 1325.7, 1207.9, 1288.0, 1410.5, 1180.2, 1257.4, 1277.2};

Double_t b[16] = {6.957, 6.282, 6.109, 6.125, 6.452, 6.990, 6.099, 6.261,
6.549, 5.725, 6.879, 6.471, 6.580, 6.486, 5.848, 6.246};

TH2F *gains = new TH2F("ADPMGains", "AD PM gain factors", 16, -0.5, 15.5, 2, -0.5, 1.5);
for(Int_t channel = 0; channel < 16; ++channel) {
Expand All @@ -67,7 +74,7 @@ void MakeADPMGainsEntry(const char *outputCDB = "local://$ALICE_ROOT/OCDB")
md->AddDateToComment();
md->PrintMetaData();

AliCDBId id("AD/Calib/PMGains", 252234, AliCDBRunRange::Infinity());
AliCDBId id("AD/Calib/PMGains", 0, AliCDBRunRange::Infinity());
man->Put(gains, id, md);

delete md;
Expand Down

0 comments on commit 801ffaa

Please sign in to comment.