ATLAS Offline Software
Loading...
Searching...
No Matches
TgcDigitCuts.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef VP1_TGCDIGITCUTS_H
6#define VP1_TGCDIGITCUTS_H
7
9
10// Selection policy shared by collection filtering and its unit tests.
12 bool showStrips = true;
13 bool showWires = true;
14 bool showPrevious = true;
15 bool showCurrent = true;
16 bool showNext = true;
17 bool showNextNext = true;
18 bool showUndefined = true;
19 bool showUnknown = true;
20
21 bool accepts(bool strip, unsigned bcTag) const
22 {
23 if (strip ? !showStrips : !showWires)
24 return false;
25 switch (bcTag) {
29 case TgcDigit::BC_NEXT: return showNext;
31 default: return showUnknown;
32 }
33 }
34};
35
36#endif
unsigned bcTag(unsigned bcBitMap)
@ BC_UNDEFINED
Definition TgcDigit.h:37
@ BC_NEXT
Definition TgcDigit.h:37
@ BC_CURRENT
Definition TgcDigit.h:37
@ BC_PREVIOUS
Definition TgcDigit.h:37
@ BC_NEXTNEXT
Definition TgcDigit.h:37
bool accepts(bool strip, unsigned bcTag) const