LArSoft  v07_13_02
Liquid Argon Software toolkit - http://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 94 of file LArVoxelReadout.h.

Member Typedef Documentation

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

Definition at line 96 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 101 of file LArVoxelReadout.h.

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

Virtual destructor: does nothing more.

Definition at line 112 of file LArVoxelReadout.h.

112 {}

Member Data Documentation

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

Physical Volume identificator.

Definition at line 98 of file LArVoxelReadout.h.

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


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