]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/MakeFMDFullMisAlignment.C
Coding rule violation corrected.
[u/mrichter/AliRoot.git] / FMD / MakeFMDFullMisAlignment.C
CommitLineData
ffa78f64 1void MakeFMDFullMisAlignment()
2{
1895a097 3 // Create TClonesArray of full misalignment objects for FMD
6fce62af 4 const char* macroname = "MakeFMDFullMisAlignment.C";
5
6 // Activate CDB storage and load geometry from CDB
7 AliCDBManager* cdb = AliCDBManager::Instance();
162637e4 8 if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
6fce62af 9 cdb->SetRun(0);
ffa78f64 10
d98fbfa5 11 Bool_t toCdb = TString(gSystem->Getenv("TOCDB")) == TString("kTRUE");
12 TString storage = gSystem->Getenv("STORAGE");
13 TString output = "FMDfullMisalignment.root";
14 if(toCdb) output = storage;
1895a097 15
16 gSystem->Load("libFMDutil.so");
d98fbfa5 17 AliFMDAlignFaker::GetGeometry(toCdb, storage);
18 AliFMDAlignFaker* faker = new AliFMDAlignFaker(AliFMDAlignFaker::kAll,
19 "geometry.root",
20 output.Data());
21
ffa78f64 22 // Displacements and rotations
23 faker->SetSensorDisplacement(-0.005, -0.005, -0.005, 0.005, 0.005, 0.005);
24 faker->SetSensorRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
25 faker->SetHalfDisplacement(-0.25, -0.25, -0.25, 0.25, 0.25, 0.25);
26 faker->SetHalfRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
27 faker->Exec();
28 delete faker;
1895a097 29}