SimG4Core
Application
src
CustomUIsessionToFile.cc
Go to the documentation of this file.
1
#include "
SimG4Core/Application/interface/CustomUIsessionToFile.h
"
2
3
CustomUIsessionToFile::CustomUIsessionToFile
(
const
std::string
& filePrefix,
int
threadId)
4
:
CustomUIsession
(), m_output(filePrefix +
"_"
+
std
::to_string(threadId) +
".txt"
) {}
5
6
CustomUIsessionToFile::~CustomUIsessionToFile
() {}
7
8
G4int
CustomUIsessionToFile::ReceiveG4cout
(
const
G4String& coutString) {
9
m_output
<< coutString;
10
return
0;
11
}
12
13
G4int
CustomUIsessionToFile::ReceiveG4cerr
(
const
G4String& cerrString) {
14
m_output
<< cerrString;
15
return
0;
16
}
CustomUIsessionToFile::~CustomUIsessionToFile
~CustomUIsessionToFile() override
Definition:
CustomUIsessionToFile.cc:6
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CustomUIsessionToFile::ReceiveG4cout
G4int ReceiveG4cout(const G4String &coutString) override
Definition:
CustomUIsessionToFile.cc:8
CustomUIsessionToFile::ReceiveG4cerr
G4int ReceiveG4cerr(const G4String &cerrString) override
Definition:
CustomUIsessionToFile.cc:13
CustomUIsessionToFile.h
std
Definition:
JetResolutionObject.h:76
CustomUIsession
Definition:
CustomUIsession.h:13
CustomUIsessionToFile::m_output
std::ofstream m_output
Definition:
CustomUIsessionToFile.h:28
CustomUIsessionToFile::CustomUIsessionToFile
CustomUIsessionToFile(const std::string &filePrefix, int threadId)
Definition:
CustomUIsessionToFile.cc:3
Generated for CMSSW Reference Manual by
1.8.16