]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/macros/CalibrationDB/AliEMCALDecalibrate.C
Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / EMCAL / macros / CalibrationDB / AliEMCALDecalibrate.C
CommitLineData
29272b1f 1
2// Digitize and decalibrate events assuming that SDigits
3// have been already produced.
4// Decalibration coefficients are located in the local file
3a70d483 5// DeCalibDB/EMCAL/Calib/Data/Run_xxx.root
29272b1f 6// Author: Boris Polichtchouk (Boris.Polichtchouk@cern.ch)
7// Modified from PHOS script for EMCAL by Gustavo Conesa
8
9void AliEMCALDecalibrate(Int_t nevents=3)
10{
3a70d483 11 //Use "decalibration" database to simulate decalibrated EMCAL.
29272b1f 12
162637e4 13 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
3a70d483 14 AliCDBManager::Instance()->SetSpecificStorage("EMCAL","local://DeCalibDB");
29272b1f 15
3a70d483 16 //Make digitization, calibration parameters will be taken from CDB
29272b1f 17
18 AliSimulation sim ;
19 sim.SetRunGeneration(kFALSE) ;
20 sim.SetMakeSDigits("") ;
21 sim.SetMakeDigits("EMCAL") ;
22 sim.Run(nevents) ;
23}