Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-13 08:28:06

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 #pragma once
0010 
0011 // TODO: update to C++17 style
0012 #include "Acts/Seeding/GbtsTrackingFilter.hpp"
0013 
0014 #include <cmath>
0015 
0016 #define MAX_SILICON_LAYER_NUM 19
0017 #define OffsetEndcapPixels 7
0018 #define OffsetBarrelSCT 3
0019 #define OffsetEndcapSCT 10
0020 
0021 namespace Acts::Experimental {
0022 
0023 template <typename space_point_t>
0024 class TrigInDetTriplet {
0025  public:
0026   TrigInDetTriplet() = delete;  // to prevent creation w/o initialization
0027 
0028   TrigInDetTriplet(GbtsSP<space_point_t> s1, GbtsSP<space_point_t> s2,
0029                    GbtsSP<space_point_t> s3, float Q)
0030       : m_s1(std::move(s1)), m_s2(std::move(s2)), m_s3(std::move(s3)), m_Q(Q) {}
0031 
0032   TrigInDetTriplet(TrigInDetTriplet* t)
0033       : m_s1(t->m_s1), m_s2(t->m_s2), m_s3(t->m_s3), m_Q(t->m_Q) {}
0034 
0035   const GbtsSP<space_point_t>& s1() const { return m_s1; }
0036   const GbtsSP<space_point_t>& s2() const { return m_s2; }
0037   const GbtsSP<space_point_t>& s3() const { return m_s3; }
0038   float Q() const { return m_Q; }
0039   void Q(double newQ) { m_Q = newQ; }
0040 
0041  protected:
0042   GbtsSP<space_point_t> m_s1;
0043   GbtsSP<space_point_t> m_s2;
0044   GbtsSP<space_point_t> m_s3;
0045   float m_Q;  // Quality
0046 };
0047 
0048 }  // namespace Acts::Experimental