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

Constructor & Destructor Documentation

◆ PrescaleCounter()

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

Definition at line 298 of file GlobalBoard.h.

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

299  : prescale_count(std::lround(prescale * m_singlestep)), trigger_counter(initial_counter) {
300  if (prescale_count != 0 and (prescale_count < m_singlestep or prescale < 0)) {
301  throw cms::Exception("PrescaleCounterConstructor")
302  << "invalid initialisation of PrescaleCounter: prescale = " << prescale
303  << ", prescale_count = " << prescale_count << " (< " << m_singlestep << " = m_singlestep)";
304  }
305  }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:291
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 1284 of file GlobalBoard.cc.

References or.

Referenced by esMonitoring.FDJsonServer::handle_accept().

1284  {
1286 
1288  return false;
1289 
1291 
1292  return true;
1293 }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:291
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 295 of file GlobalBoard.h.

Referenced by PrescaleCounter().

◆ trigger_counter

size_t l1t::GlobalBoard::PrescaleCounter::trigger_counter

Definition at line 296 of file GlobalBoard.h.