ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimConfTools
FPGATrackSimConfTools
FPGATrackSimRegionSlices.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
14
#ifndef FPGATrackSimCONFTOOLS_TTREGIONSLICES_H
15
#define FPGATrackSimCONFTOOLS_TTREGIONSLICES_H
16
17
#include "
FPGATrackSimObjects/FPGATrackSimTrackPars.h
"
18
#include "
FPGATrackSimObjects/FPGATrackSimTruthTrack.h
"
19
20
#include <vector>
21
#include <utility>
22
23
24
class
FPGATrackSimRegionSlices
25
{
26
public
:
27
FPGATrackSimRegionSlices
(std::string
const
& filepath);
28
29
unsigned
nRegions
()
const
{
return
m_regions
.size(); }
30
31
std::pair<FPGATrackSimTrackPars, FPGATrackSimTrackPars>
const
&
getRegion
(
unsigned
region)
const
{
return
m_regions
.at(region); }
32
FPGATrackSimTrackPars
const
&
getMin
(
unsigned
region)
const
{
return
m_regions
.at(region).first; }
33
FPGATrackSimTrackPars
const
&
getMax
(
unsigned
region)
const
{
return
m_regions
.at(region).second; }
34
35
bool
inRegion
(
unsigned
region,
FPGATrackSimTruthTrack
const
&
t
)
const
;
36
37
private
:
38
39
std::vector<std::pair<FPGATrackSimTrackPars, FPGATrackSimTrackPars>>
m_regions
;
// index by region, min/max
40
41
};
42
43
#endif // FPGATrackSimCONFTOOLS_TTREGIONSLICES_H
FPGATrackSimRegionSlices
Definition:
FPGATrackSimRegionSlices.h:25
FPGATrackSimTrackPars
Definition:
FPGATrackSimTrackPars.h:22
FPGATrackSimRegionSlices::inRegion
bool inRegion(unsigned region, FPGATrackSimTruthTrack const &t) const
Definition:
FPGATrackSimRegionSlices.cxx:85
FPGATrackSimTruthTrack
Definition:
FPGATrackSimTruthTrack.h:14
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
FPGATrackSimRegionSlices::getRegion
std::pair< FPGATrackSimTrackPars, FPGATrackSimTrackPars > const & getRegion(unsigned region) const
Definition:
FPGATrackSimRegionSlices.h:31
FPGATrackSimRegionSlices::nRegions
unsigned nRegions() const
Definition:
FPGATrackSimRegionSlices.h:29
FPGATrackSimRegionSlices::FPGATrackSimRegionSlices
FPGATrackSimRegionSlices(std::string const &filepath)
Definition:
FPGATrackSimRegionSlices.cxx:27
FPGATrackSimRegionSlices::getMax
FPGATrackSimTrackPars const & getMax(unsigned region) const
Definition:
FPGATrackSimRegionSlices.h:33
FPGATrackSimRegionSlices::getMin
FPGATrackSimTrackPars const & getMin(unsigned region) const
Definition:
FPGATrackSimRegionSlices.h:32
FPGATrackSimTruthTrack.h
FPGATrackSimRegionSlices::m_regions
std::vector< std::pair< FPGATrackSimTrackPars, FPGATrackSimTrackPars > > m_regions
Definition:
FPGATrackSimRegionSlices.h:39
FPGATrackSimTrackPars.h
Structs that store the 5 track parameters.
Generated on Thu Nov 7 2024 21:15:29 for ATLAS Offline Software by
1.8.18