ATLAS Offline Software
Loading...
Searching...
No Matches
FrontPanelCTP.h
Go to the documentation of this file.
1
2// FrontPanelCTP.h
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6// Header file for class FrontPanelCTP
7// Author: S.Binet<binet@cern.ch>
9#ifndef TRIGT1INTERFACES_FRONTPANELCTP_H
10#define TRIGT1INTERFACES_FRONTPANELCTP_H 1
11
12// STL includes
13#include <iosfwd>
14
15#include <bitset>
16#include <map>
17#include <string>
18
19// Gaudi includes
20#include "GaudiKernel/DataObject.h"
21
22
23namespace LVL1 {
34
35class FrontPanelCTP: public DataObject {
36public:
37
38 // default constructor
40
41 // Constructor with parameters:
42 FrontPanelCTP( uint32_t cableword0clock0,
43 uint32_t cableword0clock1,
44 uint32_t cableword1clock0,
45 uint32_t cableword1clock1,
46 uint32_t cableword2clock0,
47 uint32_t cableword2clock1 );
48
51
52
54 void setCableWord0(unsigned int clock, uint32_t data);
55
57 void setCableWord1(unsigned int clock, uint32_t data);
58
60 void setCableWord2(unsigned int clock, uint32_t data);
61
63 void setOptCableWord(const std::string& conn, const std::bitset<128>& data) { m_optcableWord[conn] = data; }
64
65
66
68 uint32_t cableWord0(unsigned int clock) const;
69
71 uint32_t cableWord1(unsigned int clock) const;
72
74 uint32_t cableWord2(unsigned int clock) const;
75
77 std::bitset<128> optcableWord(const std::string& conn) const { return m_optcableWord.find(conn)->second; }
78
80 // Private data:
82private:
83 uint32_t m_cableWord0[2] { 0, 0 };
84 uint32_t m_cableWord1[2] { 0, 0 };
85 uint32_t m_cableWord2[2] { 0, 0 };
86
87 std::map<std::string,std::bitset<128>> m_optcableWord;
88
89};
90
91
92} //> end namespace LVL1
93
95CLASS_DEF( LVL1::FrontPanelCTP , 33637034 , 1 )
96
97#endif //> !TRIGT1INTERFACES_FRONTPANELCTP_H
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Front panel input class to the CTP simulation.
uint32_t m_cableWord2[2]
uint32_t m_cableWord0[2]
uint32_t m_cableWord1[2]
~FrontPanelCTP()
Destructor:
uint32_t cableWord0(unsigned int clock) const
return the data that is sent on cable 0
void setCableWord0(unsigned int clock, uint32_t data)
set the data that is sent on cable 0
void setOptCableWord(const std::string &conn, const std::bitset< 128 > &data)
set the data that is sent on the optical cables
uint32_t cableWord2(unsigned int clock) const
return the data that is sent on cable 2
void setCableWord2(unsigned int clock, uint32_t data)
set the data that is sent on cable 2
std::bitset< 128 > optcableWord(const std::string &conn) const
return the data that is sent on the optical cables by index
uint32_t cableWord1(unsigned int clock) const
return the data that it sent on cable 1
void setCableWord1(unsigned int clock, uint32_t data)
set the data that is sent on cable 1
std::map< std::string, std::bitset< 128 > > m_optcableWord
FrontPanelCTP(uint32_t cableword0clock0, uint32_t cableword0clock1, uint32_t cableword1clock0, uint32_t cableword1clock1, uint32_t cableword2clock0, uint32_t cableword2clock1)
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...