Commit fff71e1d authored by Zach Marshall's avatar Zach Marshall Committed by Graeme Stewart
Browse files

Filling up variables in default TrackRecord constructor (G4SimTPCnv-00-01-04)

	* tagging G4SimTPCnv-00-01-04
	* Filling up variables in default constructor
parent d5eb5bd9
......@@ -15,7 +15,7 @@
#include "G4SimTPCnv/TrackRecord_p0.h"
#include "G4SimTPCnv/TrackRecordStreamer_p0.h"
struct dummy {
struct GCCXML_DUMMY_INSTANTIATION_G4SIMTPCNV {
T_TPCnv<TrackRecordCollection,TrackRecordCollection_p2> m_cnv;
};
......
......@@ -9,7 +9,7 @@
class TrackRecord_p0 {
public:
TrackRecord_p0() {}
TrackRecord_p0() : Energy(0), Momentum(0,0,0), PDG_code(0), Position(0,0,0) {}
virtual ~TrackRecord_p0() {}
double GetEnergy() {return Energy;}
......@@ -19,9 +19,9 @@ public:
private:
double Energy;
CLHEP::Hep3Vector Momentum;
CLHEP::Hep3Vector Momentum;
int PDG_code;
CLHEP::Hep3Vector Position;
CLHEP::Hep3Vector Position;
};
#endif
......
......@@ -8,26 +8,29 @@
class TrackRecord_p1 {
public:
TrackRecord_p1() {};
int PDG_code() const {return m_PDG_code;}
float energy() const {return m_energy;}
float momentumX() const {return m_momentumX;}
float momentumY() const {return m_momentumY;}
float momentumZ() const {return m_momentumZ;}
float positionX() const {return m_positionX;}
float positionY() const {return m_positionY;}
float positionZ() const {return m_positionZ;}
float time() const {return m_time;}
int barCode() const {return m_barCode;}
std::string volName() const {return m_volName;}
friend class TrackRecordCnv_p1;
TrackRecord_p1() : m_PDG_code(0), m_energy(0),
m_momentumX(0), m_momentumY(0), m_momentumZ(0),
m_positionX(0), m_positionY(0), m_positionZ(0),
m_time(0), m_barCode(0), m_volName("") {};
int PDG_code() const {return m_PDG_code;}
float energy() const {return m_energy;}
float momentumX() const {return m_momentumX;}
float momentumY() const {return m_momentumY;}
float momentumZ() const {return m_momentumZ;}
float positionX() const {return m_positionX;}
float positionY() const {return m_positionY;}
float positionZ() const {return m_positionZ;}
float time() const {return m_time;}
int barCode() const {return m_barCode;}
std::string volName() const {return m_volName;}
friend class TrackRecordCnv_p1;
private:
int m_PDG_code;
float m_energy;
float m_momentumX, m_momentumY, m_momentumZ;
float m_positionX, m_positionY, m_positionZ;
float m_time;
float m_momentumX, m_momentumY, m_momentumZ;
float m_positionX, m_positionY, m_positionZ;
float m_time;
int m_barCode;
std::string m_volName;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment