BmnRoot
Loading...
Searching...
No Matches
BmnMille.h
Go to the documentation of this file.
1#ifndef BMNMILLE_H
2#define BMNMILLE_H 1
3
4#include <fstream>
5#include <iostream>
6#include <Rtypes.h>
7#include <math.h>
8
9using namespace std;
10
11class BmnMille {
12public:
13 BmnMille(const Char_t* outFileName, Bool_t asBinary = kTRUE, Bool_t writeZero = kFALSE);
15
16 void mille(Int_t NLC, const Double_t* derLc, Int_t NGL, const Double_t* derGl,
17 const Int_t* label, Double_t rMeas, Double_t sigma);
18 void special(Int_t nSpecial, const Double_t* floatings, const Int_t* integers);
19 void kill();
20 void end();
21
22private:
23 void newSet();
24 Bool_t checkBufferSize(Int_t nLocal, Int_t nGlobal);
25
26 std::ofstream myOutFile;
27 Bool_t myAsBinary;
28 Bool_t myWriteZero;
30
31 enum {
32 myBufferSize = 500000
33 };
34 Int_t myBufferInt[myBufferSize];
35 Float_t myBufferFloat[myBufferSize];
36 Int_t myBufferPos;
37 Bool_t myHasSpecial;
39
40 enum {
41 myMaxLabel = (0xFFFFFFFF - (1 << 31))
42 };
43};
44#endif
void end()
void mille(Int_t NLC, const Double_t *derLc, Int_t NGL, const Double_t *derGl, const Int_t *label, Double_t rMeas, Double_t sigma)
BmnMille(const Char_t *outFileName, Bool_t asBinary=kTRUE, Bool_t writeZero=kFALSE)
void kill()
void special(Int_t nSpecial, const Double_t *floatings, const Int_t *integers)
STL namespace.