#include <G4VScoringMesh.hh>
 | 
|   | G4VScoringMesh (const G4String &wName) | 
|   | 
| virtual  | ~G4VScoringMesh () | 
|   | 
| void  | Construct (G4VPhysicalVolume *fWorldPhys) | 
|   | 
| void  | WorkerConstruct (G4VPhysicalVolume *fWorldPhys) | 
|   | 
| virtual void  | List () const | 
|   | 
| const G4String &  | GetWorldName () const | 
|   | 
| G4bool  | IsActive () const | 
|   | 
| void  | Activate (G4bool vl=true) | 
|   | 
| MeshShape  | GetShape () const | 
|   | 
| void  | Accumulate (G4THitsMap< G4double > *map) | 
|   | 
| void  | Merge (const G4VScoringMesh *scMesh) | 
|   | 
| void  | Dump () | 
|   | 
| void  | DrawMesh (const G4String &psName, G4VScoreColorMap *colorMap, G4int axflg=111) | 
|   | 
| void  | DrawMesh (const G4String &psName, G4int idxPlane, G4int iColumn, G4VScoreColorMap *colorMap) | 
|   | 
| virtual void  | Draw (std::map< G4int, G4double *> *map, G4VScoreColorMap *colorMap, G4int axflg=111)=0 | 
|   | 
| virtual void  | DrawColumn (std::map< G4int, G4double *> *map, G4VScoreColorMap *colorMap, G4int idxProj, G4int idxColumn)=0 | 
|   | 
| void  | ResetScore () | 
|   | 
| void  | SetSize (G4double size[3]) | 
|   | 
| G4ThreeVector  | GetSize () const | 
|   | 
| void  | SetCenterPosition (G4double centerPosition[3]) | 
|   | 
| G4ThreeVector  | GetTranslation () const | 
|   | 
| void  | RotateX (G4double delta) | 
|   | 
| void  | RotateY (G4double delta) | 
|   | 
| void  | RotateZ (G4double delta) | 
|   | 
| G4RotationMatrix  | GetRotationMatrix () const | 
|   | 
| void  | SetNumberOfSegments (G4int nSegment[3]) | 
|   | 
| void  | GetNumberOfSegments (G4int nSegment[3]) | 
|   | 
| void  | SetPrimitiveScorer (G4VPrimitiveScorer *ps) | 
|   | 
| void  | SetFilter (G4VSDFilter *filter) | 
|   | 
| void  | SetCurrentPrimitiveScorer (const G4String &name) | 
|   | 
| G4bool  | FindPrimitiveScorer (const G4String &psname) | 
|   | 
| G4bool  | IsCurrentPrimitiveScorerNull () | 
|   | 
| G4String  | GetPSUnit (const G4String &psname) | 
|   | 
| G4String  | GetCurrentPSUnit () | 
|   | 
| void  | SetCurrentPSUnit (const G4String &unit) | 
|   | 
| G4double  | GetPSUnitValue (const G4String &psname) | 
|   | 
| void  | SetDrawPSName (const G4String &psname) | 
|   | 
| void  | GetDivisionAxisNames (G4String divisionAxisNames[3]) | 
|   | 
| void  | SetNullToCurrentPrimitiveScorer () | 
|   | 
| void  | SetVerboseLevel (G4int vl) | 
|   | 
| MeshScoreMap  | GetScoreMap () const | 
|   | 
| G4bool  | ReadyForQuantity () const | 
|   | 
| void  | SetMeshElementLogical (G4LogicalVolume *val) | 
|   | 
| G4LogicalVolume *  | GetMeshElementLogical () const | 
|   | 
| void  | SetParallelWorldProcess (G4ParallelWorldProcess *proc) | 
|   | 
| G4ParallelWorldProcess *  | GetParallelWorldProcess () const | 
|   | 
| void  | GeometryHasBeenDestroyed () | 
|   | 
Definition at line 54 of file G4VScoringMesh.hh.
 
◆ G4VScoringMesh()
      
        
          | G4VScoringMesh::G4VScoringMesh  | 
          ( | 
          const G4String &  | 
          wName | ) | 
           | 
        
      
 
