]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Remove Pos calib classes
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jun 2006 14:22:44 +0000 (14:22 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jun 2006 14:22:44 +0000 (14:22 +0000)
TRD/AliTRDcalibDB.cxx
TRD/AliTRDcalibDB.h

index 67e4ec4a6a077d7bffd8c28108ac5759b62a839d..46de3e4b747ba20fd9d1544dfd48a3208d4c94ca 100644 (file)
@@ -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<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;
-}
-
 //_____________________________________________________________________________
 Float_t AliTRDcalibDB::GetVdrift(Int_t det, Int_t col, Int_t row)
 {
index e2bc5b43a7f850f25baa516405c35653ba9a9d6b..4a242b00e2c3136a55e455d404d22a0783d91c81 100644 (file)
@@ -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);