ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysisUtils
TrigInDetAnalysisUtils
Filter_etaPT.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
14
#ifndef TRIGINDETANALYSISUTILS_FILTER_ETAPT_H
15
#define TRIGINDETANALYSISUTILS_FILTER_ETAPT_H
16
17
#include <iostream>
18
#include <cmath>
19
20
#include "
TrigInDetAnalysis/TrackFilter.h
"
21
#include "
TrigInDetAnalysis/Track.h
"
22
23
24
25
// generic selection cut selection function
26
27
class
Filter_etaPT
:
public
TrackFilter
{
28
29
public
:
30
31
Filter_etaPT
(
double
etaMax
,
double
pTMin ) :
32
m_etaMax
(
etaMax
),
m_pTMin
(pTMin) {
33
// std::cout << "Filter_etaPT::Filter_etaPT() : etaMax " << m_etaMax << "\tpTMin " << m_pTMin << std::endl;
34
}
35
36
bool
select
(
const
TIDA::Track
*
t
,
const
TIDARoiDescriptor
* =0 ) {
37
// Select track parameters
38
bool
selected =
true
;
39
if
( std::fabs(
t
->eta())>
m_etaMax
|| std::fabs(
t
->pT())<
m_pTMin
) selected =
false
;
40
return
selected;
41
}
42
43
private
:
44
45
// selection cuts
46
47
double
m_etaMax
;
48
//double m_d0Max;
49
//double m_z0Max;
50
double
m_pTMin
;
51
52
};
53
54
55
56
57
58
inline
std::ostream&
operator<<
( std::ostream&
s
,
const
Filter_etaPT
&
/*_s*/
) {
59
return
s
;
60
}
61
62
63
#endif // TRIGINDETANALYSISUTILS_FILTER_ETAPT_H
Track.h
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
Filter_etaPT::m_pTMin
double m_pTMin
Definition:
Filter_etaPT.h:50
TrackFilter
Definition:
TrackFilter.h:26
Filter_etaPT::Filter_etaPT
Filter_etaPT(double etaMax, double pTMin)
Definition:
Filter_etaPT.h:31
Filter_etaPT
Definition:
Filter_etaPT.h:27
TrackFilter.h
base class for a single track selection filter allowing parameter setting for complex track selection
xAOD::etaMax
etaMax
Definition:
HIEventShape_v2.cxx:46
TIDARoiDescriptor
Describes the Region of Ineterest geometry It has basically 8 parameters.
Definition:
TIDARoiDescriptor.h:42
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
Filter_etaPT::select
bool select(const TIDA::Track *t, const TIDARoiDescriptor *=0)
Definition:
Filter_etaPT.h:36
TIDA::Track
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:26
operator<<
std::ostream & operator<<(std::ostream &s, const Filter_etaPT &)
Definition:
Filter_etaPT.h:58
Filter_etaPT::m_etaMax
double m_etaMax
Definition:
Filter_etaPT.h:47
Generated on Wed Jan 15 2025 21:10:22 for ATLAS Offline Software by
1.8.18