3 #ifndef MarshaledExN04TrackerHit_H 4 #define MarshaledExN04TrackerHit_H 32 msh_isUnmarshalDone =
false;
44 msh_isUnmarshalDone =
false;
64 this->msh_isUnmarshalDone =
true;
80 this->msh_isUnmarshalDone =
true;
88 int msh_currentSize = 0;
90 throw "Tried to marshal in obj marked isUnmarshaling == true";
99 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
104 msh_field_begin = msh_cursor;
107 msh_cursor +=
sizeof(int);
112 anElement = param->
GetPos();
116 msh_cursor += msh_currentSize;
119 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
120 memcpy(msh_field_begin, &tmp,
sizeof(
int));
123 msh_size = msh_cursor - msh_buffer;
129 int msh_currentSize = 0;
131 memcpy(&msh_currentSize, msh_cursor,
sizeof(
int));
132 msh_cursor +=
sizeof(int);
140 msh_cursor += msh_currentSize;
145 int msh_currentSize = 0;
146 if (isUnmarshaling())
147 throw "Tried to marshal in obj marked isUnmarshaling == true";
156 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
161 msh_field_begin = msh_cursor;
164 msh_cursor +=
sizeof(int);
170 memcpy(msh_cursor, &anElement,
sizeof(
G4double));
173 msh_cursor += msh_currentSize;
176 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
177 memcpy(msh_field_begin, &tmp,
sizeof(
int));
180 msh_size = msh_cursor - msh_buffer;
186 int msh_currentSize = 0;
188 memcpy(&msh_currentSize, msh_cursor,
sizeof(
int));
189 msh_cursor +=
sizeof(int);
193 memcpy(&anElement, msh_cursor,
sizeof(
G4double));
197 msh_cursor += msh_currentSize;
void SetPos(G4ThreeVector xyz)
CLHEP::Hep3Vector G4ThreeVector
void SetEdep(G4double de)
MarshaledExN04TrackerHit(void *buf, char chIsUnmarshaling='u')
ShadowedMarshaledExN04TrackerHit * Shadowed_param
MarshaledExN04TrackerHit(ExN04TrackerHit *objptr)
#define MSH_SET_TYPECHOICE(X)
ExN04TrackerHit * unmarshal()
void unmarshalTo(ExN04TrackerHit *obj)
#define MSH_SET_TOTALSIZE(X)
~MarshaledExN04TrackerHit()