Reading muon trigger scalers with the DA of the muon trigger and transfer
[u/mrichter/AliRoot.git] / T0 / setlookUpTable.C
CommitLineData
212a8c83 1void setlookUpTable()
2{
3 // Writing Lookup table into the Calibration DB
4 // Arguments:
5
6 TString DBFolder;
7 Int_t firstRun = 200000;
8 Int_t lastRun = 9999999;
9 Int_t beamPeriod = 1;
10 char* objFormat = "T0 Lookup Table";
11
12 AliT0CalibData *calibda=new AliT0CalibData("T0");
13
14// calibda->ReadAsciiLookup("lookUpTable.txt");
15 calibda->ReadAsciiLookup("/home/alla/alice/AliRoot/T0/lookup_run2.txt");
16 cout<<" @@@@ TRM "<<calibda->GetNumberOfTRMs()<<endl;
17 //Store calibration data into database
18 // AliCDBManager::Instance()->SetDefaultStorage("local:///scratch/alla/alice/Aug10/TestCDB");
19 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
20
21 // AliCDBManager::Instance()->SetSpecificStorage("T0",DBFolder.Data());
22
23 AliCDBMetaData md;
24 md.SetComment(objFormat);
25 md.SetBeamPeriod(beamPeriod);
26 md.SetResponsible("Alla");
27 TString fPath="T0/Calib/LookUp_Table";
28
29
30 // AliCDBStorage* storage = AliCDBManager::Instance()->GetSpecificStorage("T0");
31 AliCDBStorage* storage = AliCDBManager::Instance()->GetDefaultStorage();
32 if(storage) {
33 AliCDBId id(fPath.Data(),firstRun,lastRun);
34 storage->Put(calibda, id, &md);
35 }
36}