Millepede-II  V04-00-00_preview
 All Classes Files Functions Variables Enumerator Pages
Mille.h
Go to the documentation of this file.
1 #ifndef MILLE_H
2 #define MILLE_H
3 
4 #include <fstream>
5 
27 
28 class Mille
29 {
30  public:
31  Mille(const char *outFileName, bool asBinary = true, bool writeZero = false);
32  ~Mille();
33 
34  void mille(int NLC, const float *derLc, int NGL, const float *derGl,
35  const int *label, float rMeas, float sigma);
36  void special(int nSpecial, const float *floatings, const int *integers);
37  void kill();
38  void end();
39 
40  private:
41  void newSet();
42  bool checkBufferSize(int nLocal, int nGlobal);
43 
44  std::ofstream myOutFile;
45  bool myAsBinary;
46  bool myWriteZero;
47 
48  enum {myBufferSize = 5000};
52  bool myHasSpecial;
53 
54  enum {myMaxLabel = (0xFFFFFFFF - (1 << 31))};
55 };
56 #endif