Bug fixed (Christian)
[u/mrichter/AliRoot.git] / FMD / MakeFMDResMisAlignment.C
1 void MakeFMDResMisAlignment()
2 {
3   // Create TClonesArray of residual misalignment objects for FMD
4   //
5   if(!gGeoManager) TGeoManager::Import("geometry.root");
6   
7   gSystem->Load("libFMDutil.so");
8   if(!gSystem->Getenv("$TOCDB")){
9     // save on file
10     AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root","");
11   }else{
12     // save in CDB storage
13     const char* Storage = gSystem->Getenv("$STORAGE");
14     AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root", Storage);
15   }
16
17   // fRunMax should be changed in the constructor
18
19   faker.SetSensorDisplacement(-0.005, -0.005, -0.005, 0.005, 0.005, 0.005);
20   faker.SetSensorRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
21   faker.SetHalfDisplacement(-0.25, -0.25, -0.25, 0.25, 0.25, 0.25);
22   faker.SetHalfRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
23   faker.Exec();
24
25
26 }