]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCComposedCorrection.cxx
Getter for subcorrections
[u/mrichter/AliRoot.git] / TPC / AliTPCComposedCorrection.cxx
index 2081e1edbadb3c0f993dc6320ef66678ff447cdd..e14f0e0f3dae22c337ebfc5ff05422ac38b1a321 100644 (file)
@@ -104,6 +104,23 @@ AliTPCComposedCorrection::~AliTPCComposedCorrection() {
   if (fWeights) delete fWeights;
 }
 
+AliTPCCorrection * AliTPCComposedCorrection::GetSubCorrection(Int_t ipos){
+  //
+  //
+  //
+  TObjArray *arr = (TObjArray*)fCorrections;
+  return (AliTPCCorrection *)arr->At(ipos);
+}
+
+AliTPCCorrection * AliTPCComposedCorrection::GetSubCorrection(const char *cname){
+  //
+  //
+  //
+  TCollection *arr = fCorrections;
+  return (AliTPCCorrection *)arr->FindObject(cname);
+}
+
+
 
 void AliTPCComposedCorrection::GetCorrection(const Float_t x[],const Short_t roc,Float_t dx[]) {
   //