GeneratorInterface
ReggeGribovPartonMCInterface
src
LzmaFile.h
Go to the documentation of this file.
1
#ifndef _include_LzmaFile_h_
2
#define _include_LzmaFile_h_
3
4
#include "
Types.h
"
5
#include "
7zFile.h
"
6
#include "
LzmaDec.h
"
7
8
#include <string>
9
#include <queue>
10
11
#include "
LzmaDec.h
"
12
#include "
Alloc.h
"
13
#include "
Types.h
"
14
#include "
7zFile.h
"
15
16
#include <sstream>
17
#include <string>
18
#include <iostream>
19
#include <queue>
20
21
#define IN_BUF_SIZE (1 << 16)
22
#define OUT_BUF_SIZE (1 << 16)
23
24
struct
LzmaFile
{
25
LzmaFile
();
26
27
SRes
Open
(
const
std::string
&
fileName
);
28
SRes
Close
();
29
SRes
DecodeAll
();
30
SRes
DecodeBuffer
();
31
//SRes DecodeArray(double* data, const int length);
32
SRes
ReadNextNumber
(
double
&
data
);
33
SRes
FillArray
(
double
*
data
,
const
int
length);
34
35
CFileSeqInStream
inStream
;
36
int
res
;
37
CLzmaDec
state
;
38
39
// std::ostringstream fStrNumber;
40
41
UInt64
unpackSize
;
42
43
Byte
inBuf
[
IN_BUF_SIZE
];
44
Byte
outBuf
[
OUT_BUF_SIZE
];
45
46
std::queue<double>
fStorage
;
47
48
size_t
inPos
;
49
size_t
inSize
;
50
size_t
outPos
;
51
52
// string converting
53
bool
fStartNumber
;
54
55
bool
fReadSign
;
56
bool
fReadMantisseR
;
57
bool
fReadMantisseF
;
58
bool
fReadExponentSign
;
59
bool
fReadExponent
;
60
61
bool
fNegative
;
62
bool
fExponentNegative
;
63
64
double
fMantisseR
;
65
double
fMantisseF
;
66
int
fMantisseFcount
;
67
int
fExponent
;
68
};
69
70
#endif
LzmaFile::fMantisseR
double fMantisseR
Definition:
LzmaFile.h:64
Byte
unsigned char Byte
Definition:
Types.h:60
LzmaFile::LzmaFile
LzmaFile()
Definition:
LzmaFile.cc:25
LzmaFile::fReadExponentSign
bool fReadExponentSign
Definition:
LzmaFile.h:58
LzmaFile::Close
SRes Close()
Definition:
LzmaFile.cc:351
LzmaFile::fExponentNegative
bool fExponentNegative
Definition:
LzmaFile.h:62
LzmaFile::state
CLzmaDec state
Definition:
LzmaFile.h:37
LzmaDec.h
UInt64
unsigned long long int UInt64
Definition:
Types.h:88
7zFile.h
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
OUT_BUF_SIZE
#define OUT_BUF_SIZE
Definition:
LzmaFile.h:22
LzmaFile::inBuf
Byte inBuf[(1<< 16)]
Definition:
LzmaFile.h:43
LzmaFile::ReadNextNumber
SRes ReadNextNumber(double &data)
Definition:
LzmaFile.cc:80
LzmaFile::fReadMantisseR
bool fReadMantisseR
Definition:
LzmaFile.h:56
LzmaFile::fStorage
std::queue< double > fStorage
Definition:
LzmaFile.h:46
LzmaFile::fReadMantisseF
bool fReadMantisseF
Definition:
LzmaFile.h:57
LzmaFile::outPos
size_t outPos
Definition:
LzmaFile.h:50
LzmaFile::Open
SRes Open(const std::string &fileName)
Definition:
LzmaFile.cc:44
LzmaFile::DecodeAll
SRes DecodeAll()
Definition:
LzmaFile.cc:306
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CLzmaDec
Definition:
LzmaDec.h:47
IN_BUF_SIZE
#define IN_BUF_SIZE
Definition:
LzmaFile.h:21
LzmaFile::fNegative
bool fNegative
Definition:
LzmaFile.h:61
Alloc.h
LzmaFile::fExponent
int fExponent
Definition:
LzmaFile.h:67
SRes
int SRes
Definition:
Types.h:43
CFileSeqInStream
Definition:
7zFile.h:53
LzmaFile::inStream
CFileSeqInStream inStream
Definition:
LzmaFile.h:35
LzmaFile::fMantisseF
double fMantisseF
Definition:
LzmaFile.h:65
LzmaFile::inPos
size_t inPos
Definition:
LzmaFile.h:48
LzmaFile::res
int res
Definition:
LzmaFile.h:36
LzmaFile::outBuf
Byte outBuf[(1<< 16)]
Definition:
LzmaFile.h:44
LzmaFile::DecodeBuffer
SRes DecodeBuffer()
Definition:
LzmaFile.cc:145
LzmaFile
Definition:
LzmaFile.h:24
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
LzmaFile::fReadExponent
bool fReadExponent
Definition:
LzmaFile.h:59
Types.h
LzmaFile::inSize
size_t inSize
Definition:
LzmaFile.h:49
LzmaFile::FillArray
SRes FillArray(double *data, const int length)
Definition:
LzmaFile.cc:94
LzmaFile::fReadSign
bool fReadSign
Definition:
LzmaFile.h:55
LzmaFile::fStartNumber
bool fStartNumber
Definition:
LzmaFile.h:53
LzmaFile::fMantisseFcount
int fMantisseFcount
Definition:
LzmaFile.h:66
LzmaFile::unpackSize
UInt64 unpackSize
Definition:
LzmaFile.h:41
Generated for CMSSW Reference Manual by
1.8.16