From: cblume Date: Tue, 27 Jun 2006 14:22:44 +0000 (+0000) Subject: Remove Pos calib classes X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=a03da9f843986d3e878f8551e29034b9adc9f1fa;p=u%2Fmrichter%2FAliRoot.git Remove Pos calib classes --- diff --git a/TRD/AliTRDcalibDB.cxx b/TRD/AliTRDcalibDB.cxx index 67e4ec4a6a0..46de3e4b747 100644 --- a/TRD/AliTRDcalibDB.cxx +++ b/TRD/AliTRDcalibDB.cxx @@ -170,9 +170,6 @@ const TObject* AliTRDcalibDB::GetCachedCDBObject(Int_t id) // global parameters case kIDMonitoringData : return CacheCDBEntry(kIDMonitoringData, "TRD/Calib/MonitoringData"); break; case kIDGlobals : return CacheCDBEntry(kIDGlobals, "TRD/Calib/Globals"); break; - case kIDSuperModulePos : return CacheCDBEntry(kIDSuperModulePos, "TRD/Calib/SuperModulePos"); break; - case kIDChamberPos : return CacheCDBEntry(kIDChamberPos, "TRD/Calib/ChamberPos"); break; - case kIDStackPos : return CacheCDBEntry(kIDStackPos, "TRD/Calib/StackPos"); break; case kIDPIDLQ : return CacheCDBEntry(kIDPIDLQ, "TRD/Calib/PIDLQ"); break; } return 0; @@ -251,138 +248,6 @@ void AliTRDcalibDB::Invalidate() } } -//_____________________________________________________________________________ -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(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(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(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(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(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(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; -} - //_____________________________________________________________________________ Float_t AliTRDcalibDB::GetVdrift(Int_t det, Int_t col, Int_t row) { diff --git a/TRD/AliTRDcalibDB.h b/TRD/AliTRDcalibDB.h index e2bc5b43a7f..4a242b00e2c 100644 --- a/TRD/AliTRDcalibDB.h +++ b/TRD/AliTRDcalibDB.h @@ -34,15 +34,6 @@ public: void SetRun(Long64_t run); Long64_t GetRun() { return fRun; } - Bool_t GetChamberPos(Int_t det, Float_t* xyz); - Bool_t GetChamberRot(Int_t det, Float_t* xyz); - - Bool_t GetStackPos(Int_t chamber, Int_t sector, Float_t* xyz); - Bool_t GetStackRot(Int_t chamber, Int_t sector, Float_t* xyz); - - Bool_t GetSuperModulePos(Int_t sm, Float_t* xyz); - Bool_t GetSuperModuleRot(Int_t sm, Float_t* xyz); - Float_t GetVdrift(Int_t det, Int_t col, Int_t row); Float_t GetVdriftAverage(Int_t det);