Removed generated files@
[u/mrichter/AliRoot.git] / FMD / MakeFMDFullMisAlignment.C
1 void MakeFMDFullMisAlignment()
2 {
3   // Create TClonesArray of full misalignment objects for FMD
4   const char* macroname = "MakeFMDFullMisAlignment.C";
5
6   // Activate CDB storage and load geometry from CDB
7   AliCDBManager* cdb = AliCDBManager::Instance();
8   if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
9   cdb->SetRun(0);
10
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;
15   
16   gSystem->Load("libFMDutil.so");
17   AliFMDAlignFaker::GetGeometry(toCdb, storage);
18   AliFMDAlignFaker* faker = new AliFMDAlignFaker(AliFMDAlignFaker::kAll, 
19                                                  "geometry.root", 
20                                                  output.Data());
21   
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;
29 }