ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace FPTracker{
11
12 template<class T>
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
bool absZGreater(const PtrType rhs, const PtrType lhs)