File indexing completed on 2026-05-15 07:41:25
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef HISTOGRAMSNEUTRONTHRESHOLDS_H_
0009 #define HISTOGRAMSNEUTRONTHRESHOLDS_H_
0010
0011 #include <TH1.h>
0012 #include <TH1D.h>
0013
0014 #include <TH2.h>
0015 #include <TH2D.h>
0016
0017 #include <TMath.h>
0018
0019 using namespace TMath;
0020
0021 void CreateHistogamsNeutronThresholds();
0022
0023
0024
0025 TH1D *h_nHCal_hit_contrib_energy;
0026 TH1D *h_nHCal_hit_contrib_time;
0027
0028 TH2D *h_nHCal_hit_contrib_energy_vs_time;
0029 TH2D *h_nHCal_hit_contrib_energy_vs_telap;
0030 TH2D *h_nHCal_hit_contrib_energy_vs_time_total;
0031
0032
0033 void CreateHistogamsNeutronThresholds()
0034 {
0035
0036
0037 h_nHCal_hit_contrib_time = new TH1D("h_nHCal_hit_contrib_time", "Backwards HCal Hit Contribution Time; t [ns]; counts", 50, 0, 1000);
0038 h_nHCal_hit_contrib_energy = new TH1D("h_nHCal_hit_contrib_energy", "Backwards HCal Hit Contribution Energy; Energy [GeV]; counts", 50, 0, 0.00000002);
0039 h_nHCal_hit_contrib_energy_vs_time = new TH2D("h_nHCal_hit_contrib_energy_vs_time", "Backwards HCal Hit Contribution Energy vs. time; Energy [GeV]; time [ns]; counts", 50, 0, 0.00000002, 50, 0, 1000);
0040 h_nHCal_hit_contrib_energy_vs_telap = new TH2D("h_nHCal_hit_contrib_energy_vs_telap", "Backwards HCal Hit Contribution Energy vs. Time; Energy threshold [GeV]; t max; counts", 50, 0, 0.0005, 50, 0, 1100);
0041 h_nHCal_hit_contrib_energy_vs_time_total = new TH2D("h_nHCal_hit_contrib_energy_vs_time_total", "Backwards HCal Hit Contribution Energy vs. Time; Energy threshold [GeV]; t max; counts", 50, 0, 0.0005, 50, 0, 1100);
0042
0043 }
0044
0045 void DeleteHistogamsNeutronThresholds()
0046 {
0047
0048 delete h_nHCal_hit_contrib_energy;
0049 delete h_nHCal_hit_contrib_time;
0050
0051 delete h_nHCal_hit_contrib_energy_vs_time;
0052 delete h_nHCal_hit_contrib_energy_vs_telap;
0053 delete h_nHCal_hit_contrib_energy_vs_time_total;
0054
0055 }
0056
0057
0058 #endif