ATLAS Offline Software
TIP.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigConf_TIP
6 #define TrigConf_TIP
7 
8 #include <string>
9 #include <stdint.h>
11 
12 namespace TrigConf {
13  class TIP : public L1DataBaseclass {
14  public:
15  TIP();
16  virtual ~TIP() override = default;
17 
18  // Accessors
19 
20  const std::string & thresholdName() const {return m_ThresholdName;}
21  void setThresholdName(const std::string& name) {m_ThresholdName = name;}
22 
23  uint16_t slot() const {return m_Slot;}
24  void setSlot(const uint16_t& id) {m_Slot = id;}
25 
26  uint16_t connector() const {return m_Connector;}
27  void setConnector(const uint16_t& id) {m_Connector = id;}
28 
29  uint16_t tipNumber() const {return m_TipNumber;}
30  void setTipNumber (const uint16_t& tipnumber) {m_TipNumber = tipnumber;}
31 
34 
35  uint16_t cableBit() const {return m_CableBit;}
36  void setCableBit (const uint16_t& num) {m_CableBit = num;}
37 
38  int tmToTtId() const {return m_TmToTtId;}
39  void setTmToTtId(const int& tmtottid){m_TmToTtId = tmtottid;}
40 
43 
46 
47  bool thresholdActive() const {return m_ThresholdActive;}
48  void setThresholdActive(const bool& a){m_ThresholdActive = a;}
49 
50  bool isDirect() const {return m_IsDirect;}
51  void setIsDirect(const bool& a) {m_IsDirect = a;}
52 
53  int clock() const {return m_Clock;}
54  void setClock(const int& clock) {m_Clock = clock;}
55 
56  virtual void print(const std::string& indent="", unsigned int detail=1) const override;
57 
58  protected:
59  std::string m_ThresholdName; // the name of the corresponding threshold (can appear multiple times but with different thresholdBits)
62  uint16_t m_TipNumber; // 0-159 for the PIT, 320-511 for the direct inputs
63  uint16_t m_ThresholdBit; // a threshold uses multiple bits to encode the multiplicity
69  bool m_IsDirect;
70  int m_Clock;
71  };
72 }
73 
74 #endif
TrigConf::TrigConfData::name
const std::string & name() const
Definition: TrigConfData.h:22
TrigConf::TIP::tipNumber
uint16_t tipNumber() const
Definition: TIP.h:29
TrigConf::TIP::triggerThresholdId
int triggerThresholdId() const
Definition: TIP.h:41
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
TrigConf::TIP::setIsDirect
void setIsDirect(const bool &a)
Definition: TIP.h:51
TrigConf::TIP::isDirect
bool isDirect() const
Definition: TIP.h:50
TrigConf::TIP::setThresholdMapping
void setThresholdMapping(const int16_t &m)
Definition: TIP.h:45
TrigConf::TIP::m_ThresholdActive
bool m_ThresholdActive
Definition: TIP.h:67
TrigConf::TIP::connector
uint16_t connector() const
Definition: TIP.h:26
TrigConf::TIP::setThresholdName
void setThresholdName(const std::string &name)
Definition: TIP.h:21
TrigConf::TIP::m_TmToTtId
int m_TmToTtId
Definition: TIP.h:65
TrigConf::TIP::m_TriggerThresholdId
int m_TriggerThresholdId
Definition: TIP.h:66
TrigConf::TIP
Definition: TIP.h:13
TrigConf::TIP::thresholdActive
bool thresholdActive() const
Definition: TIP.h:47
detail
Definition: extract_histogram_tag.cxx:14
TrigConf::TIP::thresholdBit
uint16_t thresholdBit() const
Definition: TIP.h:32
TrigConf::TIP::~TIP
virtual ~TIP() override=default
TrigConf::TIP::TIP
TIP()
Definition: TIP.cxx:13
TrigConf::TIP::setTriggerThresholdId
void setTriggerThresholdId(const int &id)
Definition: TIP.h:42
xAOD::int16_t
setScaleOne setStatusOne setSaturated int16_t
Definition: gFexGlobalRoI_v1.cxx:55
TrigConf::TIP::cableBit
uint16_t cableBit() const
Definition: TIP.h:35
TrigConf::TIP::setConnector
void setConnector(const uint16_t &id)
Definition: TIP.h:27
TrigConf
Forward iterator to traverse the main components of the trigger configuration.
Definition: Config.h:22
TrigConf::TIP::setClock
void setClock(const int &clock)
Definition: TIP.h:54
TrigConf::TIP::m_TipNumber
uint16_t m_TipNumber
Definition: TIP.h:62
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TrigConf::TIP::m_CableBit
uint16_t m_CableBit
Definition: TIP.h:64
TrigConf::TIP::clock
int clock() const
Definition: TIP.h:53
TrigConf::TIP::setTmToTtId
void setTmToTtId(const int &tmtottid)
Definition: TIP.h:39
TrigConf::TIP::m_Clock
int m_Clock
Definition: TIP.h:70
TrigConf::name
Definition: HLTChainList.h:35
trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
TrigConf::TIP::setThresholdActive
void setThresholdActive(const bool &a)
Definition: TIP.h:48
TrigConf::TrigConfData::id
unsigned int id() const
Definition: TrigConfData.h:21
TrigConf::TIP::setTipNumber
void setTipNumber(const uint16_t &tipnumber)
Definition: TIP.h:30
TrigConf::TIP::m_IsDirect
bool m_IsDirect
Definition: TIP.h:69
a
TList * a
Definition: liststreamerinfos.cxx:10
TrigConf::TIP::setSlot
void setSlot(const uint16_t &id)
Definition: TIP.h:24
TrigConf::TIP::m_ThresholdBit
uint16_t m_ThresholdBit
Definition: TIP.h:63
TrigConf::TIP::tmToTtId
int tmToTtId() const
Definition: TIP.h:38
TrigConf::TIP::m_Slot
uint16_t m_Slot
Definition: TIP.h:60
TrigConf::TIP::setCableBit
void setCableBit(const uint16_t &num)
Definition: TIP.h:36
TrigConf::TIP::setThresholdBit
void setThresholdBit(const uint16_t &num)
Definition: TIP.h:33
TrigConf::TIP::print
virtual void print(const std::string &indent="", unsigned int detail=1) const override
Definition: TIP.cxx:30
TrigConf::TIP::m_ThresholdName
std::string m_ThresholdName
Definition: TIP.h:59
TrigConf::TrigConfData::indent
std::ostream & indent(std::ostream &o, int lvl, int size) const
Definition: TrigConfData.cxx:23
TrigConf::L1DataBaseclass
Definition: L1DataBaseclass.h:22
TrigConf::TIP::slot
uint16_t slot() const
Definition: TIP.h:23
L1DataBaseclass.h
TrigConf::TIP::m_ThresholdMapping
int16_t m_ThresholdMapping
Definition: TIP.h:68
TrigConf::TIP::thresholdName
const std::string & thresholdName() const
Definition: TIP.h:20
TrigConf::TIP::thresholdMapping
int16_t thresholdMapping() const
Definition: TIP.h:44
TrigConf::TIP::m_Connector
uint16_t m_Connector
Definition: TIP.h:61