]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AODLinkDef.h
added protection against adding new fPID array in bwd-compatibity rule of AODLinkDef...
[u/mrichter/AliRoot.git] / STEER / AODLinkDef.h
index 30842944fb15a5b82307fa9956060e7bebc79ebd..e33625991592786fa3e50791a10c2fc78622aac2 100644 (file)
@@ -31,7 +31,7 @@
 
 #pragma read sourceClass="AliAODTrack" targetClass="AliAODTrack" source="Double32_t fPID[10]"  version="[-22]" \
  target="fPID" targetType="Double32_t*" \
-   code="{fPID = new Double32_t[10];for(Int_t isp=10;isp--;) fPID[isp]=onfile.fPID[isp];}"
+  code="{if (!fPID) fPID = new Double32_t[10];for(Int_t isp=10;isp--;) fPID[isp]=onfile.fPID[isp];}"
 
 #pragma link C++ class AliAODTrack+;