]> git.uio.no Git - u/mrichter/AliRoot.git/blob - GRP/MakeLHCClockPhaseEntry.C
- use mass/z for Light Nuclei in all TPC response functions
[u/mrichter/AliRoot.git] / GRP / MakeLHCClockPhaseEntry.C
1 void MakeLHCClockPhaseEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB")
2 {
3   // Example macro to put in OCDB the default (=0) LHC-clock phase
4   // It is valid fro runs from 0 to inf
5   // The timestamp range is also inf (we store the first and last value for
6   // each beam)
7   AliCDBManager *man = AliCDBManager::Instance();
8   man->SetDefaultStorage(cdbStorage);
9
10   AliLHCClockPhase phaseObj;
11
12   phaseObj.AddPhaseB1DP(0,0.);
13   phaseObj.AddPhaseB2DP(0,0.);
14
15   phaseObj.AddPhaseB1DP(2147483647,0.);
16   phaseObj.AddPhaseB2DP(2147483647,0.);
17
18   AliCDBMetaData* metadata = new AliCDBMetaData();
19   metadata->SetResponsible("Cvetan Cheshkov");
20   metadata->SetComment("Default LHC-clock phase object");
21   AliCDBId id("GRP/Calib/LHCClockPhase",0,AliCDBRunRange::Infinity());
22
23   man->Put(&phaseObj,id,metadata);
24
25   return;
26 }