#include <Mille.h>
Public Member Functions | |
void | end () |
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 | special (int nSpecial, const float *floatings, const int *integers) |
~Mille () | |
Private Types | |
enum | { myBufferSize = 5000 } |
enum | { myMaxLabel = (0xFFFFFFFF - (1 << 31)) } |
Private Member Functions | |
bool | checkBufferSize (int nLocal, int nGlobal) |
void | newSet () |
Private Attributes | |
bool | myAsBinary |
float | myBufferFloat [myBufferSize] |
int | myBufferInt [myBufferSize] |
int | myBufferPos |
bool | myHasSpecial |
std::ofstream | myOutFile |
bool | myWriteZero |
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 16 of file Mille.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, myBufferFloat, myBufferInt, and myOutFile.
|
private |
Definition at line 171 of file Mille.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, myBufferInt, myBufferPos, and myBufferSize.
Referenced by mille(), and special().
void Mille::end | ( | ) |
Definition at line 129 of file Mille.cc.
References i, myAsBinary, myBufferFloat, myBufferInt, myBufferPos, and myOutFile.
Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), MillePedeAlignmentAlgorithm::addPxbSurvey(), MillePedeAlignmentAlgorithm::addReferenceTrajectory(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void Mille::kill | ( | ) |
Definition at line 121 of file Mille.cc.
References myBufferPos.
Referenced by MillePedeAlignmentAlgorithm::addReferenceTrajectory().
void Mille::mille | ( | int | NLC, |
const float * | derLc, | ||
int | NGL, | ||
const float * | derGl, | ||
const int * | label, | ||
float | rMeas, | ||
float | sigma | ||
) |
Definition at line 43 of file Mille.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, checkBufferSize(), i, myBufferFloat, myBufferInt, myBufferPos, myMaxLabel, myWriteZero, and newSet().
Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), and MillePedeAlignmentAlgorithm::addPxbSurvey().
|
private |
Definition at line 160 of file Mille.cc.
References myBufferFloat, myBufferInt, myBufferPos, and myHasSpecial.
Referenced by mille(), and special().
void Mille::special | ( | int | nSpecial, |
const float * | floatings, | ||
const int * | integers | ||
) |
Definition at line 86 of file Mille.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, checkBufferSize(), i, myBufferFloat, myBufferInt, myBufferPos, myHasSpecial, and newSet().
|
private |
|
private |
|
private |
|
private |
|
private |