Skip to content
Snippets Groups Projects
Commit 34d0a95d authored by Dmitrii Neverov's avatar Dmitrii Neverov
Browse files

this should fix issues with caused by ROOT io

parent 65f39b12
Branches
Tags
No related merge requests found
......@@ -48,9 +48,10 @@ namespace genfit {
const double m_magCharge;
const double m_mass;
public:
ClassDef(MplTrackRep, 1)
ClassDefOverride(MplTrackRep, 1)
};
} //end genfit namespace
......@@ -284,9 +284,13 @@ class RKTrackRep : public AbsTrackRep {
double momMag(const M1x7& state7) const;
protected:
mutable StateOnPlane lastStartState_; //! state where the last extrapolation has started
mutable StateOnPlane lastEndState_; //! state where the last extrapolation has ended
private:
mutable std::vector<RKStep> RKSteps_; //! RungeKutta steps made in the last extrapolation
mutable int RKStepsFXStart_; //!
mutable int RKStepsFXStop_; //!
......
......@@ -26,6 +26,8 @@
#include <math.h>
#include <TBuffer.h>
using namespace genfit;
MplTrackRep::MplTrackRep(int pdgCode, float magCharge, char propDir) :
......@@ -254,3 +256,21 @@ double MplTrackRep::RKPropagate(M1x7& state7,
// in Numerical Recipes. FIXME: move to caller.
return pow(DLT/EST, 1./5.);
}
void MplTrackRep::Streamer(TBuffer &R__b)
{
// I guess I have to reimplement this since it can not be taken from RKTrackRep?
typedef ::genfit::MplTrackRep thisClass;
UInt_t R__s, R__c;
if (R__b.IsReading()) {
::genfit::AbsTrackRep::Streamer(R__b);
Version_t R__v = R__b.ReadVersion(&R__s, &R__c); if (R__v) { }
R__b.CheckByteCount(R__s, R__c, thisClass::IsA());
lastStartState_.setRep(this);
lastEndState_.setRep(this);
} else {
::genfit::AbsTrackRep::Streamer(R__b);
R__c = R__b.WriteVersion(thisClass::IsA(), kTRUE);
R__b.SetByteCount(R__c, kTRUE);
}
}
......@@ -8,4 +8,4 @@
#pragma link C++ namespace genfit;
#pragma link C++ class genfit::RKTrackRep-;
#pragma link C++ class genfit::MplTrackRep+;
#pragma link C++ class genfit::MplTrackRep-;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment