Updates according to recent changes in AliPHOSCalibData: splitting EMC and CPV calibr...
[u/mrichter/AliRoot.git] / PHOS / macros / CalibrationDB / AliPHOSDecalibrate.C
CommitLineData
377108bd 1/* $Id$ */
2
3// Digitize and decalibrate events assuming that SDigits
4// have been already produced.
16b8ada8 5// Author: Boris Polichtchouk (Boris.Polichtchouk@cern.ch)
377108bd 6
7void AliPHOSDecalibrate(Int_t nevents=1)
8{
16b8ada8 9
69d5d19c 10 //Use "decalibration" database to simulate decalibrated PHOS.
377108bd 11
69d5d19c 12 AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
13 AliCDBManager::Instance()->SetSpecificStorage("PHOS","local://DeCalibDB");
14
15 // Make digitization, calibration parameters will be taken from CDB
377108bd 16
17 AliSimulation sim ;
18 sim.SetRunGeneration(kFALSE) ;
19 sim.SetMakeSDigits("") ;
20 sim.SetMakeDigits("PHOS") ;
21 sim.Run(nevents) ;
69d5d19c 22
377108bd 23}