#include <Mille.h>
Public Member Functions | |
void | end () |
void | flushOutputFile () |
void | kill () |
Mille (const char *outFileName, bool asBinary=true, bool writeZero=false) | |
void | mille (int NLC, const float *derLc, int NGL, const float *derGl, const int *label, float rMeas, float sigma) |
void | resetOutputFile () |
void | special (int nSpecial, const float *floatings, const int *integers) |
~Mille () | |
Private Types | |
enum | { maxLabel_ = (0xFFFFFFFF - (1 << 31)) } |
enum | { bufferSize_ = 5000 } |
Private Member Functions | |
bool | checkBufferSize (int nLocal, int nGlobal) |
void | newSet () |
Private Attributes | |
bool | asBinary_ |
float | bufferFloat_ [bufferSize_] |
int | bufferInt_ [bufferSize_] |
int | bufferPos_ |
const std::ios_base::openmode | fileMode_ |
const std::string | fileName_ |
bool | hasSpecial_ |
std::ofstream | outFile_ |
bool | writeZero_ |
Class to write a C binary (cf. below) file of a given name and to fill it with information used as input to pede. Use its member functions mille(...), special(...), kill() and end() as you would use the fortran MILLE and its entry points MILLSP, KILLE and ENDLE.
For debugging purposes constructor flags enable switching to text output and/or to write also derivatives and lables which are ==0. But note that pede will not be able to read text output and has not been tested with derivatives/labels ==0.
(last update by
)
|
private |
|
private |
Mille::Mille | ( | const char * | outFileName, |
bool | asBinary = true , |
||
bool | writeZero = false |
||
) |
Definition at line 17 of file Mille.cc.
References bufferFloat_, bufferInt_, fileName_, and outFile_.
|
private |
Definition at line 186 of file Mille.cc.
References bufferInt_, bufferPos_, and bufferSize_.
Referenced by mille(), and special().
void Mille::end | ( | ) |
Definition at line 149 of file Mille.cc.
References asBinary_, bufferFloat_, bufferInt_, bufferPos_, mps_fire::i, and outFile_.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void Mille::kill | ( | ) |
void Mille::mille | ( | int | NLC, |
const float * | derLc, | ||
int | NGL, | ||
const float * | derGl, | ||
const int * | label, | ||
float | rMeas, | ||
float | sigma | ||
) |
Definition at line 46 of file Mille.cc.
References bufferFloat_, bufferInt_, bufferPos_, checkBufferSize(), mps_fire::i, label, maxLabel_, newSet(), and writeZero_.
|
private |
Definition at line 176 of file Mille.cc.
References bufferFloat_, bufferInt_, bufferPos_, and hasSpecial_.
Referenced by mille(), and special().
void Mille::resetOutputFile | ( | ) |
void Mille::special | ( | int | nSpecial, |
const float * | floatings, | ||
const int * | integers | ||
) |
Definition at line 88 of file Mille.cc.
References bufferFloat_, bufferInt_, bufferPos_, checkBufferSize(), hasSpecial_, mps_fire::i, and newSet().
|
private |
|
private |
|
private |
|
private |
Definition at line 42 of file Mille.h.
Referenced by resetOutputFile().
|
private |
Definition at line 43 of file Mille.h.
Referenced by Mille(), and resetOutputFile().
|
private |
|
private |
Definition at line 44 of file Mille.h.
Referenced by end(), flushOutputFile(), Mille(), resetOutputFile(), and ~Mille().