Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ExTGRCLineProcessor Class Reference

#include <ExTGRCLineProcessor.hh>

Inheritance diagram for ExTGRCLineProcessor:
G4tgrLineProcessor

Public Member Functions

 ExTGRCLineProcessor ()
 
 ~ExTGRCLineProcessor ()
 
G4bool ProcessLine (const std::vector< G4String > &wl)
 
- Public Member Functions inherited from G4tgrLineProcessor
 G4tgrLineProcessor ()
 
virtual ~G4tgrLineProcessor ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4tgrLineProcessor
G4tgrVolumeFindVolume (const G4String &volname)
 

Detailed Description

Line processor that adds the definition of regions

Changes: creation May 2007

Author
P. Arce

Definition at line 44 of file ExTGRCLineProcessor.hh.

Constructor & Destructor Documentation

ExTGRCLineProcessor::ExTGRCLineProcessor ( )

Definition at line 35 of file ExTGRCLineProcessor.cc.

36 {
37 }
ExTGRCLineProcessor::~ExTGRCLineProcessor ( )

Definition at line 40 of file ExTGRCLineProcessor.cc.

41 {
42 }

Member Function Documentation

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

Reimplemented from G4tgrLineProcessor.

Definition at line 45 of file ExTGRCLineProcessor.cc.

References ExTGRCRegionCutsMgr::AddRegionCuts(), ExTGRCRegionCutsMgr::AddRegionData(), ExTGRCRegionCutsMgr::GetInstance(), and G4tgrLineProcessor::ProcessLine().

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

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