CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
l1t::GlobalBoard::PrescaleCounter Struct Reference

Public Member Functions

bool accept ()
 
 PrescaleCounter (double prescale, size_t const initial_counter=0)
 

Public Attributes

size_t const prescale_count
 
size_t trigger_counter
 

Detailed Description

Definition at line 280 of file GlobalBoard.h.

Constructor & Destructor Documentation

◆ PrescaleCounter()

l1t::GlobalBoard::PrescaleCounter::PrescaleCounter ( double  prescale,
size_t const  initial_counter = 0 
)
inline

Definition at line 284 of file GlobalBoard.h.

References Exception, l1t::GlobalBoard::m_singlestep, or, and prescale_count.

285  : prescale_count(std::lround(prescale * m_singlestep)), trigger_counter(initial_counter) {
286  if (prescale_count != 0 and (prescale_count < m_singlestep or prescale < 0)) {
287  throw cms::Exception("PrescaleCounterConstructor")
288  << "invalid initialisation of PrescaleCounter: prescale = " << prescale
289  << ", prescale_count = " << prescale_count << " (< " << m_singlestep << " = m_singlestep)";
290  }
291  }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:277
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

Member Function Documentation

◆ accept()

bool l1t::GlobalBoard::PrescaleCounter::accept ( )

Definition at line 1169 of file GlobalBoard.cc.

References or.

Referenced by esMonitoring.FDJsonServer::handle_accept().

1169  {
1171 
1173  return false;
1174 
1176 
1177  return true;
1178 }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:277
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12

Member Data Documentation

◆ prescale_count

size_t const l1t::GlobalBoard::PrescaleCounter::prescale_count

Definition at line 281 of file GlobalBoard.h.

Referenced by PrescaleCounter().

◆ trigger_counter

size_t l1t::GlobalBoard::PrescaleCounter::trigger_counter

Definition at line 282 of file GlobalBoard.h.