ATLAS Offline Software
ForwardDetectors
FPTracker
FPTracker
FPTracker/FPTracker/STLHelpers.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef FPTRACKER_STLHELPERS_H
6
#define FPTRACKER_STLHELPERS_H
7
8
#include <cmath>
9
10
namespace
FPTracker
{
11
12
template
<
class
T>
13
class
SelectBySide
{
14
public
:
15
SelectBySide
(
int
side
):
m_side
(
side
){}
16
bool
operator()
(
const
T*
t
){
return
t
->side() ==
m_side
;}
17
private
:
18
int
m_side
;
19
};
20
21
template
<
class
PtrType>
22
bool
absZGreater
(
const
PtrType rhs,
const
PtrType lhs)
23
{
24
return
lhs->zabspos() > rhs->zabspos();
25
}
26
27
}
28
#endif
FPTracker::SelectBySide::operator()
bool operator()(const T *t)
Definition:
FPTracker/FPTracker/STLHelpers.h:16
FPTracker::SelectBySide::SelectBySide
SelectBySide(int side)
Definition:
FPTracker/FPTracker/STLHelpers.h:15
FPTracker::SelectBySide::m_side
int m_side
Definition:
FPTracker/FPTracker/STLHelpers.h:18
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
TRT::Hit::side
@ side
Definition:
HitInfo.h:83
FPTracker
Definition:
FPTracker/FPTracker/Beamline.h:12
FPTracker::SelectBySide
Definition:
FPTracker/FPTracker/STLHelpers.h:13
FPTracker::absZGreater
bool absZGreater(const PtrType rhs, const PtrType lhs)
Definition:
FPTracker/FPTracker/STLHelpers.h:22
Generated on Thu Nov 7 2024 21:26:37 for ATLAS Offline Software by
1.8.18