ATLAS Offline Software
FPGATrackSimConstants.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGFPGATrackSimOBJECTS_CONSTANTS_H
6 #define TRIGFPGATrackSimOBJECTS_CONSTANTS_H
7 
8 
9 #include <array>
10 #define MTX_TOLERANCE 3e-16
11 
12 namespace fpgatracksim {
13 
14  // Default set of q/pt bins, maybe still referenced by some legacy code?
15  constexpr std::array< double, 5 > QOVERPT_BINS = { -0.001, -0.0005, 0, 0.0005, 0.001};
16 
17  // --- This is the current FPGATrackSimCluster to FPGATrackSimHit scaling factor --- //
18  constexpr float scaleHitFactor = 2;
19  constexpr float DEG_TO_RAD = 0.017453292519943295;
20 
21 
22  constexpr int SPACEPOINT_SECTOR_OFFSET = 1;
23  constexpr int QPT_SECTOR_OFFSET = 10;
24  constexpr int SUBREGION_SECTOR_OFFSET = 1000;
25  constexpr int ETA_SECTOR_OFFSET = 100000;
26 
27 
28  static constexpr double A = 0.0003; // for Hough Transform
29 
30 }
31 
32 #endif // TRIGFPGATrackSimOBJECTS_CONSTANTS_H
fpgatracksim::SUBREGION_SECTOR_OFFSET
constexpr int SUBREGION_SECTOR_OFFSET
Definition: FPGATrackSimConstants.h:24
fpgatracksim::ETA_SECTOR_OFFSET
constexpr int ETA_SECTOR_OFFSET
Definition: FPGATrackSimConstants.h:25
fpgatracksim
Definition: FPGATrackSimConstants.h:12
fpgatracksim::QOVERPT_BINS
constexpr std::array< double, 5 > QOVERPT_BINS
Definition: FPGATrackSimConstants.h:15
fpgatracksim::SPACEPOINT_SECTOR_OFFSET
constexpr int SPACEPOINT_SECTOR_OFFSET
Definition: FPGATrackSimConstants.h:22
fpgatracksim::DEG_TO_RAD
constexpr float DEG_TO_RAD
Definition: FPGATrackSimConstants.h:19
fpgatracksim::QPT_SECTOR_OFFSET
constexpr int QPT_SECTOR_OFFSET
Definition: FPGATrackSimConstants.h:23
fpgatracksim::scaleHitFactor
constexpr float scaleHitFactor
Definition: FPGATrackSimConstants.h:18