Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:30

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 // TODO: update to C++17 style
0010 #include "Acts/TrackFinding/RoiDescriptor.hpp"
0011 
0012 #include <cmath>
0013 #include <sstream>
0014 
0015 namespace Acts {
0016 
0017 Acts::RoiDescriptor::RoiDescriptor(double eta, double etaMinus, double etaPlus,
0018                                    double phi, double phiMinus, double phiPlus,
0019                                    double zed, double zedMinus, double zedPlus)
0020     : m_phi(phi),
0021       m_eta(eta),
0022       m_zed(zed),
0023       m_phiMinus(phiMinus),
0024       m_phiPlus(phiPlus),
0025       m_etaMinus(etaMinus),  //-4.5
0026       m_etaPlus(etaPlus),
0027       m_zedMinus(zedMinus),
0028       m_zedPlus(zedPlus) {
0029   // catch in the athena roi code
0030   //  if ( std::isnan(m_etaPlus)  ) throw std::invalid_argument( "RoiDescriptor:
0031   //  etaPlus nan" ); if ( std::isnan(m_etaMinus) ) throw std::invalid_argument(
0032   //  "RoiDescriptor: etaMinus nan" );
0033 
0034   m_drdzMinus = std::tan(2 * std::atan(std::exp(-m_etaMinus)));  //-0.02
0035   m_drdzPlus = std::tan(2 * std::atan(std::exp(-m_etaPlus)));    // 0.02
0036 
0037   m_dzdrMinus = 1 / m_drdzMinus;  //-45
0038   m_dzdrPlus = 1 / m_drdzPlus;    // 45
0039 }
0040 
0041 Acts::RoiDescriptor::~RoiDescriptor() = default;
0042 
0043 }  // namespace Acts