34 const TString& className,
const TString& methodName,
const TString& text)
38 TString newText =
"x\n" + className +
"::" + methodName +
":x\n";
39 newText += text +
"\n";
40 newText +=
"*** TG4Exception: Aborting execution ***";
41 newText.ReplaceAll(
"x\n",
"\n ");
43 G4cerr << newText.Data() << G4endl << G4endl;
49 const TString& className,
const TString& methodName,
const TString& text)
53 TString newText =
"++++ TG4Warning: ++++x\n";
54 newText += className +
"::" + methodName +
":x\n";
55 newText += text +
"\n";
56 newText +=
"+++++++++++++++++++++++";
57 newText.ReplaceAll(
"x\n",
"\n ");
59 G4cerr << newText.Data() << G4endl << G4endl;
67 const char* kpNumber =
"0123456789";
103 if (emptyLineFirst) G4cout << G4endl;
105 G4cout <<
"**********************************************" << G4endl;
107 if (!emptyLineFirst) G4cout << G4endl;
115 return G4String(
"vmc@root.cern.ch");
123 std::vector<G4String> tokens;
124 std::string ss = s.Data();
138 std::string::size_type idx0 = 0;
141 if (idx1 == std::string::npos) idx1 = ss.length();
142 tokens.push_back(G4String(ss.substr(idx0, idx1 - idx0)));
144 }
while (idx0 <= ss.length());
146 if (i < 0 || i >= Int_t(tokens.size()))
Definition of the TG4Globals class and basic container types.
static void AppendNumberToString(G4String &string, G4int number)
static G4String GetToken(Int_t i, const TString &s)
static const TString fgkEndl
Special endl.
static void PrintStars(G4bool emptyLineFirst)
static void Warning(const TString &className, const TString &methodName, const TString &text)
static void Exception(const TString &className, const TString &methodName, const TString &text)
static G4bool Compare(G4bool activation, TG4G3ControlValue controlValue)
static const char fgkTokenSeparator
Separator in GetToken() method.
TG4G3ControlValue
Enumeration for G3 processes control values.
@ kActivate
process is activated WITH generation of secondaries
@ kUnsetControlValue
value not set
@ kActivate2
process is activated WITHOUT generation of secondaries