Loading...
Searching...
No Matches
Public Member Functions | List of all members
ExTGRCLineProcessor Class Reference

Line processor that adds the definition of regions. More...

#include <Doxymodules_persistency.h>

Inheritance diagram for ExTGRCLineProcessor:
G4tgrLineProcessor

Public Member Functions

 ExTGRCLineProcessor ()
 
 ~ExTGRCLineProcessor ()
 
G4bool ProcessLine (const std::vector< G4String > &wl)
 

Detailed Description

Line processor that adds the definition of regions.

Changes: creation May 2007

Author
P. Arce

Definition at line 121 of file Doxymodules_persistency.h.

Constructor & Destructor Documentation

◆ ExTGRCLineProcessor()

ExTGRCLineProcessor::ExTGRCLineProcessor ( )

Definition at line 34 of file ExTGRCLineProcessor.cc.

◆ ~ExTGRCLineProcessor()

ExTGRCLineProcessor::~ExTGRCLineProcessor ( )

Definition at line 39 of file ExTGRCLineProcessor.cc.

40{
41}

Member Function Documentation

◆ ProcessLine()

G4bool ExTGRCLineProcessor::ProcessLine ( const std::vector< G4String > &  wl)

Definition at line 44 of file ExTGRCLineProcessor.cc.

45{
46
47 G4bool iret = G4tgrLineProcessor::ProcessLine( wl );
48
49 G4String wl0 = wl[0];
50 for( size_t ii = 0; ii < wl0.length(); ii++ )
51 {
52 wl0[ii] = toupper( wl0[ii] );
53 }
54
55 if( !iret )
56 {
57 //------------------------------- parameter number
58 if( wl0 == ":REGION" )
59 {
60 std::vector<G4String>::const_iterator ite = wl.begin()+1;
61 std::vector<G4String> wlc;
62 for( ; ite != wl.end(); ite++ ) //loop skipping the first one
63 {
64 wlc.push_back( *ite );
65 }
66 // wlc = wlc.erase( wlc.begin() );
68 iret = 1;
69
70 }
71 else if( wl0 == ":CUTS" )
72 {
73 std::vector<G4String>::const_iterator ite = wl.begin()+1;
74 std::vector<G4String> wlc;
75 for( ; ite != wl.end(); ite++ ) //loop skipping the first one
76 {
77 wlc.push_back( *ite );
78 }
80 iret = 1;
81 }
82 else
83 {
84 iret = 0;
85 }
86 }
87
88 return iret;
89}
static ExTGRCRegionCutsMgr * GetInstance()
void AddRegionCuts(const std::vector< G4String > &rc)
void AddRegionData(const std::vector< G4String > &rd)

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

Applications | User Support | Publications | Collaboration