Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -24,6 +24,12 @@
|
||||
#ifndef ExN04CalorimeterHit_h
|
||||
#define ExN04CalorimeterHit_h 1
|
||||
|
||||
|
||||
//MSH_include_begin
|
||||
#include "MarshaledG4String.h"
|
||||
//MSH_include_end
|
||||
|
||||
|
||||
#include "G4VHit.hh"
|
||||
#include "G4THitsCollection.hh"
|
||||
#include "G4Allocator.hh"
|
||||
@@ -32,6 +38,8 @@
|
||||
#include "G4Transform3D.hh"
|
||||
#include "G4RotationMatrix.hh"
|
||||
|
||||
|
||||
//MSH_BEGIN
|
||||
class ExN04CalorimeterHit : public G4VHit
|
||||
{
|
||||
public:
|
||||
@@ -41,7 +49,7 @@ class ExN04CalorimeterHit : public G4VHit
|
||||
~ExN04CalorimeterHit();
|
||||
ExN04CalorimeterHit(const ExN04CalorimeterHit &right);
|
||||
const ExN04CalorimeterHit& operator=(const ExN04CalorimeterHit &right);
|
||||
G4int operator==(const ExN04CalorimeterHit &right) const;
|
||||
int operator==(const ExN04CalorimeterHit &right) const;
|
||||
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void *aHit);
|
||||
@@ -50,12 +58,28 @@ class ExN04CalorimeterHit : public G4VHit
|
||||
void Print();
|
||||
|
||||
private:
|
||||
G4int ZCellID;
|
||||
G4int PhiCellID;
|
||||
G4double edep;
|
||||
G4ThreeVector pos;
|
||||
G4RotationMatrix rot;
|
||||
const G4LogicalVolume* pLogV;
|
||||
|
||||
G4int ZCellID; /*MSH: primitive
|
||||
[elementGet: { $ELEMENT = $THIS->GetZ(); }]
|
||||
[elementSet: { $THIS->SetCellID($ELEMENT, $THIS->GetPhi()); }] */
|
||||
|
||||
G4int PhiCellID; /*MSH: primitive
|
||||
[elementGet: { $ELEMENT = $THIS->GetPhi(); }]
|
||||
[elementSet: { $THIS->SetCellID($THIS->GetZ(), $ELEMENT); }] */
|
||||
|
||||
|
||||
G4double edep; /*MSH: primitive
|
||||
[elementGet: { $ELEMENT = $THIS->GetEdep(); }]
|
||||
[elementSet: { $THIS->SetEdep($ELEMENT); }] */
|
||||
|
||||
G4ThreeVector pos; /*MSH: primitive
|
||||
[elementGet: { $ELEMENT = $THIS->GetPos(); }]
|
||||
[elementSet: { $THIS->SetPos($ELEMENT); }] */
|
||||
|
||||
G4RotationMatrix rot;
|
||||
const G4LogicalVolume* pLogV;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
inline void SetCellID(G4int z,G4int phi)
|
||||
@@ -83,6 +107,7 @@ class ExN04CalorimeterHit : public G4VHit
|
||||
{ return pLogV; }
|
||||
|
||||
};
|
||||
//MSH_END
|
||||
|
||||
typedef G4THitsCollection<ExN04CalorimeterHit> ExN04CalorimeterHitsCollection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user