-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetChamberPos(Int_t det, Float_t* xyz)
-{
- //
- // Returns the deviation of the chamber position from the nominal position.
- //
-
- const AliTRDCalChamberPos* chamber = dynamic_cast<const AliTRDCalChamberPos*>(GetCachedCDBObject(kIDChamberPos));
- if (!chamber)
- return kFALSE;
-
- const Float_t* kvalues = chamber->GetPos(det);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetChamberRot(Int_t det, Float_t* xyz)
-{
- //
- // Returns the rotation of the chamber from the nominal position.
- //
-
- const AliTRDCalChamberPos* chamber = dynamic_cast<const AliTRDCalChamberPos*>(GetCachedCDBObject(kIDChamberPos));
- if (!chamber)
- return kFALSE;
-
- const Float_t* kvalues = chamber->GetRot(det);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetStackPos(Int_t chamber, Int_t sector, Float_t* xyz)
-{
- //
- // Returns the deviation of the stack position from the nominal position.
- //
-
- const AliTRDCalStackPos* stack = dynamic_cast<const AliTRDCalStackPos*>(GetCachedCDBObject(kIDStackPos));
- if (!stack)
- return kFALSE;
-
- const Float_t* kvalues = stack->GetPos(chamber, sector);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetStackRot(Int_t chamber, Int_t sector, Float_t* xyz)
-{
- //
- // Returns the rotation of the stack from the nominal position.
- //
-
- const AliTRDCalStackPos* stack = dynamic_cast<const AliTRDCalStackPos*>(GetCachedCDBObject(kIDStackPos));
- if (!stack)
- return kFALSE;
-
- const Float_t* kvalues = stack->GetRot(chamber, sector);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetSuperModulePos(Int_t sm, Float_t* xyz)
-{
- //
- // Returns the deviation of the supermodule position from the nominal position.
- //
-
- const AliTRDCalSuperModulePos* smPos = dynamic_cast<const AliTRDCalSuperModulePos*>(GetCachedCDBObject(kIDSuperModulePos));
- if (!smPos)
- return kFALSE;
-
- const Float_t* kvalues = smPos->GetPos(sm);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-
-//_____________________________________________________________________________
-Bool_t AliTRDcalibDB::GetSuperModuleRot(Int_t sm, Float_t* xyz)
-{
- //
- // Returns the rotation of the supermodule from the nominal position.
- //
-
- const AliTRDCalSuperModulePos* smPos = dynamic_cast<const AliTRDCalSuperModulePos*>(GetCachedCDBObject(kIDSuperModulePos));
- if (!smPos)
- return kFALSE;
-
- const Float_t* kvalues = smPos->GetRot(sm);
- if (!kvalues)
- return kFALSE;
-
- xyz[0] = kvalues[0];
- xyz[1] = kvalues[1];
- xyz[2] = kvalues[2];
-
- return kTRUE;
-}
-