File indexing completed on 2025-08-05 08:20:26
0001 #ifndef LL1_LL1MON_H
0002 #define LL1_LL1MON_H
0003
0004 #include <onlmon/OnlMon.h>
0005
0006 class Event;
0007 class TH1;
0008 class TH2;
0009
0010 class LL1Mon : public OnlMon
0011 {
0012 public:
0013 LL1Mon(const std::string &name = "LL1MON");
0014 virtual ~LL1Mon();
0015
0016 int process_event(Event *evt);
0017 int Init();
0018 int BeginRun(const int runno);
0019 int Reset();
0020
0021 protected:
0022 int evtcnt = 0;
0023 int idummy = 0;
0024 int thresh=2;
0025 TH1* h_hit_format=nullptr;
0026 TH2* h_line_up=nullptr;
0027 TH2* h_nhit_corr=nullptr;
0028 TH1 *h_hit_n= nullptr;
0029 TH1 *h_hit_s= nullptr;
0030 TH1* h_nhit_n=nullptr;
0031 TH1* h_nhit_s=nullptr;
0032 TH1* h_nhit_n1=nullptr;
0033 TH1* h_nhit_n2=nullptr;
0034 TH1* h_nhit_s1=nullptr;
0035 TH1* h_nhit_s2=nullptr;
0036 TH2* h_nhit_n_corr=nullptr;
0037 TH2* h_nhit_s_corr=nullptr;
0038 TH1* h_time_diff=nullptr;
0039 TH2* h_hit_check=nullptr;
0040
0041
0042
0043 TH1* h_2x2_sum_per_emcal_board[16] = {nullptr};
0044 TH2* h_8x8_sum_emcal = nullptr;
0045 TH2* h_8x8_sum_emcal_above_threshold[4] = {nullptr};
0046 TH2* h_sample_diff_emcal = nullptr;
0047
0048
0049
0050 TH2* h_jet_output = nullptr;
0051 TH2* h_jet_output_above_threshold[4] = {nullptr};
0052 TH2* h_jet_input = nullptr;
0053 TH2* h_sample_diff_jet_input= nullptr;
0054
0055 int nbins_emcal_eta_8x8 = 12;
0056 int nbins_emcal_phi_8x8 = 32;
0057 int nbins_jet_input_eta = 12;
0058 int nbins_jet_input_phi = 32;
0059 int nbins_jet_output_eta = 9;
0060 int nbins_jet_output_phi = 32;
0061
0062
0063 float binstart = -0.5;
0064 float binend = 64.5;
0065 float binend2 = 32.5;
0066 const int nSamples = 20;
0067 const int nChannels =52;
0068 const int nChargeChannels = 8;
0069 const int nHitSampleIdx = 9;
0070
0071 const int nhitbins = 65;
0072 };
0073
0074 #endif