ATLAS Offline Software
Trigger
TrigAnalysis
TrigInDetAnalysisUtils
TrigInDetAnalysisUtils
Filter_TrackHits.h
Go to the documentation of this file.
1
/* emacs: this is -*- c++ -*- */
12
#ifndef TrigInDetAnalysisUtils_Filter_TrackHits_H
13
#define TrigInDetAnalysisUtils_Filter_TrackHits_H
14
15
16
#include <iostream>
17
#include <string>
18
#include <cmath>
19
#include <map>
20
21
#include "
TrigInDetAnalysis/Track.h
"
22
#include "
TrigInDetAnalysis/TrackFilter.h
"
23
24
#include "TMath.h"
25
26
27
class
Filter_TrackHits
:
public
TIDA::TrackFilter {
28
29
public
:
30
31
Filter_TrackHits
(
int
bLayer,
int
pixel
,
int
sct,
int
silicon,
int
straw
,
int
tr,
double
chi2prob=0.1) :
32
m_bLayer(bLayer),
m_pixel
(
pixel
),
m_sct
(sct),
m_silicon
(silicon),
m_straw
(
straw
),
m_tr
(tr) { }
33
34
bool
select
(
const
TIDA::Track
*
t
,
const
TrigInDetAnalysis::TIDARoiDescriptor* =0) {
35
// Select track hit numbers
36
if
((
t
->bLayerHits()<m_bLayer) || (
t
->pixelHits()<
m_pixel
) || (
t
->sctHits()<
m_sct
) || (
t
->siHits()<
m_silicon
) ||
37
(
t
->strawHits()<
m_straw
) || (
t
->trHits()<
m_tr
))
return
false
;
38
return
true
;
39
}
40
41
prtected:
42
43
int
m_bLayer;
44
int
m_pixel
;
45
int
m_sct
;
46
int
m_silicon
;
47
int
m_straw
;
48
int
m_tr
;
49
50
double
m_probchi2
;
51
52
};
53
54
55
56
57
class
Filter_Quality
:
public
Filter_TrackHits
{
58
59
public
:
60
61
Filter_Quality
(
int
bLayer,
int
pixel
,
int
sct,
int
silicon,
int
straw
,
int
tr,
double
probchi2=0.1) :
62
Filter_TrackHits
( bLayer,
pixel
, sct, silicon,
straw
, tr ) {
63
m_probchi2
= probchi2;
64
}
65
66
bool
select
(
const
TIDA::Track
*
t
,
const
TrigInDetAnalysis::TIDARoiDescriptor* =0) {
67
if
(
Filter_TrackHits::select
(
t
) )
return
TMath::Prob( tr->chi2(), tf->dof() )>0.1;
68
}
69
70
};
71
72
#endif // TrigInDetAnalysisUtils_Filter_TrackHits_H
Track.h
TRT::Hit::straw
@ straw
Definition:
HitInfo.h:82
Filter_TrackHits::m_sct
int m_sct
Definition:
Filter_TrackHits.h:45
Filter_TrackHits::m_silicon
int m_silicon
Definition:
Filter_TrackHits.h:46
Filter_Quality
Definition:
Filter_TrackHits.h:57
TrackFilter.h
base class for a single track selection filter allowing parameter setting for complex track selection
Filter_Quality::Filter_Quality
Filter_Quality(int bLayer, int pixel, int sct, int silicon, int straw, int tr, double probchi2=0.1)
Definition:
Filter_TrackHits.h:61
Filter_TrackHits::m_probchi2
double m_probchi2
Definition:
Filter_TrackHits.h:50
read_hist_ntuple.t
t
Definition:
read_hist_ntuple.py:5
Filter_TrackHits::m_straw
int m_straw
Definition:
Filter_TrackHits.h:47
Filter_TrackHits::Filter_TrackHits
Filter_TrackHits(int bLayer, int pixel, int sct, int silicon, int straw, int tr, double chi2prob=0.1)
Definition:
Filter_TrackHits.h:31
Filter_TrackHits::select
bool select(const TIDA::Track *t, const TrigInDetAnalysis::TIDARoiDescriptor *=0)
Definition:
Filter_TrackHits.h:34
Filter_TrackHits
Definition:
Filter_TrackHits.h:27
TIDA::Track
Definition:
Trigger/TrigAnalysis/TrigInDetAnalysis/TrigInDetAnalysis/Track.h:26
Filter_TrackHits::m_tr
int m_tr
Definition:
Filter_TrackHits.h:48
SiliconTech::pixel
@ pixel
Filter_Quality::select
bool select(const TIDA::Track *t, const TrigInDetAnalysis::TIDARoiDescriptor *=0)
Definition:
Filter_TrackHits.h:66
Filter_TrackHits::m_pixel
int m_pixel
Definition:
Filter_TrackHits.h:44
Generated on Tue Jul 2 2024 21:15:42 for ATLAS Offline Software by
1.8.18