1 void MakeFMDFullMisAlignment()
3 // Create TClonesArray of full misalignment objects for FMD
4 const char* macroname = "MakeFMDFullMisAlignment.C";
6 // Activate CDB storage and load geometry from CDB
7 AliCDBManager* cdb = AliCDBManager::Instance();
8 if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
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;
16 gSystem->Load("libFMDutil.so");
17 AliFMDAlignFaker::GetGeometry(toCdb, storage);
18 AliFMDAlignFaker* faker = new AliFMDAlignFaker(AliFMDAlignFaker::kAll,
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);