ATLAS Offline Software
Tracking
TrkUtilityPackages
TrkDriftCircleMath
TrkDriftCircleMath
DCSLHitSelector.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef DCMATH_DCSLHITSELECTOR_H
6
#define DCMATH_DCSLHITSELECTOR_H
7
8
#include "
TrkDriftCircleMath/DCOnTrack.h
"
9
#include "
TrkDriftCircleMath/DCSLFitter.h
"
10
11
namespace
TrkDriftCircleMath
{
12
13
class
DCSLHitSelector
{
14
public
:
15
DCSLHitSelector
() =
default
;
16
17
const
HitSelection
selectHitsOnTrack
(
const
DCOnTrackVec
& dcs)
const
;
18
};
19
20
inline
const
HitSelection
DCSLHitSelector::selectHitsOnTrack
(
const
DCOnTrackVec
& dcs)
const
{
21
HitSelection
selection
;
22
selection
.resize(dcs.size(), 1);
23
for
(
unsigned
int
i
= 0;
i
< dcs.size(); ++
i
) {
24
if
(dcs[
i
].state() ==
DCOnTrack::OnTrack
)
selection
[
i
] = 0;
25
}
26
return
selection
;
27
}
28
29
}
// namespace TrkDriftCircleMath
30
31
#endif
TrkDriftCircleMath::DCOnTrackVec
std::vector< DCOnTrack > DCOnTrackVec
Definition:
DCOnTrack.h:59
TrkDriftCircleMath::HitSelection
std::vector< bool > HitSelection
Definition:
HitSelection.h:9
TrkDriftCircleMath::DCSLHitSelector::DCSLHitSelector
DCSLHitSelector()=default
TrkDriftCircleMath
Function object to check whether two Segments are sub/super sets or different.
Definition:
IMdtSegmentFinder.h:13
DCSLFitter.h
lumiFormat.i
int i
Definition:
lumiFormat.py:85
TrkDriftCircleMath::DCSLHitSelector
Definition:
DCSLHitSelector.h:13
selection
std::string selection
Definition:
fbtTestBasics.cxx:75
TrkDriftCircleMath::DCOnTrack::OnTrack
@ OnTrack
Definition:
DCOnTrack.h:20
DCOnTrack.h
TrkDriftCircleMath::DCSLHitSelector::selectHitsOnTrack
const HitSelection selectHitsOnTrack(const DCOnTrackVec &dcs) const
Definition:
DCSLHitSelector.h:20
Generated on Thu Nov 7 2024 21:13:31 for ATLAS Offline Software by
1.8.18