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

Constructor & Destructor Documentation

◆ PrescaleCounter()

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

Definition at line 294 of file GlobalBoard.h.

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

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

References or.

Referenced by esMonitoring.FDJsonServer::handle_accept().

1248  {
1250 
1252  return false;
1253 
1255 
1256  return true;
1257 }
static constexpr size_t m_singlestep
Definition: GlobalBoard.h:287
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 291 of file GlobalBoard.h.

Referenced by PrescaleCounter().

◆ trigger_counter

size_t l1t::GlobalBoard::PrescaleCounter::trigger_counter

Definition at line 292 of file GlobalBoard.h.