ROOT logo
#if !defined(__CINT__) || defined(__MAKECINT__)
#include "AliCDBManager.h"
#include "AliITSresponseSDD.h"
#include "AliCDBMetaData.h"
#include "AliCDBStorage.h"
#include "AliCDBId.h"
#include "AliCDBPath.h"
#include "AliCDBEntry.h"
#endif

void StoreRespSDD(Int_t firstRun=0, Int_t lastRun=AliCDBRunRange::Infinity()){
  ///////////////////////////////////////////////////////////////////////
  // Macro to generate and store the calibration files for SDD         //
  // Generates:                                                        //
  //  1 file with the AliITSrespionseSDD object (RespSDD)              //
  ///////////////////////////////////////////////////////////////////////
  
  if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
    AliCDBManager::Instance()->SetDefaultStorage("local://OCDB");
  }
  

  AliCDBMetaData *md = new AliCDBMetaData();
  md->SetObjectClassName("AliITSresponse");
  md->SetResponsible("Francesco Prino");
  md->SetBeamPeriod(0);
  md->SetComment("Simulated data");


  AliCDBId idRespSDD("ITS/Calib/RespSDD",firstRun, lastRun);
  AliITSresponseSDD* rd = new AliITSresponseSDD();
  rd->SetSideATimeZero(54.3);
  rd->SetSideCTimeZero(54.3);
//   rd->SetLayer3ATimeZero(235);
//   rd->SetLayer3CTimeZero(287);
//   rd->SetLayer4ATimeZero(202);
//   rd->SetLayer4CTimeZero(230);
  for(Int_t iMod=240; iMod<500; iMod++){
    rd->SetADCtokeV(iMod,2.97);
  }
  AliCDBManager::Instance()->GetDefaultStorage()->Put(rd, idRespSDD, md);  
}
 StoreRespSDD.C:1
 StoreRespSDD.C:2
 StoreRespSDD.C:3
 StoreRespSDD.C:4
 StoreRespSDD.C:5
 StoreRespSDD.C:6
 StoreRespSDD.C:7
 StoreRespSDD.C:8
 StoreRespSDD.C:9
 StoreRespSDD.C:10
 StoreRespSDD.C:11
 StoreRespSDD.C:12
 StoreRespSDD.C:13
 StoreRespSDD.C:14
 StoreRespSDD.C:15
 StoreRespSDD.C:16
 StoreRespSDD.C:17
 StoreRespSDD.C:18
 StoreRespSDD.C:19
 StoreRespSDD.C:20
 StoreRespSDD.C:21
 StoreRespSDD.C:22
 StoreRespSDD.C:23
 StoreRespSDD.C:24
 StoreRespSDD.C:25
 StoreRespSDD.C:26
 StoreRespSDD.C:27
 StoreRespSDD.C:28
 StoreRespSDD.C:29
 StoreRespSDD.C:30
 StoreRespSDD.C:31
 StoreRespSDD.C:32
 StoreRespSDD.C:33
 StoreRespSDD.C:34
 StoreRespSDD.C:35
 StoreRespSDD.C:36
 StoreRespSDD.C:37
 StoreRespSDD.C:38
 StoreRespSDD.C:39
 StoreRespSDD.C:40
 StoreRespSDD.C:41
 StoreRespSDD.C:42
 StoreRespSDD.C:43