Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExTGRCRegionData Class Reference

Stores cuts per region data. More...

#include <Doxymodules_persistency.h>

Public Member Functions

 ExTGRCRegionData (const std::vector< G4String > &rd)
 
 ~ExTGRCRegionData ()
 
void SetCutsData (const std::vector< G4String > &cu)
 
G4String GetRegionName () const
 
std::vector< G4StringGetLVNames ()
 
G4double GetGammaCut () const
 
G4double GetElectronCut () const
 
G4double GetPositronCut () const
 
G4bool CutsAreSet () const
 

Private Attributes

G4String fRegionName
 
std::vector< G4StringfLVNames
 
G4double fGammaCut
 
G4double fElectronCut
 
G4double fPositronCut
 
G4bool fbCutsSet
 

Detailed Description

Stores cuts per region data.

Changes: creation May 2007

Author
P. Arce

Definition at line 123 of file Doxymodules_persistency.h.

Constructor & Destructor Documentation

◆ ExTGRCRegionData()

ExTGRCRegionData::ExTGRCRegionData ( const std::vector< G4String > &  rd)

Definition at line 35 of file ExTGRCRegionData.cc.

36{
37 if( wl.size() < 2 )
38 {
39 G4Exception("ExTGRCRegionData::ExTGRCRegionData()",
40 "InvalidArgument", FatalErrorInArgument,
41 G4UIcommand::ConvertToString( G4int(wl.size()) ) );
42 }
43 fRegionName = wl[0];
44 for( size_t ii = 1; ii < wl.size(); ii++ )
45 {
46 fLVNames.push_back( wl[ii] );
47 }
48 fbCutsSet = false;
49 fGammaCut = 1.;
50 fElectronCut = 1.;
51 fPositronCut = 1.;
52}
std::vector< G4String > fLVNames

◆ ~ExTGRCRegionData()

ExTGRCRegionData::~ExTGRCRegionData ( )

Definition at line 55 of file ExTGRCRegionData.cc.

56{
57}

Member Function Documentation

◆ SetCutsData()

void ExTGRCRegionData::SetCutsData ( const std::vector< G4String > &  cu)

Definition at line 60 of file ExTGRCRegionData.cc.

61{
62 if( (rc.size() != 3) && (rc.size() != 4) )
63 {
64 G4cerr << "ERROR - ExTGRCRegionData::SetCutsData()" << G4endl
65 << " Must have 3 or 4 arguments : "
66 << "REGION_NAME, gamma_CUT, e-_CUT (e+_CUT)." << G4endl
67 << " It has only " << rc.size() << " !" << G4endl;
68 G4Exception("ExTGRCRegionCutsMgr::AddRegionCuts()",
69 "InvalidArgument", FatalErrorInArgument,
70 G4UIcommand::ConvertToString( G4int(rc.size()) ) );
71 }
72
73 if( fbCutsSet )
74 {
75 G4Exception("ExTGRCRegionData::SetCutsData()",
76 "InvalidArgument", JustWarning,
77 G4String("Cuts are already set for region " + fRegionName).c_str() );
78 }
79
80 fGammaCut = G4tgrUtils::GetDouble( rc[1] );
81 fElectronCut = G4tgrUtils::GetDouble( rc[2] );
82 if( rc.size() == 3 )
83 {
85 }
86 else
87 {
88 fPositronCut = G4tgrUtils::GetDouble( rc[3] );
89 }
90
91 fbCutsSet = true;
92}

◆ GetRegionName()

G4String ExTGRCRegionData::GetRegionName ( ) const
inline

Definition at line 52 of file ExTGRCRegionData.hh.

52{ return fRegionName; }

◆ GetLVNames()

std::vector< G4String > ExTGRCRegionData::GetLVNames ( )
inline

Definition at line 53 of file ExTGRCRegionData.hh.

53{ return fLVNames; }

◆ GetGammaCut()

G4double ExTGRCRegionData::GetGammaCut ( ) const
inline

Definition at line 54 of file ExTGRCRegionData.hh.

54{ return fGammaCut; }

◆ GetElectronCut()

G4double ExTGRCRegionData::GetElectronCut ( ) const
inline

Definition at line 55 of file ExTGRCRegionData.hh.

55{ return fElectronCut; }

◆ GetPositronCut()

G4double ExTGRCRegionData::GetPositronCut ( ) const
inline

Definition at line 56 of file ExTGRCRegionData.hh.

56{ return fPositronCut; }

◆ CutsAreSet()

G4bool ExTGRCRegionData::CutsAreSet ( ) const
inline

Definition at line 57 of file ExTGRCRegionData.hh.

57{ return fbCutsSet; }

Member Data Documentation

◆ fRegionName

G4String ExTGRCRegionData::fRegionName
private

Definition at line 61 of file ExTGRCRegionData.hh.

◆ fLVNames

std::vector<G4String> ExTGRCRegionData::fLVNames
private

Definition at line 62 of file ExTGRCRegionData.hh.

◆ fGammaCut

G4double ExTGRCRegionData::fGammaCut
private

Definition at line 63 of file ExTGRCRegionData.hh.

◆ fElectronCut

G4double ExTGRCRegionData::fElectronCut
private

Definition at line 63 of file ExTGRCRegionData.hh.

◆ fPositronCut

G4double ExTGRCRegionData::fPositronCut
private

Definition at line 63 of file ExTGRCRegionData.hh.

◆ fbCutsSet

G4bool ExTGRCRegionData::fbCutsSet
private

Definition at line 64 of file ExTGRCRegionData.hh.


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

Applications | User Support | Publications | Collaboration