ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigEvent
TrigSteeringEvent
TrigSteeringEvent
Lvl1Item.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
/**********************************************************************************
6
* @Project: HLT
7
* @Package: TrigSteeringEvent
8
* @class : Lvl1Result
9
*
10
* @brief container for compact version of the results of all three trigger levels
11
*
12
* @author Nicolas Berger <Nicolas.Berger@cern.ch> - CERN
13
* @author Till Eifert <Till.Eifert@cern.ch> - U. of Geneva, Switzerland
14
* @author Ricardo Goncalo <Jose.Goncalo@cern.ch> - Royal Holloway, U. of London
15
**********************************************************************************/
16
17
#ifndef TRIGSTEERINGEVENT_LVL1ITEM_H
18
#define TRIGSTEERINGEVENT_LVL1ITEM_H
19
20
#include "
xAODCore/CLASS_DEF.h
"
21
22
#include <string>
23
24
25
namespace
LVL1CTP
{
26
31
32
class
Lvl1Item
{
33
34
public
:
35
36
Lvl1Item
(
const
std::string& n,
unsigned
int
hash,
bool
passBP =
false
,
37
bool
passAP =
true
,
bool
passAV =
true
,
float
factor = 1) :
38
m_name
(n),
m_hashId
(hash),
m_passBP
(passBP),
m_passAP
(passAP),
m_passAV
(passAV),
39
m_prescaleFactor
(factor) {}
40
41
const
std::string&
name
()
const
{
return
m_name
; }
42
unsigned
int
hashId
()
const
{
return
m_hashId
; }
43
44
bool
isPassedBeforePrescale
()
const
{
return
m_passBP
; }
45
bool
isPassedAfterPrescale
()
const
{
return
m_passAP
; }
46
bool
isPassedAfterVeto
()
const
{
return
m_passAV
; }
47
48
bool
isPassed
()
const
{
return
isPassedAfterVeto
(); }
49
50
bool
isPrescaled
()
const
{
return
isPassedBeforePrescale
() && !
isPassedAfterPrescale
(); }
51
bool
isVeto
()
const
{
return
isPassedAfterPrescale
() && !
isPassedAfterVeto
(); }
52
53
float
prescaleFactor
()
const
{
return
m_prescaleFactor
; }
54
55
void
setName
(
const
std::string&
name
) {
m_name
=
name
; }
56
void
setHashId
(
unsigned
int
hash) {
m_hashId
= hash; }
57
void
setPrescaleFactor
(
float
factor) {
m_prescaleFactor
= factor; }
58
59
private
:
60
61
std::string
m_name
;
62
unsigned
int
m_hashId
;
63
bool
m_passBP
,
m_passAP
,
m_passAV
;
64
float
m_prescaleFactor
;
65
};
66
67
}
// end of namespace
68
69
#endif
CLASS_DEF.h
File providing the different SG_BASE macros.
LVL1CTP::Lvl1Item::m_passAP
bool m_passAP
Definition
Lvl1Item.h:63
LVL1CTP::Lvl1Item::m_passAV
bool m_passAV
Definition
Lvl1Item.h:63
LVL1CTP::Lvl1Item::isPassedAfterPrescale
bool isPassedAfterPrescale() const
Definition
Lvl1Item.h:45
LVL1CTP::Lvl1Item::m_prescaleFactor
float m_prescaleFactor
Definition
Lvl1Item.h:64
LVL1CTP::Lvl1Item::hashId
unsigned int hashId() const
Definition
Lvl1Item.h:42
LVL1CTP::Lvl1Item::isPassed
bool isPassed() const
Definition
Lvl1Item.h:48
LVL1CTP::Lvl1Item::isPassedBeforePrescale
bool isPassedBeforePrescale() const
Definition
Lvl1Item.h:44
LVL1CTP::Lvl1Item::prescaleFactor
float prescaleFactor() const
Definition
Lvl1Item.h:53
LVL1CTP::Lvl1Item::name
const std::string & name() const
Definition
Lvl1Item.h:41
LVL1CTP::Lvl1Item::isPassedAfterVeto
bool isPassedAfterVeto() const
Definition
Lvl1Item.h:46
LVL1CTP::Lvl1Item::setHashId
void setHashId(unsigned int hash)
Definition
Lvl1Item.h:56
LVL1CTP::Lvl1Item::setPrescaleFactor
void setPrescaleFactor(float factor)
Definition
Lvl1Item.h:57
LVL1CTP::Lvl1Item::m_passBP
bool m_passBP
Definition
Lvl1Item.h:63
LVL1CTP::Lvl1Item::Lvl1Item
Lvl1Item(const std::string &n, unsigned int hash, bool passBP=false, bool passAP=true, bool passAV=true, float factor=1)
Definition
Lvl1Item.h:36
LVL1CTP::Lvl1Item::isPrescaled
bool isPrescaled() const
Definition
Lvl1Item.h:50
LVL1CTP::Lvl1Item::isVeto
bool isVeto() const
Definition
Lvl1Item.h:51
LVL1CTP::Lvl1Item::setName
void setName(const std::string &name)
Definition
Lvl1Item.h:55
LVL1CTP::Lvl1Item::m_hashId
unsigned int m_hashId
Definition
Lvl1Item.h:62
LVL1CTP::Lvl1Item::m_name
std::string m_name
Definition
Lvl1Item.h:61
LVL1CTP
Definition
Lvl1ResultAccessTool.h:20
Generated on
for ATLAS Offline Software by
1.17.0