Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrigBase.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TrigBase.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 // TODO: update to C++17 style
13 
14 #include <cmath>
15 
16 #define MAX_SILICON_LAYER_NUM 19
17 #define OffsetEndcapPixels 7
18 #define OffsetBarrelSCT 3
19 #define OffsetEndcapSCT 10
20 
21 template <typename space_point_t>
23  public:
24  TrigInDetTriplet() = delete; // to prevent creation w/o initialization
25 
29  : m_s1(std::move(s1)), m_s2(std::move(s2)), m_s3(std::move(s3)), m_Q(Q) {}
30 
32  : m_s1(t->m_s1), m_s2(t->m_s2), m_s3(t->m_s3), m_Q(t->m_Q) {}
33 
34  const Acts::FTF_SP<space_point_t>& s1() const { return m_s1; }
35  const Acts::FTF_SP<space_point_t>& s2() const { return m_s2; }
36  const Acts::FTF_SP<space_point_t>& s3() const { return m_s3; }
37  float Q() const { return m_Q; }
38  void Q(double newQ) { m_Q = newQ; }
39 
40  protected:
44  float m_Q; // Quality
45 };