Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -22,64 +22,48 @@
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
//
|
||||
//
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
#ifndef G4VParticlePropertyReporter_h
|
||||
#define G4VParticlePropertyReporter_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <vector>
|
||||
|
||||
#include "G4ParticlePropertyData.hh"
|
||||
#include "G4ParticlePropertyTable.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class G4VParticlePropertyReporter
|
||||
{
|
||||
public:
|
||||
//constructors
|
||||
G4VParticlePropertyReporter();
|
||||
|
||||
//destructor
|
||||
virtual ~G4VParticlePropertyReporter();
|
||||
|
||||
public:
|
||||
// equality operators
|
||||
G4bool operator==(const G4VParticlePropertyReporter &right) const
|
||||
{ return (this == &right); }
|
||||
|
||||
G4bool operator!=(const G4VParticlePropertyReporter &right) const
|
||||
{ return (this != &right); }
|
||||
|
||||
public:
|
||||
using G4PPDContainer = std::vector<G4ParticlePropertyData *>;
|
||||
public:
|
||||
using G4PPDContainer = std::vector<G4ParticlePropertyData*>;
|
||||
|
||||
public:
|
||||
virtual G4bool FillList(G4String name);
|
||||
// fill out properties for specified particle type/name
|
||||
// (return false if specified name/type does not exist)
|
||||
public:
|
||||
// constructors
|
||||
G4VParticlePropertyReporter();
|
||||
|
||||
virtual void Clear();
|
||||
// clear the list
|
||||
// destructor
|
||||
virtual ~G4VParticlePropertyReporter();
|
||||
|
||||
virtual void Print(const G4String& option) = 0;
|
||||
// print out particle properties in the list
|
||||
// equality operators
|
||||
G4bool operator==(const G4VParticlePropertyReporter& right) const { return (this == &right); }
|
||||
|
||||
const G4PPDContainer& GetList() const {return pList;}
|
||||
|
||||
protected:
|
||||
G4PPDContainer pList;
|
||||
G4ParticlePropertyTable* pPropertyTable;
|
||||
G4bool operator!=(const G4VParticlePropertyReporter& right) const { return (this != &right); }
|
||||
|
||||
// fill out properties for specified particle type/name
|
||||
// (return false if specified name/type does not exist)
|
||||
virtual G4bool FillList(G4String name);
|
||||
|
||||
// clear the list
|
||||
virtual void Clear();
|
||||
|
||||
// print out particle properties in the list
|
||||
virtual void Print(const G4String& option) = 0;
|
||||
|
||||
const G4PPDContainer& GetList() const { return pList; }
|
||||
|
||||
protected:
|
||||
G4PPDContainer pList;
|
||||
G4ParticlePropertyTable* pPropertyTable;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user