ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigSteeringEvent
src
Lvl1Result.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigSteeringEvent/Lvl1Result.h
"
6
7
using namespace
LVL1CTP
;
8
9
bool
Lvl1Result::anyActiveL1ItemAfterVeto
()
const
10
{
11
for
(
unsigned
int
i = 0; i <
m_l1_itemsTAV
.size(); ++i) {
12
if
(
m_l1_itemsTAV
[i] != 0)
return
true
;
13
}
14
15
return
false
;
16
}
17
18
19
bool
Lvl1Result::isAccepted
()
const
20
{
21
return
(
isConfigured
() &&
anyActiveL1ItemAfterVeto
() );
22
}
23
24
25
bool
Lvl1Result::isPassedBeforePrescale
(
unsigned
int
item)
const
26
{
27
if
(item >=
m_l1_itemsTBP
.size()*32)
return
0;
28
uint32_t word =
m_l1_itemsTBP
[item/32];
29
return
(((word >> (item % 32)) & 0x1) != 0);
30
}
31
32
bool
Lvl1Result::isPassedAfterPrescale
(
unsigned
int
item)
const
33
{
34
if
(item >=
m_l1_itemsTAP
.size()*32)
return
0;
35
uint32_t word =
m_l1_itemsTAP
[item/32];
36
return
(((word >> (item % 32)) & 0x1) != 0);
37
}
38
39
bool
Lvl1Result::isPassedAfterVeto
(
unsigned
int
item)
const
40
{
41
if
(item >=
m_l1_itemsTAV
.size()*32)
return
0;
42
uint32_t word =
m_l1_itemsTAV
[item/32];
43
return
(((word >> (item % 32)) & 0x1) != 0);
44
}
45
46
47
bool
Lvl1Result::isPassedRaw
(
unsigned
int
item)
const
48
{
49
return
isPassedBeforePrescale
(item);
50
}
51
52
53
bool
Lvl1Result::isPrescaled
(
unsigned
int
item)
const
54
{
55
return
isPassedBeforePrescale
(item) && !
isPassedAfterPrescale
(item);
56
}
57
58
bool
Lvl1Result::isVeto
(
unsigned
int
item)
const
59
{
60
return
isPassedAfterPrescale
(item) && !
isPassedAfterVeto
(item);
61
}
Lvl1Result.h
LVL1CTP::Lvl1Result::m_l1_itemsTAP
std::vector< uint32_t > m_l1_itemsTAP
Trigger (level 1 items) After Prescale.
Definition
Lvl1Result.h:72
LVL1CTP::Lvl1Result::m_l1_itemsTAV
std::vector< uint32_t > m_l1_itemsTAV
Trigger (level 1 items) After Veto (==final L1 decision).
Definition
Lvl1Result.h:73
LVL1CTP::Lvl1Result::isConfigured
bool isConfigured() const
is LVL1 configured ?
Definition
Lvl1Result.h:37
LVL1CTP::Lvl1Result::isPrescaled
bool isPrescaled(unsigned int item) const
item isPassedBeforePrescale and not isPassedAfterPrescale
Definition
Lvl1Result.cxx:53
LVL1CTP::Lvl1Result::m_l1_itemsTBP
std::vector< uint32_t > m_l1_itemsTBP
Trigger (level 1 items) Before Prescale.
Definition
Lvl1Result.h:71
LVL1CTP::Lvl1Result::isPassedAfterVeto
bool isPassedAfterVeto(unsigned int item) const
final L1 decision for this item
Definition
Lvl1Result.cxx:39
LVL1CTP::Lvl1Result::isAccepted
bool isAccepted() const
final LVL1 decision && isConfigured
Definition
Lvl1Result.cxx:19
LVL1CTP::Lvl1Result::isPassedRaw
bool isPassedRaw(unsigned int item) const
same as isPassedBeforePrescale
Definition
Lvl1Result.cxx:47
LVL1CTP::Lvl1Result::isPassedBeforePrescale
bool isPassedBeforePrescale(unsigned int item) const
raw L1 item
Definition
Lvl1Result.cxx:25
LVL1CTP::Lvl1Result::isVeto
bool isVeto(unsigned int item) const
item isPassedAfterPrescale and not isPassedAfterVeto
Definition
Lvl1Result.cxx:58
LVL1CTP::Lvl1Result::anyActiveL1ItemAfterVeto
bool anyActiveL1ItemAfterVeto() const
any LVL1 item passed after prescale, veto ?
Definition
Lvl1Result.cxx:9
LVL1CTP::Lvl1Result::isPassedAfterPrescale
bool isPassedAfterPrescale(unsigned int item) const
after prescale
Definition
Lvl1Result.cxx:32
LVL1CTP
Definition
Lvl1ResultAccessTool.h:20
Generated on
for ATLAS Offline Software by
1.17.0