Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-23 09:08:18

0001 // SPDX-License-Identifier: LGPL-3.0-or-later
0002 // Copyright (C) 2026 Sebouh Paul, Baptiste Fraisse
0003 #pragma once
0004 #include <float.h>
0005 #include <DD4hep/Detector.h>
0006 
0007 namespace eicrecon {
0008 
0009 struct FarForwardNeutralsReconstructionConfig {
0010   /** detector constant describing distance to the ZDC */
0011   std::string offsetPositionName = "HcalFarForwardZDC_SiPMonTile_r_pos";
0012   /** Correction factors for neutrons in the Hcal (ZDC) */
0013   std::vector<double> neutronScaleCorrCoeffHcalZDC = {2.4, 0.89};
0014   /** Correction factors for gammas in the Hcal (ZDC) */
0015   std::vector<double> gammaScaleCorrCoeffHcalZDC = {1.1, 0.98};
0016   /** Correction factors for neutrons in the LFHCAL */
0017   std::vector<double> neutronScaleCorrCoeffLFHCAL = {2.55, 0.95};
0018   /** Correction factors for gammas in the LFHCAL */
0019   std::vector<double> gammaScaleCorrCoeffLFHCAL = {0., 0.};
0020   /** Correction factors for neutrons in the B0-Ecal */
0021   std::vector<double> neutronScaleCorrCoeffB0Ecal = {0., 0.};
0022   /** Correction factors for gammas in the B0-Ecal */
0023   std::vector<double> gammaScaleCorrCoeffB0Ecal = {0.99, 1.14};
0024   /** Correction factors for neutrons in the Endcap-Ecal */
0025   std::vector<double> neutronScaleCorrCoeffEcalEndcapP = {0., 0.};
0026   /** Correction factors for gammas in the Endcap-Ecal */
0027   std::vector<double> gammaScaleCorrCoeffEcalEndcapP = {1.05, 1.01};
0028   /** Cluster thresholds */
0029   double clusterEminHcalZDC     = 0.0; // GeV
0030   double clusterEminB0Ecal      = 1.0; // GeV
0031   double clusterEminEcalEndcapP = 1.0; // GeV
0032   double clusterEminLFHCAL      = 7.0; // GeV
0033   /** rotation from global to local coordinates */
0034   double globalToProtonRotation = -0.025;
0035   /** Neutron-photon separation in HcalFarForwardZDC */
0036   double gammaZMaxOffset = 400;
0037   double gammaMaxLength  = 100;
0038   double gammaMaxWidth   = 12;
0039 };
0040 
0041 } // namespace eicrecon