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