Definition at line 46 of file G4VScoringMesh.cc.
G4MultiFunctionalDetector * fMFD
 
G4ParallelWorldProcess * fParallelWorldProcess
 
G4RotationMatrix * fRotationMatrix
 
G4bool fGeometryHasBeenDestroyed
 
G4LogicalVolume * fMeshElementLogical
 
void AddNewDetector(G4VSensitiveDetector *aSD)
 
G4VPrimitiveScorer * fCurrentPS
 
static G4SDManager * GetSDMpointer()
 
G4String fDivisionAxisNames[3]
 
 
 
 
◆ ~G4VScoringMesh()
  
  
      
        
          | G4VScoringMesh::~G4VScoringMesh  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Accumulate()
Definition at line 313 of file G4VScoringMesh.cc.
  316   std::map<G4String, G4THitsMap<G4double>* >::const_iterator fMapItr = 
fMap.find(psName);
   317   *(fMapItr->second) += *map;
   323     if(fMapItr == 
fMap.end()) {
   325              << psName << 
" was not found." << 
G4endl;
 G4GLOB_DLL std::ostream G4cout
 
virtual void PrintAllHits()
 
virtual size_t GetSize() const
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ Activate()
  
  
      
        
          | void G4VScoringMesh::Activate  | 
          ( | 
          G4bool  | 
          vl = true | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ Construct()
Definition at line 334 of file G4VScoringMesh.cc.
  342       G4cout << fWorldPhys->
GetName() << 
" --- All quantities are reset." 
G4GLOB_DLL std::ostream G4cout
 
virtual void SetupGeometry(G4VPhysicalVolume *fWorldPhys)=0
 
G4bool fGeometryHasBeenDestroyed
 
const G4String & GetName() const
 
 
 
 
◆ Draw()
◆ DrawColumn()
◆ DrawMesh() [1/2]
Definition at line 287 of file G4VScoringMesh.cc.
  290   std::map<G4String, G4THitsMap<G4double>* >::const_iterator fMapItr = 
fMap.find(psName);
   291   if(fMapItr!=
fMap.end()) {
   294     Draw(fMapItr->second->GetMap(), colorMap,axflg);
   296     G4cerr << 
"Scorer <" << psName << 
"> is not defined. Method ignored." << 
G4endl;
 G4double GetPSUnitValue(const G4String &psname)
 
G4String GetPSUnit(const G4String &psname)
 
virtual void Draw(std::map< G4int, G4double *> *map, G4VScoreColorMap *colorMap, G4int axflg=111)=0
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ DrawMesh() [2/2]
Definition at line 300 of file G4VScoringMesh.cc.
  303   std::map<G4String, G4THitsMap<G4double>* >::const_iterator fMapItr = 
fMap.find(psName);
   304   if(fMapItr!=
fMap.end()) {
   307     DrawColumn(fMapItr->second->GetMap(),colorMap,idxPlane,iColumn);
   309     G4cerr << 
"Scorer <" << psName << 
"> is not defined. Method ignored." << 
G4endl;
 G4double GetPSUnitValue(const G4String &psname)
 
G4String GetPSUnit(const G4String &psname)
 
virtual void DrawColumn(std::map< G4int, G4double *> *map, G4VScoreColorMap *colorMap, G4int idxProj, G4int idxColumn)=0
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ Dump()
      
        
          | void G4VScoringMesh::Dump  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 274 of file G4VScoringMesh.cc.
  280     mp.second->PrintAllHits();
 G4GLOB_DLL std::ostream G4cout
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ FindPrimitiveScorer()
Definition at line 174 of file G4VScoringMesh.cc.
  175   std::map<G4String, G4THitsMap<G4double>* >::iterator itr = 
fMap.find(psname);;
   176   if(itr == 
fMap.end()) 
return false;
 std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ GeometryHasBeenDestroyed()
  
  
      
        
          | void G4VScoringMesh::GeometryHasBeenDestroyed  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Definition at line 213 of file G4VScoringMesh.hh.
G4bool fGeometryHasBeenDestroyed
 
G4LogicalVolume * fMeshElementLogical
 
 
 
 
◆ GetCurrentPSUnit()
      
        
          | G4String G4VScoringMesh::GetCurrentPSUnit  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 189 of file G4VScoringMesh.cc.
  192       G4String msg = 
"ERROR : G4VScoringMesh::GetCurrentPSUnit() : ";
   193       msg += 
" Current primitive scorer is null.";
 G4VPrimitiveScorer * fCurrentPS
 
const G4String & GetUnit() const
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ GetDivisionAxisNames()
      
        
          | void G4VScoringMesh::GetDivisionAxisNames  | 
          ( | 
          G4String  | 
          divisionAxisNames[3] | ) | 
           | 
        
      
 
 
◆ GetMeshElementLogical()
◆ GetNumberOfSegments()
      
        
          | void G4VScoringMesh::GetNumberOfSegments  | 
          ( | 
          G4int  | 
          nSegment[3] | ) | 
           | 
        
      
 
 
◆ GetParallelWorldProcess()
◆ GetPrimitiveScorer()
Definition at line 224 of file G4VScoringMesh.cc.
  225   if(!
fMFD) 
return nullptr;
   228   for(
G4int i = 0; i < nps; i++) {
   230     if(name == prs->
GetName()) 
return prs;
 G4int GetNumberOfPrimitives() const
 
G4MultiFunctionalDetector * fMFD
 
G4VPrimitiveScorer * GetPrimitive(G4int id) const
 
 
 
 
◆ GetPSUnit()
Definition at line 180 of file G4VScoringMesh.cc.
  181   std::map<G4String, G4THitsMap<G4double>* >::iterator itr = 
fMap.find(psname);;
   182   if(itr == 
fMap.end()) {
 G4VPrimitiveScorer * GetPrimitiveScorer(const G4String &name)
 
const G4String & GetUnit() const
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ GetPSUnitValue()
Definition at line 211 of file G4VScoringMesh.cc.
  212   std::map<G4String, G4THitsMap<G4double>* >::iterator itr = 
fMap.find(psname);;
   213   if(itr == 
fMap.end()) {
 G4double GetUnitValue() const
 
G4VPrimitiveScorer * GetPrimitiveScorer(const G4String &name)
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ GetRotationMatrix()
Definition at line 119 of file G4VScoringMesh.hh.
static DLL_API const HepRotation IDENTITY
 
G4RotationMatrix * fRotationMatrix
 
 
 
 
◆ GetScoreMap()
Definition at line 161 of file G4VScoringMesh.hh.
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ GetShape()
◆ GetSize()
◆ GetTranslation()
◆ GetWorldName()
  
  
      
        
          | const G4String& G4VScoringMesh::GetWorldName  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ IsActive()
  
  
      
        
          | G4bool G4VScoringMesh::IsActive  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ IsCurrentPrimitiveScorerNull()
  
  
      
        
          | G4bool G4VScoringMesh::IsCurrentPrimitiveScorerNull  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ List()
  
  
      
        
          | void G4VScoringMesh::List  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Reimplemented in G4ScoringBox, and G4ScoringCylinder.
Definition at line 235 of file G4VScoringMesh.cc.
  237   G4cout << 
" # of segments: ("   242   G4cout << 
" displacement: ("   248     G4cout << 
" rotation matrix: "   266   for(
int i = 0; i < nps; i++) {
 G4int GetNumberOfPrimitives() const
 
G4VSDFilter * GetFilter() const
 
G4ThreeVector fCenterPosition
 
G4MultiFunctionalDetector * fMFD
 
G4GLOB_DLL std::ostream G4cout
 
G4RotationMatrix * fRotationMatrix
 
G4VPrimitiveScorer * GetPrimitive(G4int id) const
 
 
 
 
◆ Merge()
Definition at line 370 of file G4VScoringMesh.cc.
  374   MeshScoreMap::const_iterator fMapItr = 
fMap.begin();
   375   MeshScoreMap::const_iterator mapItr = scMap.begin();
   376   for(; fMapItr != 
fMap.end(); fMapItr++) {
   378     *(fMapItr->second) += *(mapItr->second);
 std::map< G4String, G4THitsMap< G4double > *> MeshScoreMap
 
MeshScoreMap GetScoreMap() const
 
G4GLOB_DLL std::ostream G4cout
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ ReadyForQuantity()
  
  
      
        
          | G4bool G4VScoringMesh::ReadyForQuantity  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ ResetScore()
      
        
          | void G4VScoringMesh::ResetScore  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 64 of file G4VScoringMesh.cc.
G4GLOB_DLL std::ostream G4cout
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
 
 
 
◆ RotateX()
      
        
          | void G4VScoringMesh::RotateX  | 
          ( | 
          G4double  | 
          delta | ) | 
           | 
        
      
 
Definition at line 107 of file G4VScoringMesh.cc.
HepRotation & rotateX(double delta)
 
CLHEP::HepRotation G4RotationMatrix
 
G4RotationMatrix * fRotationMatrix
 
 
 
 
◆ RotateY()
      
        
          | void G4VScoringMesh::RotateY  | 
          ( | 
          G4double  | 
          delta | ) | 
           | 
        
      
 
Definition at line 112 of file G4VScoringMesh.cc.
CLHEP::HepRotation G4RotationMatrix
 
HepRotation & rotateY(double delta)
 
G4RotationMatrix * fRotationMatrix
 
 
 
 
◆ RotateZ()
      
        
          | void G4VScoringMesh::RotateZ  | 
          ( | 
          G4double  | 
          delta | ) | 
           | 
        
      
 
Definition at line 117 of file G4VScoringMesh.cc.
CLHEP::HepRotation G4RotationMatrix
 
G4RotationMatrix * fRotationMatrix
 
HepRotation & rotateZ(double delta)
 
 
 
 
◆ SetCenterPosition()
      
        
          | void G4VScoringMesh::SetCenterPosition  | 
          ( | 
          G4double  | 
          centerPosition[3] | ) | 
           | 
        
      
 
Definition at line 90 of file G4VScoringMesh.cc.
G4ThreeVector fCenterPosition
 
CLHEP::Hep3Vector G4ThreeVector
 
 
 
 
◆ SetCurrentPrimitiveScorer()
      
        
          | void G4VScoringMesh::SetCurrentPrimitiveScorer  | 
          ( | 
          const G4String &  | 
          name | ) | 
           | 
        
      
 
Definition at line 166 of file G4VScoringMesh.cc.
  169     G4cerr << 
"ERROR : G4VScoringMesh::SetCurrentPrimitiveScorer() : The primitive scorer <"   170        << name << 
"> does not found." << 
G4endl;
 G4VPrimitiveScorer * GetPrimitiveScorer(const G4String &name)
 
G4VPrimitiveScorer * fCurrentPS
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ SetCurrentPSUnit()
      
        
          | void G4VScoringMesh::SetCurrentPSUnit  | 
          ( | 
          const G4String &  | 
          unit | ) | 
           | 
        
      
 
Definition at line 201 of file G4VScoringMesh.cc.
  203       G4String msg = 
"ERROR : G4VScoringMesh::GetCurrentPSUnit() : ";
   204       msg += 
" Current primitive scorer is null.";
 G4VPrimitiveScorer * fCurrentPS
 
void SetUnit(const G4String &unit)
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ SetDrawPSName()
  
  
      
        
          | void G4VScoringMesh::SetDrawPSName  | 
          ( | 
          const G4String &  | 
          psname | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetFilter()
Definition at line 146 of file G4VScoringMesh.cc.
  149     G4cerr << 
"ERROR : G4VScoringMesh::SetSDFilter() : a quantity must be defined first. This method is ignored." << 
G4endl;
   160     G4cout << 
"WARNING : G4VScoringMesh::SetFilter() : " << oldFilter->
GetName() 
 G4VSDFilter * GetFilter() const
 
void SetFilter(G4VSDFilter *f)
 
G4GLOB_DLL std::ostream G4cout
 
G4VPrimitiveScorer * fCurrentPS
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ SetMeshElementLogical()
◆ SetNullToCurrentPrimitiveScorer()
  
  
      
        
          | void G4VScoringMesh::SetNullToCurrentPrimitiveScorer  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ SetNumberOfSegments()
      
        
          | void G4VScoringMesh::SetNumberOfSegments  | 
          ( | 
          G4int  | 
          nSegment[3] | ) | 
           | 
        
      
 
Definition at line 93 of file G4VScoringMesh.cc.
   95     for(
int i = 0; i < 3; i++) 
fNSegment[i] = nSegment[i];
    98     G4String message = 
"   The size of scoring segments can not be changed.";
    99     G4Exception(
"G4VScoringMesh::SetNumberOfSegments()",
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
◆ SetParallelWorldProcess()
◆ SetPrimitiveScorer()
Definition at line 122 of file G4VScoringMesh.cc.
  126     G4cerr << 
"ERROR : G4VScoringMesh::SetPrimitiveScorer() : "   128            << 
" does not yet have mesh size or number of bins. Set them first." << 
G4endl   129            << 
"This Method is ignored." << 
G4endl;
   133                   << prs->GetName() << 
" is registered."   143   fMap[prs->GetName()] = map;
 G4bool RegisterPrimitive(G4VPrimitiveScorer *)
 
G4MultiFunctionalDetector * fMFD
 
G4GLOB_DLL std::ostream G4cout
 
G4VPrimitiveScorer * fCurrentPS
 
G4bool ReadyForQuantity() const
 
std::map< G4String, G4THitsMap< G4double > *> fMap
 
G4GLOB_DLL std::ostream G4cerr
 
 
 
 
◆ SetSize()
      
        
          | void G4VScoringMesh::SetSize  | 
          ( | 
          G4double  | 
          size[3] | ) | 
           | 
        
      
 
Definition at line 73 of file G4VScoringMesh.cc.
   75     for(
int i = 0; i < 3; i++) 
fSize[i] = size[i];
    78     G4String message = 
"   The size of scoring mesh can not be changed.";
 
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
 
 
 
 
◆ SetupGeometry()
◆ SetVerboseLevel()
  
  
      
        
          | void G4VScoringMesh::SetVerboseLevel  | 
          ( | 
          G4int  | 
          vl | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ WorkerConstruct()
Definition at line 352 of file G4VScoringMesh.cc.
G4MultiFunctionalDetector * fMFD
 
G4GLOB_DLL std::ostream G4cout
 
G4bool fGeometryHasBeenDestroyed
 
G4LogicalVolume * fMeshElementLogical
 
const G4String & GetName() const
 
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
 
 
 
 
◆ fActive
  
  
      
        
          | G4bool G4VScoringMesh::fActive | 
         
       
   | 
  
protected   | 
  
 
 
◆ fCenterPosition
◆ fConstructed
  
  
      
        
          | G4bool G4VScoringMesh::fConstructed | 
         
       
   | 
  
protected   | 
  
 
 
◆ fCurrentPS
◆ fDivisionAxisNames
  
  
      
        
          | G4String G4VScoringMesh::fDivisionAxisNames[3] | 
         
       
   | 
  
protected   | 
  
 
 
◆ fDrawPSName
◆ fDrawUnit
◆ fDrawUnitValue
◆ fGeometryHasBeenDestroyed
  
  
      
        
          | G4bool G4VScoringMesh::fGeometryHasBeenDestroyed | 
         
       
   | 
  
protected   | 
  
 
 
◆ fMap
◆ fMeshElementLogical
◆ fMFD
◆ fNSegment
  
  
      
        
          | G4int G4VScoringMesh::fNSegment[3] | 
         
       
   | 
  
protected   | 
  
 
 
◆ fParallelWorldProcess
◆ fRotationMatrix
◆ fShape
◆ fSize
◆ fWorldName
◆ nMeshIsSet
  
  
      
        
          | G4bool G4VScoringMesh::nMeshIsSet | 
         
       
   | 
  
protected   | 
  
 
 
◆ sizeIsSet
  
  
      
        
          | G4bool G4VScoringMesh::sizeIsSet | 
         
       
   | 
  
protected   | 
  
 
 
◆ verboseLevel
  
  
      
        
          | G4int G4VScoringMesh::verboseLevel | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: