13 for (
auto & thr : l1menu->thresholds() ) {
27 unsigned int start = 0;
30 unsigned int end = start + abs( thr->cableStart() - thr->cableEnd() );
39 const std::vector< TrigConf::PIT* >& pit_vector)
47 if( pit->thresholdName() != thr->name() )
49 if( pit->pitNumber() < pit_start )
50 pit_start = pit->pitNumber();
51 if( pit->pitNumber() > pit_end )
52 pit_end = pit->pitNumber();
62 const std::vector< TrigConf::TIP* >& tip_vector)
70 if( tip->thresholdName() != thr->name() )
72 if( tip->tipNumber() < tip_start)
73 tip_start = tip->tipNumber();
74 if( tip->tipNumber() > tip_end )
75 tip_end = tip->tipNumber();
89std::vector<std::string>
91 std::vector<std::string> thrNames;
94 thrNames.emplace_back(entry.first);
104 catch(std::exception&) {
105 throw std::runtime_error(
"Threshold " + thrName +
" not present in CTPSimulation's internal threshold map");
Helper class holding trigger threshold multiplicity.
const std::string & name() const
void setStartBit(unsigned int start)
Set the start position of the threshold.
void setEndBit(unsigned int end)
Set the end position of the threshold.
const CTPTriggerThreshold & getCTPThreshold(const std::string &thrName) const
std::map< std::string, const CTPTriggerThreshold * > m_mapByName
map storing the accosiation between threshold name and CTPTriggerThreshold
std::vector< std::string > getThresholdNames() const
~ThresholdMap()
default destructor