CbmRoot
CbmTofDetectorId.cxx
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmTofDetectorId source file -----
3
// ----- Created 20/11/12 by F. Uhlig -----
4
// -------------------------------------------------------------------------
5
6
7
#include "
CbmTofDetectorId.h
"
8
14
//char* CbmTofDetectorId::itoa(int value, char* result, int base) {
15
// // check that the base if valid
16
// if (base < 2 || base > 36) { *result = '\0'; return result; }
17
//
18
// char* ptr = result, *ptr1 = result, tmp_char;
19
// int tmp_value;
20
//
21
// do {
22
// tmp_value = value;
23
// value /= base;
24
// *ptr++ = "zyxwvutsrqponmlkjihgfedcba9876543210123456789abcdefghijklmnopqrstuvwxyz" [35 + (tmp_value - value * base)];
25
// } while ( value );
26
//
27
// // Apply negative sign
28
// if (tmp_value < 0) *ptr++ = '-';
29
// *ptr-- = '\0';
30
// while(ptr1 < ptr) {
31
// tmp_char = *ptr;
32
// *ptr--= *ptr1;
33
// *ptr1++ = tmp_char;
34
// }
35
// return result;
36
//}
CbmTofDetectorId.h
core
data
tof
CbmTofDetectorId.cxx
Generated on Wed Oct 28 2020 15:11:46 for CbmRoot by
1.8.18