ROOT logo
void AliTRDCreateOCDBPIDLQ(const char *fn){

  TObjArray *content = new TObjArray;
  TFile *in = TFile::Open(fn);
  TKey *key = NULL;
  TObject *tmp = NULL;
  TIter iter(in->GetListOfKeys());
  while((key = (TKey *)iter())){
    tmp = key->ReadObj();
    printf("Putting %s into the OCDB\n", tmp->GetName());
    content->Add(tmp);
  }

  AliCDBMetaData *metaData= new AliCDBMetaData(); 
  metaData->SetObjectClassName("TObjArray");
  metaData->SetResponsible("Markus Fasel");
  metaData->SetBeamPeriod(1);
  metaData->SetAliRootVersion("05-21-01"); //root version
  metaData->SetComment("TRD PID Reference Histos for the 1D Likelihood method");
  
  AliCDBId id("TRD/Calib/PIDLQ1D", 0, AliCDBRunRange::Infinity()); 
  AliCDBManager *man = AliCDBManager::Instance();
  AliCDBStorage *gStorLoc = man->GetStorage("local:///u/mfasel/OCDB");//$ALICE_ROOT/OCDB");
  if (!gStorLoc) {
    return;
  }
  gStorLoc->Put(content, id, metaData); 
  in->Close();

  return;
 AliTRDCreateOCDBPIDLQ.C:1
 AliTRDCreateOCDBPIDLQ.C:2
 AliTRDCreateOCDBPIDLQ.C:3
 AliTRDCreateOCDBPIDLQ.C:4
 AliTRDCreateOCDBPIDLQ.C:5
 AliTRDCreateOCDBPIDLQ.C:6
 AliTRDCreateOCDBPIDLQ.C:7
 AliTRDCreateOCDBPIDLQ.C:8
 AliTRDCreateOCDBPIDLQ.C:9
 AliTRDCreateOCDBPIDLQ.C:10
 AliTRDCreateOCDBPIDLQ.C:11
 AliTRDCreateOCDBPIDLQ.C:12
 AliTRDCreateOCDBPIDLQ.C:13
 AliTRDCreateOCDBPIDLQ.C:14
 AliTRDCreateOCDBPIDLQ.C:15
 AliTRDCreateOCDBPIDLQ.C:16
 AliTRDCreateOCDBPIDLQ.C:17
 AliTRDCreateOCDBPIDLQ.C:18
 AliTRDCreateOCDBPIDLQ.C:19
 AliTRDCreateOCDBPIDLQ.C:20
 AliTRDCreateOCDBPIDLQ.C:21
 AliTRDCreateOCDBPIDLQ.C:22
 AliTRDCreateOCDBPIDLQ.C:23
 AliTRDCreateOCDBPIDLQ.C:24
 AliTRDCreateOCDBPIDLQ.C:25
 AliTRDCreateOCDBPIDLQ.C:26
 AliTRDCreateOCDBPIDLQ.C:27
 AliTRDCreateOCDBPIDLQ.C:28
 AliTRDCreateOCDBPIDLQ.C:29
 AliTRDCreateOCDBPIDLQ.C:30
 AliTRDCreateOCDBPIDLQ.C:31