bc8c6bb31292aa24e87675ecbbb06bd0abbf47e5
[u/mrichter/AliRoot.git] / FMD / MakeFMDFullMisAlignment.C
1 void MakeFMDFullMisAlignment(){
2   // Create TClonesArray of full misalignment objects for FMD
3   //
4   if(!gGeoManager) TGeoManager::Import("geometry.root");
5   // needed for the constructors with local coordinates not to fail
6   
7   gSystem->Load("libFMDutil.so");
8   if(!gSystem->Getenv("$TOCDB")){
9     // save on file
10     AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root","FMDfullMisalignment.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 }