| [807] | 1 | %{
|
|---|
| 2 | #include <G4HCofThisEvent.hh>
|
|---|
| 3 | //MSH_include_begin
|
|---|
| 4 | #include "G4SDManager.hh"
|
|---|
| 5 | #include "G4THitsCollection.hh"
|
|---|
| 6 | #include "ExN04TrackerHit.hh"
|
|---|
| 7 | #include "MarshaledExN04TrackerHit.h"
|
|---|
| 8 | #include "MarshaledG4THitsCollection.h"
|
|---|
| 9 | #include "MarshaledG4VHitsCollection.h"
|
|---|
| 10 | //MSH_include_end
|
|---|
| 11 | %}
|
|---|
| 12 |
|
|---|
| 13 | // This file is generated automatically from G4HCofThisEvent.hh . It is an
|
|---|
| 14 | // intermediate file useful for debugging, but otherwise may be deleted.
|
|---|
| 15 |
|
|---|
| 16 | marshaling class MarshaledG4HCofThisEvent (G4HCofThisEvent* param) {
|
|---|
| 17 |
|
|---|
| 18 | std::vector<G4VHitsCollection*> * HC;
|
|---|
| 19 | //FIELDMARSHAL:
|
|---|
| 20 | {
|
|---|
| 21 | int copy_off = 0;
|
|---|
| 22 | int $ELE_COUNT;
|
|---|
| 23 | $ELE_COUNT = $THIS->GetNumberOfCollections();
|
|---|
| 24 | memcpy( $$+copy_off, &$ELE_COUNT,sizeof(int));
|
|---|
| 25 | copy_off += sizeof(int);
|
|---|
| 26 | for(int $ELE_INDEX=0;$ELE_INDEX<$ELE_COUNT;$ELE_INDEX++){
|
|---|
| 27 | G4VHitsCollection* $ELEMENT;
|
|---|
| 28 | $ELEMENT = $THIS->GetHC($ELE_INDEX);
|
|---|
| 29 | MarshaledG4VHitsCollection marEle($ELEMENT);
|
|---|
| 30 | EXTEND_BUFFER(marEle.getBufferSize());
|
|---|
| 31 | memcpy($$+copy_off, marEle.getBuffer(), marEle.getBufferSize());
|
|---|
| 32 | copy_off += marEle.getBufferSize();
|
|---|
| 33 | }
|
|---|
| 34 | $SIZE = copy_off;
|
|---|
| 35 |
|
|---|
| 36 | }
|
|---|
| 37 | //FIELDUNMARSHAL:
|
|---|
| 38 | {
|
|---|
| 39 | int copy_off = 0;
|
|---|
| 40 | int $ELE_COUNT;
|
|---|
| 41 | memcpy(&$ELE_COUNT, $$+copy_off, sizeof(int));
|
|---|
| 42 | copy_off += sizeof(int);
|
|---|
| 43 | for(int $ELE_INDEX=0;$ELE_INDEX<$ELE_COUNT;$ELE_INDEX++){
|
|---|
| 44 | MarshaledG4VHitsCollection marEle($$+copy_off);
|
|---|
| 45 | G4VHitsCollection* $ELEMENT = (G4VHitsCollection*)marEle.unmarshal();
|
|---|
| 46 | copy_off += marEle.getBufferSize();
|
|---|
| 47 | $THIS->AddHitsCollection($ELE_INDEX, $ELEMENT);
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | }
|
|---|
| 51 | //FIELDSIZE:
|
|---|
| 52 | {
|
|---|
| 53 |
|
|---|
| 54 | }
|
|---|
| 55 | unmarshaling constructor {
|
|---|
| 56 | $THIS = new G4HCofThisEvent();
|
|---|
| 57 | }
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|