ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
11namespace TrkDriftCircleMath {
12
14 public:
15 DCSLHitSelector() = default;
16
17 const HitSelection selectHitsOnTrack(const DCOnTrackVec& dcs) const;
18 };
19
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
const HitSelection selectHitsOnTrack(const DCOnTrackVec &dcs) const
const std::string selection
Function object to check whether two Segments are sub/super sets or different.
std::vector< bool > HitSelection
Definition HitSelection.h:9
std::vector< DCOnTrack > DCOnTrackVec
Definition DCOnTrack.h:59