ATLAS Offline Software
Loading...
Searching...
No Matches
Lvl1Item.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#pragma once
6// -*- C++ -*-
7/**********************************************************************************
8 * @Project: HLT
9 * @Package: TrigSteeringEvent
10 * @class : Lvl1Result
11 *
12 * @brief container for compact version of the results of all three trigger levels
13 *
14 * @author Nicolas Berger <Nicolas.Berger@cern.ch> - CERN
15 * @author Till Eifert <Till.Eifert@cern.ch> - U. of Geneva, Switzerland
16 * @author Ricardo Goncalo <Jose.Goncalo@cern.ch> - Royal Holloway, U. of London
17 *
18 * File and Version Information:
19 * $Id: Lvl1Result.h,v 1.8 2008-05-15 19:17:06 eifert Exp $
20 **********************************************************************************/
21
22#ifndef TRIGSTEERINGEVENT_Lvl1Item_H
23#define TRIGSTEERINGEVENT_Lvl1Item_H
24
25#include <stdint.h>
26#include <string>
27#include <vector>
28#include "xAODCore/CLASS_DEF.h"
29
30namespace LVL1CTP {
31
36
37 class Lvl1Item {
38
39 public:
40
41 Lvl1Item( const std::string& n, unsigned int hash, bool passBP = false,
42 bool passAP = true, bool passAV = true, float factor = 1) :
43 m_name(n), m_hashId(hash), m_passBP(passBP), m_passAP(passAP), m_passAV(passAV),
44 m_prescaleFactor(factor) {}
45
46 const std::string& name() const { return m_name; }
47 unsigned int hashId() const { return m_hashId; }
48
49 bool isPassedBeforePrescale() const { return m_passBP; }
50 bool isPassedAfterPrescale() const { return m_passAP; }
51 bool isPassedAfterVeto() const { return m_passAV; }
52
53 bool isPassed() const { return isPassedAfterVeto(); }
54
56 bool isVeto() const { return isPassedAfterPrescale() && ! isPassedAfterVeto(); }
57
58 float prescaleFactor() const { return m_prescaleFactor; }
59
60 void setName (const std::string& name) { m_name = name; }
61 void setHashId(unsigned int hash) { m_hashId = hash; }
62 void setPrescaleFactor(float factor) { m_prescaleFactor = factor; }
63
64 private:
65
66 std::string m_name;
67 unsigned int m_hashId;
70 };
71
72} // end of namespace
73
74#endif
File providing the different SG_BASE macros.
bool isPassedAfterPrescale() const
Definition Lvl1Item.h:50
float m_prescaleFactor
Definition Lvl1Item.h:69
unsigned int hashId() const
Definition Lvl1Item.h:47
bool isPassed() const
Definition Lvl1Item.h:53
bool isPassedBeforePrescale() const
Definition Lvl1Item.h:49
float prescaleFactor() const
Definition Lvl1Item.h:58
const std::string & name() const
Definition Lvl1Item.h:46
bool isPassedAfterVeto() const
Definition Lvl1Item.h:51
void setHashId(unsigned int hash)
Definition Lvl1Item.h:61
void setPrescaleFactor(float factor)
Definition Lvl1Item.h:62
Lvl1Item(const std::string &n, unsigned int hash, bool passBP=false, bool passAP=true, bool passAV=true, float factor=1)
Definition Lvl1Item.h:41
bool isPrescaled() const
Definition Lvl1Item.h:55
bool isVeto() const
Definition Lvl1Item.h:56
void setName(const std::string &name)
Definition Lvl1Item.h:60
unsigned int m_hashId
Definition Lvl1Item.h:67
std::string m_name
Definition Lvl1Item.h:66