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 286 of file GlobalBoard.h.

Constructor & Destructor Documentation

◆ PrescaleCounter()

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

Definition at line 290 of file GlobalBoard.h.

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

291  : prescale_count(std::lround(prescale * m_singlestep)), trigger_counter(initial_counter) {
292  if (prescale_count != 0 and (prescale_count < m_singlestep or prescale < 0)) {
293  throw cms::Exception("PrescaleCounterConstructor")
294  << "invalid initialisation of PrescaleCounter: prescale = " << prescale
295  << ", prescale_count = " << prescale_count << " (< " << m_singlestep << " = m_singlestep)";
296  }
297  }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:283
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 1221 of file GlobalBoard.cc.

References or.

Referenced by esMonitoring.FDJsonServer::handle_accept().

1221  {
1223 
1225  return false;
1226 
1228 
1229  return true;
1230 }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:283
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 287 of file GlobalBoard.h.

Referenced by PrescaleCounter().

◆ trigger_counter

size_t l1t::GlobalBoard::PrescaleCounter::trigger_counter

Definition at line 288 of file GlobalBoard.h.