File indexing completed on 2024-04-06 12:22:06
0001 #ifndef L1Trigger_TrackFindingTracklet_interface_HistImp_h
0002 #define L1Trigger_TrackFindingTracklet_interface_HistImp_h
0003
0004 #include <TFile.h>
0005 #include <TH1F.h>
0006 #include <TEfficiency.h>
0007
0008 #include "L1Trigger/TrackFindingTracklet/interface/HistBase.h"
0009
0010 namespace trklet {
0011
0012 class Settings;
0013 class Globals;
0014
0015 class HistImp : public HistBase {
0016 public:
0017 HistImp();
0018
0019 ~HistImp() override = default;
0020
0021 void open() override;
0022 void close() override;
0023
0024 void bookLayerResidual() override;
0025 void bookDiskResidual() override;
0026 void bookTrackletParams() override;
0027 void bookSeedEff() override;
0028
0029 void fillTrackletParams(const Settings *settings,
0030 Globals *globals,
0031 int seedIndex,
0032 int iSector,
0033 double rinv,
0034 double irinv,
0035 double phi0,
0036 double iphi0,
0037 double eta,
0038 double ieta,
0039 double z0,
0040 double iz0,
0041 int tp) override;
0042
0043 void FillLayerResidual(
0044 int layer, int seed, double phiresid, double iphiresid, double zresid, double izresid, bool match) override;
0045
0046 void FillDiskResidual(
0047 int disk, int seed, double phiresid, double iphiresid, double rresid, double irresid, bool match) override;
0048
0049
0050 void fillSeedEff(int seedIndex, double etaTP, bool eff) override;
0051
0052 private:
0053 TFile *h_file_;
0054
0055
0056 TH1F *h_layerresid_phi_L3_L1L2_;
0057 TH1F *h_layerresid_phi_L3_L1L2_match_;
0058 TH1F *h_layerresid_phif_L3_L1L2_;
0059 TH1F *h_layerresid_phif_L3_L1L2_match_;
0060 TH1F *h_layerresid_z_L3_L1L2_;
0061 TH1F *h_layerresid_z_L3_L1L2_match_;
0062 TH1F *h_layerresid_zf_L3_L1L2_;
0063 TH1F *h_layerresid_zf_L3_L1L2_match_;
0064
0065
0066 TH1F *h_diskresid_phi_D1_L1L2_;
0067 TH1F *h_diskresid_phi_D1_L1L2_match_;
0068 TH1F *h_diskresid_phif_D1_L1L2_;
0069 TH1F *h_diskresid_phif_D1_L1L2_match_;
0070 TH1F *h_diskresid_r_D1_L1L2_;
0071 TH1F *h_diskresid_r_D1_L1L2_match_;
0072 TH1F *h_diskresid_rf_D1_L1L2_;
0073 TH1F *h_diskresid_rf_D1_L1L2_match_;
0074
0075
0076 TH1F *h_rinv_L1L2_;
0077 TH1F *h_irinv_L1L2_;
0078 TH1F *h_rinv_matched_L1L2_;
0079 TH1F *h_irinv_matched_L1L2_;
0080 TH1F *h_rinvres_L1L2_;
0081 TH1F *h_irinvres_L1L2_;
0082 TH1F *h_phi0_L1L2_;
0083 TH1F *h_iphi0_L1L2_;
0084 TH1F *h_phi0_matched_L1L2_;
0085 TH1F *h_iphi0_matched_L1L2_;
0086 TH1F *h_phi0global_L1L2_;
0087 TH1F *h_iphi0global_L1L2_;
0088 TH1F *h_phi0global_matched_L1L2_;
0089 TH1F *h_iphi0global_matched_L1L2_;
0090 TH1F *h_phi0res_L1L2_;
0091 TH1F *h_iphi0res_L1L2_;
0092 TH1F *h_eta_L1L2_;
0093 TH1F *h_ieta_L1L2_;
0094 TH1F *h_eta_matched_L1L2_;
0095 TH1F *h_ieta_matched_L1L2_;
0096 TH1F *h_etares_L1L2_;
0097 TH1F *h_ietares_L1L2_;
0098 TH1F *h_z0_L1L2_;
0099 TH1F *h_iz0_L1L2_;
0100 TH1F *h_z0_matched_L1L2_;
0101 TH1F *h_iz0_matched_L1L2_;
0102 TH1F *h_z0res_L1L2_;
0103 TH1F *h_iz0res_L1L2_;
0104
0105
0106 TEfficiency *h_eff_eta_L1L2seed_;
0107 TEfficiency *h_eff_eta_L2L3seed_;
0108 TEfficiency *h_eff_eta_L3L4seed_;
0109 TEfficiency *h_eff_eta_L5L6seed_;
0110 TEfficiency *h_eff_eta_D1D2seed_;
0111 TEfficiency *h_eff_eta_D3D4seed_;
0112 TEfficiency *h_eff_eta_D1L1seed_;
0113 TEfficiency *h_eff_eta_D1L2seed_;
0114 };
0115
0116 };
0117 #endif