#include <IPCMat.h>
Definition at line 37 of file IPCMat.h.
◆ IPCMat() [1/3]
| Trk::IPCMat::IPCMat |
( |
IMessageSvc * | msgSvc | ) |
|
Definition at line 22 of file IPCMat.cxx.
26 m_name(
"GlobAlign::IPCMat"),
28{
29}
const std::string & name() const
◆ ~IPCMat()
◆ IPCMat() [2/3]
| Trk::IPCMat::IPCMat |
( |
const IPCMat & | | ) |
|
|
delete |
◆ IPCMat() [3/3]
◆ allocate()
| StatusCode Trk::IPCMat::allocate |
( |
int | size | ) |
|
Definition at line 238 of file IPCMat.cxx.
238 {
239
240 if (
m_log->level()>=MSG::INFO) {
241 *
m_log << MSG::INFO;
m_log->setColor(MSG::BLUE);
243 }
244
247
249 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
250 <<
" Error number is " << errno <<
endmsg;
251 return StatusCode::FAILURE;
252 }
253
254 return StatusCode::SUCCESS;
255}
struct Trk::IPCMat::MsgBuf m_ipcmat_msgp
◆ end()
| StatusCode Trk::IPCMat::end |
( |
| ) |
|
Definition at line 324 of file IPCMat.cxx.
324 {
325
326
329 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
330 <<
" Error number is " << errno <<
endmsg;
331 return StatusCode::FAILURE;
332 }
333
334
336 return StatusCode::SUCCESS;
337}
◆ incMat()
| StatusCode Trk::IPCMat::incMat |
( |
uint32_t | a, |
|
|
uint32_t | b, |
|
|
double | c ) |
Definition at line 39 of file IPCMat.cxx.
39 {
40
41
46
48 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
49 return StatusCode::FAILURE;
50 }
51
52 return StatusCode::SUCCESS;
53}
◆ incVec()
| StatusCode Trk::IPCMat::incVec |
( |
uint32_t | a, |
|
|
double | c ) |
Definition at line 58 of file IPCMat.cxx.
58 {
59
60
65
66 if (
m_log->level()>=MSG::DEBUG)
67 *
m_log << MSG::DEBUG <<
"call number " << std::setw(8) <<
m_ncalls
69
71 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
72 <<
" Error number is " << errno <<
endmsg;
73 return StatusCode::FAILURE;
74 }
75
77 return StatusCode::SUCCESS;
78}
◆ init()
| StatusCode Trk::IPCMat::init |
( |
void | | ) |
|
Definition at line 177 of file IPCMat.cxx.
177 {
178
179 if (
m_log->level()>=MSG::INFO) {
180 *
m_log << MSG::INFO;
m_log->setColor(MSG::BLUE);
182 }
183
185
186 if ((key = ftok("/dev/null", 69)) == -1) {
187 *
m_log << MSG::ERROR <<
"Unable to get key" <<
endmsg;
188 return StatusCode::FAILURE;
189 }
190 else{
191 if (
m_log->level()>=MSG::INFO)
193 }
194
195
196 msgctl(
m_msgid, IPC_RMID,
nullptr);
197
198 m_msgid = msgget(key, IPC_CREAT | 0666);
200 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
201 <<
" Error number is " << errno <<
endmsg;
202 return StatusCode::FAILURE;
203 }else{
204 if (
m_log->level()>=MSG::INFO)
206 }
207
208
210 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
211 <<
" Error number is " << errno <<
endmsg;
212 return StatusCode::FAILURE;
213 }
214 if (
m_log->level()>=MSG::INFO)
216
218 {
219
220
221 if (execlp("ipcmatr", "", NULL) < 0)
222 {
223 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" key: " <<
key
224 <<
" Error number is " << errno <<
endmsg;
225 return StatusCode::FAILURE;
226 }
227 }
228
229
230 sleep(1);
231
232 return StatusCode::SUCCESS;
233}
◆ name()
| const std::string & Trk::IPCMat::name |
( |
| ) |
const |
|
private |
◆ operator=()
◆ removeAlignPar()
| StatusCode Trk::IPCMat::removeAlignPar |
( |
int | alpar | ) |
|
Definition at line 159 of file IPCMat.cxx.
159 {
160
161
164
166 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
167 <<
" Error number is " << errno <<
endmsg;
168 return StatusCode::FAILURE;
169 }
170
171 return StatusCode::SUCCESS;
172}
◆ removeModule()
| StatusCode Trk::IPCMat::removeModule |
( |
int | mod | ) |
|
Definition at line 141 of file IPCMat.cxx.
141 {
142
143
146
148 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
149 <<
" Error number is " << errno <<
endmsg;
150 return StatusCode::FAILURE;
151 }
152
153 return StatusCode::SUCCESS;
154}
◆ reSize()
| StatusCode Trk::IPCMat::reSize |
( |
int | newsize | ) |
|
Definition at line 122 of file IPCMat.cxx.
122 {
123
124 if (
m_log->level()>=MSG::INFO)
125 *
m_log << MSG::INFO <<
"in ipcmat_resize" <<
endmsg;
126
129
131 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
132 return StatusCode::FAILURE;
133 }
134
135 return StatusCode::SUCCESS;
136}
◆ scaleMat()
| StatusCode Trk::IPCMat::scaleMat |
( |
int | scale | ) |
|
Definition at line 83 of file IPCMat.cxx.
83 {
84
85 if (
m_log->level()>=MSG::INFO)
87
90
92 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
93 <<
" Error number is " << errno <<
endmsg;
94 return StatusCode::FAILURE;
95 }
96
97 return StatusCode::SUCCESS;
98}
◆ scaleVec()
| StatusCode Trk::IPCMat::scaleVec |
( |
int | scale | ) |
|
Definition at line 103 of file IPCMat.cxx.
103 {
104
105 if (
m_log->level()>=MSG::INFO)
107
110
112 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__ <<
" Error number is " << errno <<
endmsg;
113 return StatusCode::FAILURE;
114 }
115
116 return StatusCode::SUCCESS;
117}
◆ setScale()
| StatusCode Trk::IPCMat::setScale |
( |
int | scale | ) |
|
Definition at line 260 of file IPCMat.cxx.
260 {
261
262 if (
m_log->level()>=MSG::INFO)
264
267
269 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
270 <<
" Error number is " << errno <<
endmsg;
271 return StatusCode::FAILURE;
272 }
273
274 return StatusCode::SUCCESS;
275}
◆ setVersion()
| StatusCode Trk::IPCMat::setVersion |
( |
float | version, |
|
|
bool | isMatrix ) |
Definition at line 280 of file IPCMat.cxx.
280 {
281
282
285
286 std::string mType = isMatrix ? "MatVersion" : "VecVersion";
287 if (
m_log->level()>=MSG::INFO)
289
290
292 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
293 <<
" Error number is " << errno <<
endmsg;
294 return StatusCode::FAILURE;
295 }
296
297 return StatusCode::SUCCESS;
298}
◆ summary()
| void Trk::IPCMat::summary |
( |
| ) |
|
Definition at line 342 of file IPCMat.cxx.
342 {
343
344
345 if (
m_log->level()>=MSG::INFO) {
346 *
m_log << MSG::INFO <<
"++++++++++++++++++++++++++++++++++++++++" <<
endmsg;
348 *
m_log << MSG::INFO <<
"++++++++++++++++++++++++++++++++++++++++" <<
endmsg;
349 }
350}
◆ write()
| StatusCode Trk::IPCMat::write |
( |
const std::string & | ipcname, |
|
|
bool | isMatrix ) |
Definition at line 303 of file IPCMat.cxx.
303 {
304
305 if (
m_log->level()>=MSG::INFO)
306 *
m_log << MSG::INFO <<
"Writting ipcmat. Selected name is : " << ipcname
308
312
314 *
m_log << MSG::ERROR <<
"ipcmats: line: " << __LINE__
315 <<
" Error number is " << errno <<
endmsg;
316 return StatusCode::FAILURE;
317 }
318 return StatusCode::SUCCESS;
319}
◆ m_ipcmat_msgp
◆ m_ipcmat_pid
| pid_t Trk::IPCMat::m_ipcmat_pid {} |
|
private |
◆ m_log
| MsgStream* Trk::IPCMat::m_log {} |
|
private |
◆ m_msgid
| int Trk::IPCMat::m_msgid {} |
|
private |
◆ m_msgSvc
| IMessageSvc* Trk::IPCMat::m_msgSvc {} |
|
private |
◆ m_name
| std::string Trk::IPCMat::m_name |
|
private |
◆ m_ncalls
| int Trk::IPCMat::m_ncalls {} |
|
private |
The documentation for this class was generated from the following files: