Updated names of the environment variables (no dollar sign). Gaussian distribution...
[u/mrichter/AliRoot.git] / FMD / MakeFMDZeroMisAlignment.C
CommitLineData
d3a9c52a 1void MakeFMDZeroMisAlignment()
2{
3 // Create TClonesArray of zero-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") ){
d3a9c52a 9 // save on file
10 AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root","FMDAlignObjs.root");
11 }else{
12 // save in CDB storage
5bd470e1 13 const char* Storage = gSystem->Getenv("STORAGE");
d3a9c52a 14 AliFMDAlignFaker faker(AliFMDAlignFaker::kAll, "geometry.root", Storage);
15 }
16
17 // fRunMax should be changed in the constructor
18
19 faker.SetSensorDisplacement(0., 0., 0., 0., 0., 0.);
20 faker.SetSensorRotation(0., 0., 0., 0., 0., 0.);
21 faker.SetHalfDisplacement(0., 0., 0., 0., 0., 0.);
22 faker.SetHalfRotation(0., 0., 0., 0., 0., 0.);
23 faker.Exec();
24
25
26}