5#ifndef TRIGCONFDATA_L1CONNECTOR_H
6#define TRIGCONFDATA_L1CONNECTOR_H
66 virtual std::string
className()
const override;
69 std::size_t
size()
const;
71 std::string
type()
const;
88 const std::vector<TrigConf::TriggerLine> &
triggerLines(
unsigned int fpga = 0,
unsigned int clock = 0)
const;
90 bool hasLine(
const std::string & lineName )
const;
96 [[deprecated(
"Use legacy() instead.")]]
106 virtual void update()
override;
const ptree & data() const
Access to the underlying data, if needed.
DataStructure()
Default constructor, leading to an uninitialized configuration object.
boost::property_tree::ptree ptree
std::vector< TrigConf::TriggerLine > m_triggerLines[2][2]
bool hasLine(const std::string &lineName) const
std::size_t maxFpga() const
ConnectorType connectorType() const
Accessor to the connector type.
virtual std::string className() const override
A string that is the name of the class.
const TrigConf::TriggerLine & triggerLine(const std::string &lineName) const
const std::vector< TrigConf::TriggerLine > & triggerLines(unsigned int fpga=0, unsigned int clock=0) const
Accessor to the triggerlines on the connector.
L1Connector & operator=(const L1Connector &)=delete
std::size_t size() const
Accessor to the number of trigger lines.
std::size_t maxClock() const
L1Connector(L1Connector &&)=delete
std::map< std::string, TrigConf::TriggerLine * > m_lineByName
virtual void update() override
Update the internal members.
L1Connector(const L1Connector &)=delete
L1Connector()
Constructor.
std::vector< std::string > triggerLineNames() const
names of all trigger lines
virtual ~L1Connector() override=default
Destructor.
a TriggerLine entry describes the location of a threshold multiplicity on a cable (connector)
unsigned int clock() const
unsigned int endbit() const
unsigned int flatindex() const
TriggerLine(const std::string &name, unsigned int startbit, unsigned int nbits, unsigned int flatindex, unsigned int fpga=0, unsigned int clock=0, const std::string &connName="")
unsigned int startbit() const
unsigned int nbits() const
const std::string & connName() const
const std::string & name() const
unsigned int fpga() const
Forward iterator to traverse the main components of the trigger configuration.