]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/MakeVZEROTimeSlewingEntry.C
Brand-new implementation of Raw->SDigits. One first reconstructs the signal from...
[u/mrichter/AliRoot.git] / VZERO / MakeVZEROTimeSlewingEntry.C
1 void MakeVZEROTimeSlewingEntry()
2 {
3
4   AliCDBManager *man = AliCDBManager::Instance();
5   man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
6
7   // Creation of the time slewing OCDB object
8   // x = ADC charge / TDC threshold
9   TF1 *slew = new TF1("TimeSlewing","[0]*TMath::Power(x,[1])",1,1024);
10   slew->SetParameter(0,1.05e1);
11   slew->SetParameter(1,-5.0e-1);
12
13   /*
14   NO.   NAME      VALUE            ERROR          SIZE      DERIVATIVE 
15    1  p0           1.04508e+01   1.25434e-02   1.62336e-04  -1.01124e-02
16    2  p1          -4.85664e-01   1.26751e-03   5.74823e-06  -2.65093e-01
17    3  p2           7.79978e+01   7.05932e-03   4.05090e-05  -3.55601e-02
18  FCN=7919.32 FROM MIGRAD    STATUS=CONVERGED     104 CALLS         105 TOTAL
19                      EDM=4.59683e-11    STRATEGY= 1      ERROR MATRIX ACCURATE 
20   EXT PARAMETER                                   STEP         FIRST   
21   NO.   NAME      VALUE            ERROR          SIZE      DERIVATIVE 
22    1  p0           1.03716e+01   8.01903e-03   8.58839e-05   2.80998e-03
23    2  p1          -4.90768e-01   1.00097e-03   3.29876e-06   9.17350e-02
24    3  p2           7.80244e+01   5.57426e-03   3.72049e-05   1.45924e-02
25   */
26
27   /*
28   NO.   NAME      VALUE            ERROR          SIZE      DERIVATIVE 
29    1  p0           1.06394e+01   8.78531e-03  -0.00000e+00   2.64914e-06
30    2  p1          -5.00000e-01     fixed    
31    3  p2           7.80541e+01   2.10785e-03   0.00000e+00   3.36855e-07
32
33   NO.   NAME      VALUE            ERROR          SIZE      DERIVATIVE 
34    1  p0           1.04238e+01   5.26216e-03   8.98026e-05   1.59005e-05
35    2  p1          -5.00000e-01     fixed    
36    3  p2           7.80744e+01   1.37139e-03   3.72288e-05   2.78012e-05
37   */
38         
39   TObjString str("VZERO Time-slewing correction");
40
41   AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
42   md->SetResponsible("Brigitte Cheynis");
43   md->SetBeamPeriod(0);
44   md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
45   md->SetComment("Time-slewing correction used in reconstruction and MC simulation");
46   md->PrintMetaData();
47
48   AliCDBStorage *storLoc = man->GetDefaultStorage();
49   AliCDBId id("VZERO/Calib/TimeSlewing",0,AliCDBRunRange::Infinity());
50
51   storLoc->Put(slew, id, md);
52
53   storLoc->Delete();
54   delete md;
55
56 }