ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
TScalerMonitorProcessor.h
Go to the documentation of this file.
1/**
2 * @file TScalerMonitorProcessor.h
3 * @brief
4 * @author Kodai Okawa <okawa@cns.s.u-tokyo.ac.jp>
5 * @date 2024-01-28 14:23:16
6 * @note last modified: 2025-01-08 10:28:23
7 * @details
8 */
9
10#ifndef _CRIB_TSCALERMONITORPROCESSOR_H_
11#define _CRIB_TSCALERMONITORPROCESSOR_H_
12
13#include "TProcessor.h"
14#include <TCanvas.h>
15#include <TGraph.h>
16#include <TScalerData.h>
17
18namespace art {
19class TScalerData;
20} // namespace art
21
22namespace art::crib {
23class TScalerMonitorProcessor;
24} // namespace art::crib
25
27
28 public:
30 ~TScalerMonitorProcessor() override;
31
32 void Init(TEventCollection *col) override;
33 void Process() override;
34
35 void ProcessShort(Long_t now);
36 void ProcessLong(Long_t now);
37
38 const static Int_t SCALER_CH = 32;
39
40 private:
41 TCanvas *main;
42 TPad *pad_s;
43 TPad *pad_l;
44
46 TScalerData **fInData; //!
47
48 Int_t fShortInterval; // seconds
49 Int_t fShortDuration; // seconds
50 Int_t fLongInterval; // seconds
51 Int_t fLongDuration; // seconds
52
53 IntVec_t fClock; // [ch, Hz]
54 StringVec_t fChannels; // channel info
55
56 Bool_t fIsFirst;
57
58 // for short data member
61 UInt_t fShortScatot[SCALER_CH] = {}; // scaler value
62 UInt_t fShortScadiff[SCALER_CH] = {}; // scaler difference
63 TGraph *fGr_s[SCALER_CH]; // live time chart for 32ch
64 Int_t fShortCount; // TGraph point number
65
66 // for long data member
67 Long_t fStartLong;
69 UInt_t fLongScatot[SCALER_CH] = {}; // scaler value
70 UInt_t fLongScadiff[SCALER_CH] = {}; // scaler difference
71 TGraph *fGr_l[SCALER_CH]; // live time chart for 32ch
72 Int_t fLongCount; // TGraph point number
73
74 IntVec_t fDisplayCh; // display channels
75 StringVec_t fNames; // channel names
76 Double_t fFactors[SCALER_CH] = {}; // channel factors
77
78 IntVec_t fColor_list = {
79 kRed,
80 kBlue,
81 kGreen,
82 kMagenta,
83 kViolet,
84 kPink,
85 kBlack,
86 kCyan,
87 kOrange,
88 kSpring,
89 kTeal,
90 kAzure,
91 30,
92 31,
93 32,
94 33,
95 34,
96 35,
97 36,
98 37,
99 38,
100 39,
101 40,
102 41,
103 42,
104 43,
105 44,
106 45,
107 46,
108 47,
109 48,
110 49};
111
112 protected:
114};
115#endif // end of #ifdef _TSCALERMONITORPROCESSOR_H_
void Init(TEventCollection *col) override
ClassDefOverride(TScalerMonitorProcessor, 1)
return to the guide