ATLAS Offline Software
Loading...
Searching...
No Matches
CTPTriggerItem.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef TRIGT1CTP_CTPTRIGGERITEM_H
7#define TRIGT1CTP_CTPTRIGGERITEM_H
8
11
12#include <map>
13#include <string>
14#include <memory>
15
16
17namespace LVL1CTP {
18
22
24
25 public:
30
31 // setters and getters for member variables
32 void setLogic(const std::string & logicExpr);
33 const std::shared_ptr<TrigConf::Logic> & logic() const;
34
35 void setBunchGroups(const std::vector<std::string> & bunchGroups);
36 const std::vector<std::string> & bunchGroups() const;
37
38 void setCtpId( unsigned int ctpid );
39 unsigned int ctpId() const;
40
41 void setName( const std::string & name );
42 const std::string & name() const;
43
44 void setTriggerType(unsigned char triggerType);
45 unsigned char triggerType() const;
46
47 void setPrescale(int prescale);
48 int prescale() const;
49
50 bool evaluate( const std::map<std::string, unsigned int> & thrDecMap ) const;
51
52
53 private:
54 std::string m_name { "" };
55 unsigned int m_ctpid { 1 };
56 unsigned char m_TriggerType { 0 };
57 int m_prescale { 1 };
58 std::shared_ptr<TrigConf::Logic> m_logic;
59 std::vector<std::string> m_bunchGroups;
60 };
61
62}
63
64#endif
std::shared_ptr< TrigConf::Logic > m_logic
the definition of the item turned into a Logic object
const std::vector< std::string > & bunchGroups() const
void setPrescale(int prescale)
unsigned char triggerType() const
void setBunchGroups(const std::vector< std::string > &bunchGroups)
CTPTriggerItem()
constructor setting trigger item and corresponding prescale
unsigned int m_ctpid
CTPID.
~CTPTriggerItem()
default destructor
void setCtpId(unsigned int ctpid)
void setName(const std::string &name)
std::vector< std::string > m_bunchGroups
the list of bunchgroups forming this item
const std::shared_ptr< TrigConf::Logic > & logic() const
unsigned int ctpId() const
void setLogic(const std::string &logicExpr)
bool evaluate(const std::map< std::string, unsigned int > &thrDecMap) const
void setTriggerType(unsigned char triggerType)
const std::string & name() const
int m_prescale
prescale value
std::string m_name
item name
unsigned char m_TriggerType
8 bit trigger type (4 bit for secondary partitions)