-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRasterMonConfigInfo.h
59 lines (48 loc) · 1.59 KB
/
RasterMonConfigInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// Created by Maurik Holtrop on 6/14/22.
//
#ifndef RASTERMON_RASTERMONCONFIGINFO_H
#define RASTERMON_RASTERMONCONFIGINFO_H
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include "TObject.h"
#include "TBufferJSON.h"
#include "RasterHists.h"
#include "RasterEvioTool.h"
// Initial values are from the start of the run.
class RasterMonConfigInfo : public TObject {
public:
int fDebugLevel = 0;
int fEvioDebugLevel = 0;
unsigned int fUpdateRate = 1000;
bool fAutoClearOn = false;
double fAutoClearRate = 30.;
unsigned int fScopeBufDepth = 10000;
double fScale_x = 0.0205;
double fOffset_x = -43.8;
double fScale_y = -0.0369;
double fOffset_y = 79.6;
std::string fJSONFile{"RasterMonConfig.json"}; //! Default name for the config file. Not stored.
RasterHists *fHists=nullptr; //! Pointer to RasterHists. Not stored.
RasterEvioTool *fEvio=nullptr; //! Pointer to RasterEvioTool. Not stored.
public:
RasterMonConfigInfo(){};
RasterMonConfigInfo(RasterHists *hists, RasterEvioTool *evio): fHists(hists), fEvio(evio){};
void SaveToJSON();
void LoadFromJSON();
void CopyInfo(RasterMonConfigInfo *that);
void GetValues();
void PutValues();
void GetScaleOffset();
void SetScaleOffset();
void UpdateADCBufDepth();
void UpdateHistClearRate();
void SetDebug(int i);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winconsistent-missing-override"
ClassDef(RasterMonConfigInfo, 1)
#pragma clang diagnostic pop
};
#endif //RASTERMON_RASTERMONCONFIGINFO_H