#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 | Accumulate (G4THitsMap< G4StatDouble > *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 (RunScore *map, G4VScoreColorMap *colorMap, G4int axflg=111)=0 |
|
virtual void | DrawColumn (RunScore *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 57 of file G4VScoringMesh.hh.
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 |
( |
| ) |
|
|
virtual |
Definition at line 313 of file G4VScoringMesh.cc.
316 MeshScoreMap::const_iterator fMapItr =
fMap.find(psName);
317 *(fMapItr->second) += *map;
323 if(fMapItr ==
fMap.end()) {
G4GLOB_DLL std::ostream G4cout
virtual size_t GetSize() const
virtual void PrintAllHits()
Definition at line 333 of file G4VScoringMesh.cc.
336 MeshScoreMap::const_iterator fMapItr =
fMap.find(psName);
337 *(fMapItr->second) += *map;
343 if(fMapItr ==
fMap.end()) {
G4GLOB_DLL std::ostream G4cout
virtual size_t GetSize() const
virtual void PrintAllHits()
Definition at line 353 of file G4VScoringMesh.cc.
361 G4cout << fWorldPhys->
GetName() <<
" --- All quantities are reset."
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
virtual void SetupGeometry(G4VPhysicalVolume *fWorldPhys)=0
G4bool fGeometryHasBeenDestroyed
Definition at line 287 of file G4VScoringMesh.cc.
290 MeshScoreMap::const_iterator fMapItr =
fMap.find(psName);
291 if(fMapItr!=
fMap.end()) {
294 Draw(fMapItr->second, 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(RunScore *map, G4VScoreColorMap *colorMap, G4int axflg=111)=0
G4GLOB_DLL std::ostream G4cerr
Definition at line 300 of file G4VScoringMesh.cc.
303 MeshScoreMap::const_iterator fMapItr =
fMap.find(psName);
304 if(fMapItr!=
fMap.end()) {
307 DrawColumn(fMapItr->second,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(RunScore *map, G4VScoreColorMap *colorMap, G4int idxProj, G4int idxColumn)=0
G4GLOB_DLL std::ostream G4cerr
void G4VScoringMesh::Dump |
( |
| ) |
|
Definition at line 274 of file G4VScoringMesh.cc.
280 mp.second->PrintAllHits();
G4GLOB_DLL std::ostream G4cout
Definition at line 174 of file G4VScoringMesh.cc.
175 MeshScoreMap::iterator itr =
fMap.find(psname);
176 if(itr ==
fMap.end())
return false;
void G4VScoringMesh::GeometryHasBeenDestroyed |
( |
| ) |
|
|
inline |
Definition at line 217 of file G4VScoringMesh.hh.
G4bool fGeometryHasBeenDestroyed
G4LogicalVolume * fMeshElementLogical
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
void G4VScoringMesh::GetDivisionAxisNames |
( |
G4String |
divisionAxisNames[3] | ) |
|
void G4VScoringMesh::GetNumberOfSegments |
( |
G4int |
nSegment[3] | ) |
|
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;
G4MultiFunctionalDetector * fMFD
G4VPrimitiveScorer * GetPrimitive(G4int id) const
G4int GetNumberOfPrimitives() const
Definition at line 180 of file G4VScoringMesh.cc.
181 MeshScoreMap::iterator itr =
fMap.find(psname);
182 if(itr ==
fMap.end()) {
G4VPrimitiveScorer * GetPrimitiveScorer(const G4String &name)
const G4String & GetUnit() const
Definition at line 211 of file G4VScoringMesh.cc.
212 MeshScoreMap::iterator itr =
fMap.find(psname);
213 if(itr ==
fMap.end()) {
G4VPrimitiveScorer * GetPrimitiveScorer(const G4String &name)
G4double GetUnitValue() const
Definition at line 123 of file G4VScoringMesh.hh.
static DLL_API const HepRotation IDENTITY
G4RotationMatrix * fRotationMatrix
const G4String& G4VScoringMesh::GetWorldName |
( |
| ) |
const |
|
inline |
G4bool G4VScoringMesh::IsActive |
( |
| ) |
const |
|
inline |
G4bool G4VScoringMesh::IsCurrentPrimitiveScorerNull |
( |
| ) |
|
|
inline |
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++) {
G4ThreeVector fCenterPosition
G4MultiFunctionalDetector * fMFD
G4GLOB_DLL std::ostream G4cout
G4VPrimitiveScorer * GetPrimitive(G4int id) const
G4RotationMatrix * fRotationMatrix
static constexpr double cm
G4int GetNumberOfPrimitives() const
G4VSDFilter * GetFilter() const
Definition at line 389 of file G4VScoringMesh.cc.
393 MeshScoreMap::const_iterator fMapItr =
fMap.begin();
394 MeshScoreMap::const_iterator mapItr = scMap.begin();
395 for(; fMapItr !=
fMap.end(); fMapItr++) {
397 *(fMapItr->second) += *(mapItr->second);
G4GLOB_DLL std::ostream G4cout
MeshScoreMap GetScoreMap() const
std::map< G4String, RunScore * > MeshScoreMap
G4bool G4VScoringMesh::ReadyForQuantity |
( |
| ) |
const |
|
inline |
void G4VScoringMesh::ResetScore |
( |
| ) |
|
Definition at line 107 of file G4VScoringMesh.cc.
HepRotation & rotateX(double delta)
CLHEP::HepRotation G4RotationMatrix
G4RotationMatrix * fRotationMatrix
Definition at line 112 of file G4VScoringMesh.cc.
CLHEP::HepRotation G4RotationMatrix
HepRotation & rotateY(double delta)
G4RotationMatrix * fRotationMatrix
Definition at line 117 of file G4VScoringMesh.cc.
CLHEP::HepRotation G4RotationMatrix
G4RotationMatrix * fRotationMatrix
HepRotation & rotateZ(double delta)
void G4VScoringMesh::SetCenterPosition |
( |
G4double |
centerPosition[3] | ) |
|
Definition at line 90 of file G4VScoringMesh.cc.
G4ThreeVector fCenterPosition
CLHEP::Hep3Vector G4ThreeVector
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
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
void G4VScoringMesh::SetDrawPSName |
( |
const G4String & |
psname | ) |
|
|
inline |
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()
void SetFilter(G4VSDFilter *f)
G4GLOB_DLL std::ostream G4cout
G4VPrimitiveScorer * fCurrentPS
G4GLOB_DLL std::ostream G4cerr
G4VSDFilter * GetFilter() const
void G4VScoringMesh::SetNullToCurrentPrimitiveScorer |
( |
| ) |
|
|
inline |
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)
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
G4bool ReadyForQuantity() const
G4VPrimitiveScorer * fCurrentPS
G4GLOB_DLL std::ostream G4cerr
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)
void G4VScoringMesh::SetVerboseLevel |
( |
G4int |
vl | ) |
|
|
inline |
Definition at line 371 of file G4VScoringMesh.cc.
G4MultiFunctionalDetector * fMFD
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
G4bool fGeometryHasBeenDestroyed
G4LogicalVolume * fMeshElementLogical
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
G4bool G4VScoringMesh::fActive |
|
protected |
G4bool G4VScoringMesh::fConstructed |
|
protected |
G4String G4VScoringMesh::fDivisionAxisNames[3] |
|
protected |
G4bool G4VScoringMesh::fGeometryHasBeenDestroyed |
|
protected |
G4int G4VScoringMesh::fNSegment[3] |
|
protected |
G4bool G4VScoringMesh::nMeshIsSet |
|
protected |
G4bool G4VScoringMesh::sizeIsSet |
|
protected |
G4int G4VScoringMesh::verboseLevel |
|
protected |
The documentation for this class was generated from the following files: