AliRsnReader:
[u/mrichter/AliRoot.git] / PHOS / macros / CalibrationDB / AliPHOSDecalibrate.C
... / ...
CommitLineData
1/* $Id$ */
2
3// Digitize and decalibrate events assuming that SDigits
4// have been already produced.
5// Author: Boris Polichtchouk (Boris.Polichtchouk@cern.ch)
6
7void AliPHOSDecalibrate(Int_t nevents=1)
8{
9
10 //Use "decalibration" database to simulate decalibrated PHOS.
11
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
16
17 AliSimulation sim ;
18 sim.SetRunGeneration(kFALSE) ;
19 sim.SetMakeSDigits("") ;
20 sim.SetMakeDigits("PHOS") ;
21 sim.Run(nevents) ;
22
23}