1 //____________________________________________________________________
5 // Read in the geometry, and get alignment data from CDB, and apply
6 // that to the geometry.
8 /** Print alignment to a geometry
15 AliCDBManager* cdb = AliCDBManager::Instance();
16 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
17 AliCDBEntry* align = cdb->Get("FMD/Align/Data");
19 Error("PrintAlignment","didn't alignment data from CDB");
23 TClonesArray* array = dynamic_cast<TClonesArray*>(align->GetObject());
25 Warning("PrintAlignement", "Invalid align data from CDB");
28 Int_t nAlign = array->GetEntries();
29 for (Int_t i = 0; i < nAlign; i++) {
30 AliAlignObjParams* a = static_cast<AliAlignObjParams*>(array->At(i));
34 a->GetTranslation(trans);
35 std::cout << a->GetVolPath() << "\n"
37 << "(" << std::setw(12) << trans[0]
38 << "," << std::setw(12) << trans[1]
39 << "," << std::setw(12) << trans[2] << ")\n"
41 << "(" << std::setw(12) << ang[0]
42 << "," << std::setw(12) << ang[1]
43 << "," << std::setw(12) << ang[2] << ")" << std::endl;
47 //____________________________________________________________________