diff --git a/.gitmodules b/.gitmodules index e6a3a04529afd649dcca34240a4560b7cd42b921..6e10e981d5b92e54112c359ecb968dfae2df50be 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "podd"] path = podd - url = git://github.com/sawjlab/podd.git + url = ../podd.git diff --git a/src/THcDriftChamberPlane.cxx b/src/THcDriftChamberPlane.cxx index 1040342149b78125e1d86512623579ff25ca21c8..0ded85072bf8bbaa4d2cc1508da8ffd26e5303d4 100644 --- a/src/THcDriftChamberPlane.cxx +++ b/src/THcDriftChamberPlane.cxx @@ -13,6 +13,7 @@ #include "THcParmList.h" #include "THcHitList.h" #include "THcDriftChamber.h" +#include "TClass.h" #include <cstring> #include <cstdio> @@ -32,6 +33,9 @@ THcDriftChamberPlane::THcDriftChamberPlane( const char* name, { // Normal constructor with name and description fTDCHits = new TClonesArray("THcSignalHit",100); +#if ROOT_VERSION_CODE < ROOT_VERSION(5,32,0) + fTDCHitsClass = fTDCHits->GetClass(); +#endif fPlaneNum = planenum; } diff --git a/src/THcDriftChamberPlane.h b/src/THcDriftChamberPlane.h index 29f4bb799abbc484d2f4f88d2caf9bef43dd5d00..bbe6e7f4a1d54e8bc36bc633ca981073506125f4 100644 --- a/src/THcDriftChamberPlane.h +++ b/src/THcDriftChamberPlane.h @@ -44,6 +44,8 @@ class THcDriftChamberPlane : public THaSubDetector { TClonesArray* fTDCHits; + TClass* fTDCHitsClass; + Int_t fPlaneNum; virtual Int_t ReadDatabase( const TDatime& date );