]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDarrayADC.h
fix error in ternary operator
[u/mrichter/AliRoot.git] / TRD / AliTRDarrayADC.h
index 1a291cf955a8aaf331495658193489192f41a43c..17c09349db1cc7a3ae065b5e427164cb1bf334ee 100644 (file)
@@ -46,6 +46,7 @@ class AliTRDarrayADC: public TObject
   void    DeleteNegatives();
   void    Reset();
   void    ConditionalReset(AliTRDSignalIndex* idx);
+  inline  Short_t* GetDataAddress(Int_t nrow, Int_t ncol, Int_t ntime = 0) const;
   inline  Short_t GetData(Int_t nrow, Int_t ncol, Int_t ntime) const;
   inline  void    SetData(Int_t nrow, Int_t ncol, Int_t ntime, Short_t value);
   static  void    CreateLut(); 
@@ -65,6 +66,18 @@ class AliTRDarrayADC: public TObject
     
 };
 
+//________________________________________________________________________________
+Short_t* AliTRDarrayADC::GetDataAddress(Int_t nrow, Int_t ncol, Int_t ntime) const
+{
+  //
+  // Get the address of the given pad
+  //
+
+  Int_t corrcolumn = fgLutPadNumbering[ncol];
+
+  return &fADC[(nrow*fNumberOfChannels+corrcolumn)*fNtime+ntime];
+
+}
 //________________________________________________________________________________
 Short_t AliTRDarrayADC::GetData(Int_t nrow, Int_t ncol, Int_t ntime) const
 {