Extacting the OCDB in a separate module. The detectors have write permission in the...
[u/mrichter/AliRoot.git] / FMD / scripts / MakeResidualAlignment.C
1 //____________________________________________________________________
2 //
3 // $Id$
4 //
5 // Make fake residual alignment data.
6 //
7 /** Make fake residual alignment data 
8     @ingroup simple_script
9  */
10 void
11 MakeResidualAlignment()
12 {
13   if (!TGeoManager::Import("geometry.root")) 
14     gAlice->Init("$ALICE_ROOT/FMD/Config.C");
15   AliCDBManager* cdb   = AliCDBManager::Instance();
16   if(!cdb->IsDefaultStorageSet()) 
17     cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
18   cdb->SetRun(0);
19   AliLog::SetModuleDebugLevel("FMD", 1);
20   gSystem->Load("libFMDutil.so");
21   AliFMDAlignFaker f(AliFMDAlignFaker::kAll, "geometry.root", "residual.root");
22   f.SetComment("Residual alignment for PDC06");
23   // f.RemoveAlign(AliFMDAlignFaker::kHalves);
24   f.SetSensorDisplacement(-0.005, -0.005, -0.005, 0.005, 0.005, 0.005);
25   f.SetSensorRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
26   f.SetHalfDisplacement(-0.25, -0.25, -0.25, 0.25, 0.25, 0.25);
27   f.SetHalfRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
28   f.Exec();
29 }
30 //____________________________________________________________________
31 //
32 // EOF
33 //