]>
Commit | Line | Data |
---|---|---|
1895a097 | 1 | void MakeFMDResMisAlignment() |
2 | { | |
3 | // Create TClonesArray of residual misalignment objects for FMD | |
4 | // | |
6fce62af | 5 | const char* macroname = "MakeFMDResMisAlignment.C"; |
6 | ||
7 | // Activate CDB storage and load geometry from CDB | |
8 | AliCDBManager* cdb = AliCDBManager::Instance(); | |
162637e4 | 9 | if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB"); |
6fce62af | 10 | cdb->SetRun(0); |
ffa78f64 | 11 | |
d98fbfa5 | 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; | |
1895a097 | 16 | |
17 | gSystem->Load("libFMDutil.so"); | |
d98fbfa5 | 18 | AliFMDAlignFaker::GetGeometry(toCdb, storage); |
19 | AliFMDAlignFaker* faker = new AliFMDAlignFaker(AliFMDAlignFaker::kAll, | |
20 | "geometry.root", | |
21 | output.Data()); | |
22 | ||
1895a097 | 23 | |
ffa78f64 | 24 | faker->SetSensorDisplacement(-0.005, -0.005, -0.005, 0.005, 0.005, 0.005); |
25 | faker->SetSensorRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5); | |
26 | faker->SetHalfDisplacement(-0.25, -0.25, -0.25, 0.25, 0.25, 0.25); | |
27 | faker->SetHalfRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5); | |
28 | faker->Exec(); | |
29 | delete faker; | |
1895a097 | 30 | |
31 | } | |
ffa78f64 | 32 | // |
33 | // EOF | |
34 | // |