]> git.uio.no Git - u/mrichter/AliRoot.git/blob - VZERO/MakeVZEROTimeSlewingEntry.C
- adding members to the CALO cluster data struct to facilitate for use of
[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.06534e1);
11   slew->SetParameter(1,-4.25603e-1);
12         
13   TObjString str("VZERO Time-slewing correction");
14
15   AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
16   md->SetResponsible("Brigitte Cheynis");
17   md->SetBeamPeriod(0);
18   md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
19   md->SetComment("Time-slewing correction used in reconstruction and MC simulation");
20   md->PrintMetaData();
21
22   AliCDBStorage *storLoc = man->GetDefaultStorage();
23   AliCDBId id("VZERO/Calib/TimeSlewing",0,AliCDBRunRange::Infinity());
24
25   storLoc->Put(slew, id, md);
26
27   storLoc->Delete();
28   delete md;
29
30 }