Updated names of the environment variables (no dollar sign). Gaussian distribution...
[u/mrichter/AliRoot.git] / FMD / MakeFMDResMisAlignment.C
CommitLineData
1895a097 1void 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");
5bd470e1 8 if( gSystem->Getenv("TOCDB") != TString("kTRUE") ){
1895a097 9 // save on file
6804c20f 10 AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root","FMDresidualMisalignment.root");
1895a097 11 }else{
12 // save in CDB storage
5bd470e1 13 const char* Storage = gSystem->Getenv("STORAGE");
1895a097 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}