CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
Mille Class Reference

#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  { bufferSize_ = 5000 }
 
enum  { maxLabel_ = (0xFFFFFFFF - (1 << 31)) }
 

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_
 

Detailed Description

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.

Author
: Gero Flucke date : October 2006
Revision:
1.2
Date:
2007/03/16 16:44:47

(last update by

Author:
flucke

)

Definition at line 26 of file Mille.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
bufferSize_ 

Definition at line 50 of file Mille.h.

50 {bufferSize_ = 5000};
anonymous enum
private
Enumerator
maxLabel_ 

Definition at line 56 of file Mille.h.

56 {maxLabel_ = (0xFFFFFFFF - (1 << 31))}; // largest label allowed: 2^31 - 1

Constructor & Destructor Documentation

Mille::Mille ( const char *  outFileName,
bool  asBinary = true,
bool  writeZero = false 
)

Definition at line 17 of file Mille.cc.

Mille::~Mille ( )

Definition at line 38 of file Mille.cc.

Member Function Documentation

bool Mille::checkBufferSize ( int  nLocal,
int  nGlobal 
)
private

Definition at line 196 of file Mille.cc.

void Mille::end ( )

Definition at line 154 of file Mille.cc.

void Mille::flushOutputFile ( )

Definition at line 134 of file Mille.cc.

void Mille::kill ( )

Definition at line 125 of file Mille.cc.

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.

void Mille::newSet ( )
private

Definition at line 185 of file Mille.cc.

void Mille::resetOutputFile ( )

Definition at line 142 of file Mille.cc.

void Mille::special ( int  nSpecial,
const float *  floatings,
const int *  integers 
)

Definition at line 90 of file Mille.cc.

Member Data Documentation

bool Mille::asBinary_
private

Definition at line 47 of file Mille.h.

float Mille::bufferFloat_[bufferSize_]
private

Definition at line 52 of file Mille.h.

int Mille::bufferInt_[bufferSize_]
private

Definition at line 51 of file Mille.h.

int Mille::bufferPos_
private

Definition at line 53 of file Mille.h.

const std::ios_base::openmode Mille::fileMode_
private

Definition at line 44 of file Mille.h.

const std::string Mille::fileName_
private

Definition at line 45 of file Mille.h.

bool Mille::hasSpecial_
private

Definition at line 54 of file Mille.h.

std::ofstream Mille::outFile_
private

Definition at line 46 of file Mille.h.

bool Mille::writeZero_
private

Definition at line 48 of file Mille.h.