LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
larg4::G4PVPlacementWithID< IDTYPE > Class Template Reference

A G4PVPlacement with an additional identificator. More...

#include "LArVoxelReadout.h"

Inheritance diagram for larg4::G4PVPlacementWithID< IDTYPE >:

Public Types

typedef IDTYPE ID_t
 

Public Member Functions

 G4PVPlacementWithID (const G4Transform3D &Transform3D, const G4String &pName, G4LogicalVolume *pLogical, G4VPhysicalVolume *pMother, G4bool pMany, G4int pCopyNo, G4bool pSurfChk=false, ID_t id=ID_t())
 Constructor. More...
 
virtual ~G4PVPlacementWithID ()
 Virtual destructor: does nothing more. More...
 

Public Attributes

ID_t ID
 Physical Volume identificator. More...
 

Detailed Description

template<class IDTYPE>
class larg4::G4PVPlacementWithID< IDTYPE >

A G4PVPlacement with an additional identificator.

Parameters
IDTYPEtype of ID class

This class is a G4PVPlacement with in addition an ID parameter. The ID type is an object which can be default-constructed and copied, better to be a POD.

This being a very stupid utility class, only the constructor that we actually use is available. The others can be implemented in the same way. Also the merry company of copy and move constuctors and operators is left to the good will of the compiler, despite the destructor is specified.

Definition at line 106 of file LArVoxelReadout.h.

Member Typedef Documentation

template<class IDTYPE >
typedef IDTYPE larg4::G4PVPlacementWithID< IDTYPE >::ID_t

Definition at line 108 of file LArVoxelReadout.h.

Constructor & Destructor Documentation

template<class IDTYPE >
larg4::G4PVPlacementWithID< IDTYPE >::G4PVPlacementWithID ( const G4Transform3D &  Transform3D,
const G4String pName,
G4LogicalVolume *  pLogical,
G4VPhysicalVolume *  pMother,
G4bool  pMany,
G4int  pCopyNo,
G4bool  pSurfChk = false,
ID_t  id = ID_t() 
)
inline

Constructor.

Definition at line 113 of file LArVoxelReadout.h.

121  : G4PVPlacement(Transform3D, pName, pLogical, pMother, pMany, pCopyNo, pSurfChk), ID(id)
122  {}
ID_t ID
Physical Volume identificator.
template<class IDTYPE >
virtual larg4::G4PVPlacementWithID< IDTYPE >::~G4PVPlacementWithID ( )
inlinevirtual

Virtual destructor: does nothing more.

Definition at line 125 of file LArVoxelReadout.h.

125 {}

Member Data Documentation

template<class IDTYPE >
ID_t larg4::G4PVPlacementWithID< IDTYPE >::ID

Physical Volume identificator.

Definition at line 110 of file LArVoxelReadout.h.

Referenced by larg4::LArVoxelReadout::ProcessHits().


The documentation for this class was generated from the following file: