ATLAS Offline Software
Loading...
Searching...
No Matches
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
25namespace 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
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;
65 };
66
67} // end of namespace
68
69#endif
File providing the different SG_BASE macros.
bool isPassedAfterPrescale() const
Definition Lvl1Item.h:45
float m_prescaleFactor
Definition Lvl1Item.h:64
unsigned int hashId() const
Definition Lvl1Item.h:42
bool isPassed() const
Definition Lvl1Item.h:48
bool isPassedBeforePrescale() const
Definition Lvl1Item.h:44
float prescaleFactor() const
Definition Lvl1Item.h:53
const std::string & name() const
Definition Lvl1Item.h:41
bool isPassedAfterVeto() const
Definition Lvl1Item.h:46
void setHashId(unsigned int hash)
Definition Lvl1Item.h:56
void setPrescaleFactor(float factor)
Definition Lvl1Item.h:57
Lvl1Item(const std::string &n, unsigned int hash, bool passBP=false, bool passAP=true, bool passAV=true, float factor=1)
Definition Lvl1Item.h:36
bool isPrescaled() const
Definition Lvl1Item.h:50
bool isVeto() const
Definition Lvl1Item.h:51
void setName(const std::string &name)
Definition Lvl1Item.h:55
unsigned int m_hashId
Definition Lvl1Item.h:62
std::string m_name
Definition Lvl1Item.h:61