]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/CalibMacros/rec.C
e8a86d82e2fc1211adcf676432962629ddc854a2
[u/mrichter/AliRoot.git] / ANALYSIS / CalibMacros / rec.C
1 void rec(const char *filename="raw.root")
2 {
3   /////////////////////////////////////////////////////////////////////////////////////////
4   //
5   // Reconstruction script for 2009 RAW data
6   //
7   /////////////////////////////////////////////////////////////////////////////////////////
8
9   
10   // Set the CDB storage location
11   AliCDBManager * man = AliCDBManager::Instance();
12   man->SetDefaultStorage("raw://");
13   
14   // Reconstruction settings
15   AliReconstruction rec;
16
17   // Set protection against too many events in a chunk (should not happen)
18   //  rec.SetEventRange(0,30000);
19
20   // Set reconstruction flags (skip detectors here if neded
21   rec.SetRunReconstruction("ITS TPC TRD TOF");
22   //rec.SetFillESD("ITS TPC TRD");
23   // QA options
24   //rec.SetRunQA("Global:ESDs") ;
25   
26   //rec.SetRunQA(":") ;
27   AliQAManager *qam = AliQAManager::QAManager(AliQAv1::kRECMODE) ;
28   rec.SetRunQA(":");
29   rec.SetRunGlobalQA(kFALSE);
30   //ITS QA Off (https://savannah.cern.ch/bugs/?60187)   
31   //rec.SetRunQA("ALL -HLT:ALL") ;
32
33   //rec.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
34
35   // AliReconstruction settings
36   rec.SetWriteESDfriend(kTRUE);
37   rec.SetWriteAlignmentData();
38   rec.SetInput(filename);
39   rec.SetUseTrackingErrorsForAlignment("ITS");
40
41   // Magnetic field hack for L3 off, dipole on
42
43   AliMagF* fld = new AliMagF("map","map",0,-1, AliMagF::k5kG,AliMagF::kBeamTypepp, 450);
44   fld->SetBit(AliMagF::kOverrideGRP);
45   TGeoGlobalMagField::Instance()->SetField(fld);
46   TGeoGlobalMagField::Instance()->Lock();
47   printf(" ATTENTION: Using external field with WRONG CURRENTS COMBINATION\n");
48
49   // Specially for ITS (https://savannah.cern.ch/bugs/?59368)
50
51   rec.SetRunPlaneEff(kTRUE); 
52
53   // switch off cleanESD
54   rec.SetCleanESD(kFALSE);
55
56   //Ignore SetStopOnError
57   rec.SetStopOnError(kFALSE);
58
59   AliLog::Flush();
60   rec.Run();
61
62 }