added qcumulants to macro and removed old macros
[u/mrichter/AliRoot.git] / ITS / StoreRespSDD.C
CommitLineData
2065c9d5 1#if !defined(__CINT__) || defined(__MAKECINT__)
2#include "AliCDBManager.h"
3#include "AliITSresponseSDD.h"
4#include "AliCDBMetaData.h"
5#include "AliCDBStorage.h"
6#include "AliCDBId.h"
7#include "AliCDBPath.h"
8#include "AliCDBEntry.h"
9#endif
10
11void StoreRespSDD(Int_t firstRun=0, Int_t lastRun=999999999 ){
12 ///////////////////////////////////////////////////////////////////////
13 // Macro to generate and store the calibration files for SDD //
14 // Generates: //
15 // 1 file with the AliITSrespionseSDD object (RespSDD) //
16 ///////////////////////////////////////////////////////////////////////
17
18 if(!AliCDBManager::Instance()->IsDefaultStorageSet()) {
19 AliCDBManager::Instance()->SetDefaultStorage("local://OCDB");
20 }
21
22
23 AliCDBMetaData *md = new AliCDBMetaData();
24 md->SetObjectClassName("AliITSresponse");
25 md->SetResponsible("Francesco Prino");
26 md->SetBeamPeriod(0);
27 md->SetComment("Simulated data");
28
29
30 AliCDBId idRespSDD("ITS/Calib/RespSDD",firstRun, lastRun);
31 AliITSresponseSDD* rd = new AliITSresponseSDD();
32 rd->SetTimeOffset(54.3);
33 AliCDBManager::Instance()->GetDefaultStorage()->Put(rd, idRespSDD, md);
34}