]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/macros/BeamTest2006/RawReconstruction.C
Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / PHOS / macros / BeamTest2006 / RawReconstruction.C
CommitLineData
39dbef43 1void Rec(TString file="raw.root")
a9e045cd 2{
39dbef43 3 // Reconstruction of RAW data from the input file raw.root
4 // Boris Polichtchouk, 13 Mar 2008
a9e045cd 5
162637e4 6 //AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
39dbef43 7 //AliCDBManager::Instance()->SetSpecificStorage("PHOS/*","local://BadMap");
a9e045cd 8
9 AliReconstruction rec ;
39dbef43 10 rec.SetRunTracking("") ;
a9e045cd 11 rec.SetRunVertexFinder(kFALSE) ;
12 rec.SetRunLocalReconstruction("PHOS") ;
39dbef43 13 rec.SetFillESD("PHOS") ;
14
15 //Set rec. parameters different from the default ones.
16 AliPHOSRecoParam* recEmc = new AliPHOSRecoParamEmc();
17 recEmc->SetSubtractPedestals(kTRUE);
18 recEmc->SetMinE(0.01); //Minimal Digit energy
19 recEmc->SetClusteringThreshold(0.02); //Minimal cluster seed energy
20 recEmc->SetDecoderVersion("v1"); //Comment out to choose Max-Ped version
21 recEmc->SetOldRCUFormat(kTRUE);
22
23 AliPHOSReconstructor::SetRecoParamEmc(recEmc);
a9e045cd 24
25 rec.SetInput(file.Data()); // read RAW data
39dbef43 26 rec.SetNumberOfEventsPerFile(5000);
a9e045cd 27 rec.Run();
28
39dbef43 29
a9e045cd 30}