Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LL1Mon.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file LL1Mon.h
1 #ifndef LL1_LL1MON_H
2 #define LL1_LL1MON_H
3 
4 #include <onlmon/OnlMon.h>
5 
6 class Event;
7 class TH1;
8 class TH2;
9 
10 class LL1Mon : public OnlMon
11 {
12  public:
13  LL1Mon(const std::string &name = "LL1MON");
14  virtual ~LL1Mon();
15 
16  int process_event(Event *evt);
17  int Init();
18  int BeginRun(const int runno);
19  int Reset();
20 
21  protected:
22  int evtcnt = 0;
23  int idummy = 0;
24  int thresh=2;
25  TH2* h_line_up=nullptr;
26  TH2* h_nhit_corr=nullptr;
27  TH1 *h_hit_n= nullptr;
28  TH1 *h_hit_s= nullptr;
29  TH1* h_nhit_n=nullptr;
30  TH1* h_nhit_s=nullptr;
31  TH1* h_nhit_n1=nullptr;
32  TH1* h_nhit_n2=nullptr;
33  TH1* h_nhit_s1=nullptr;
34  TH1* h_nhit_s2=nullptr;
35  TH2* h_nhit_n_corr=nullptr;
36  TH2* h_nhit_s_corr=nullptr;
37  TH1* h_time_diff=nullptr;
38  TH2* h_hit_check=nullptr;
39 
40  float binstart = -0.5;
41  float binend = 64.5;
42  float binend2 = 32.5;
43  const int nSamples = 20;
44  const int nChannels =52;
45  const int nChargeChannels = 8;
46  const int nHitSampleIdx = 9;
47 
48  const int nhitbins = 65;
49 };
50 
51 #endif /* LL1_LL1MON_H */