Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/Acts/Seeding/GbtsBase.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // This file is part of the Acts project.
0002 //
0003 // Copyright (C) 2021 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 http://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 template <typename space_point_t>
0022 class TrigInDetTriplet {
0023  public:
0024   TrigInDetTriplet() = delete;  // to prevent creation w/o initialization
0025 
0026   TrigInDetTriplet(Acts::GbtsSP<space_point_t> s1,
0027                    Acts::GbtsSP<space_point_t> s2,
0028                    Acts::GbtsSP<space_point_t> s3, float Q)
0029       : m_s1(std::move(s1)), m_s2(std::move(s2)), m_s3(std::move(s3)), m_Q(Q) {}
0030 
0031   TrigInDetTriplet(TrigInDetTriplet* t)
0032       : m_s1(t->m_s1), m_s2(t->m_s2), m_s3(t->m_s3), m_Q(t->m_Q) {}
0033 
0034   const Acts::GbtsSP<space_point_t>& s1() const { return m_s1; }
0035   const Acts::GbtsSP<space_point_t>& s2() const { return m_s2; }
0036   const Acts::GbtsSP<space_point_t>& s3() const { return m_s3; }
0037   float Q() const { return m_Q; }
0038   void Q(double newQ) { m_Q = newQ; }
0039 
0040  protected:
0041   Acts::GbtsSP<space_point_t> m_s1;
0042   Acts::GbtsSP<space_point_t> m_s2;
0043   Acts::GbtsSP<space_point_t> m_s3;
0044   float m_Q;  // Quality
0045 };