18 : fileMode_(asBinary ? (std::ios::binary | std::ios::
out) : std::ios::
out),
19 fileName_(outFileName),
20 outFile_(fileName_, fileMode_),
22 writeZero_(writeZero),
46 void Mille::mille(
int NLC,
const float *derLc,
int NGL,
const float *derGl,
const int *
label,
float rMeas,
float sigma) {
60 for (
int i = 0;
i < NLC; ++
i) {
74 for (
int i = 0;
i < NGL; ++
i) {
88 void Mille::special(
int nSpecial,
const float *floatings,
const int *integers) {
94 edm::LogError(
"Alignment") <<
"Mille::special: Special values already stored for this record.";
115 for (
int i = 0;
i < nSpecial; ++
i) {
152 const int numWordsToWrite = (
bufferPos_ + 1) * 2;
155 outFile_.write(reinterpret_cast<const char *>(&numWordsToWrite),
sizeof(numWordsToWrite));
159 outFile_ << numWordsToWrite <<
"\n";
165 for (
int i = 0;
i < bufferPos_ + 1; ++
i) {
192 <<
"\n need space for nLocal (" << nLocal <<
")"
193 <<
"/nGlobal (" << nGlobal <<
") local/global derivatives, " <<
bufferPos_ + 1
194 <<
" already stored!";
int bufferInt_[bufferSize_]
Mille(const char *outFileName, bool asBinary=true, bool writeZero=false)
Log< level::Error, false > LogError
float bufferFloat_[bufferSize_]
void mille(int NLC, const float *derLc, int NGL, const float *derGl, const int *label, float rMeas, float sigma)
bool checkBufferSize(int nLocal, int nGlobal)
const std::ios_base::openmode fileMode_
void special(int nSpecial, const float *floatings, const int *integers)
const std::string fileName_