19initQueue(std::queue<int>& q,
const int numvals,
const int setval) {
20 for (
int i{0};
i<numvals; ++
i)
q.push(setval);
25 base_class(
type, name, parent)
32 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
45 std::queue<int> qtemp;
46 initQueue(qtemp,
m_maxq,0);
49 std::vector<std::pair <int,int>> dummy;
63 const EventContext& ctx = Gaudi::Hive::currentContext();
71 int time_stamp{
static_cast<int>(ctx.eventID().time_stamp())};
72 int curr_time{time_stamp};
76 ATH_MSG_ERROR(
"Events not sorted properly (time is going backwards!) ");
87 if (dtime > maxtbins) {
99 for(
int itrk{0}; itrk!=wafersize; ++itrk) {
100 int waferhash{(*m_sct_waferHash)[itrk]};
107 int numhits{(*m_sct_numHitsInWafer)[itrk]};
108 totalHits += numhits;
120 and ((numhits +
m_phvtripQueue[waferhash].back() )/
static_cast<double>(maxtbins) ) > limit) {
122 for (
int iq{0}; iq<
m_maxq; ++iq) {
126 if (
m_tq[
m_maxq-2]/
static_cast<double>(maxtbins) > limit &&
m_tq[
m_maxq-3]/
static_cast<double>(maxtbins) > limit &&
m_tq[
m_maxq-4]/
static_cast<double>(maxtbins) > limit) {
128 ATH_MSG_DEBUG(
"Found a potential trip in SCT wafer " << waferhash);
130 <<
" hits/secs now = " << ((numhits +
m_tq[
m_maxq-1])/ maxtbins )
137 for (
int iq{0}; iq <
m_maxq; ++iq) {
157 for (; waferItr not_eq waferItrE; ++waferItr) {
161 std::pair<int, int> wp;
165 std::pair<int,int> lbn;
181 <<
" hits/secs now = "<< (
m_phvtripQueue[iwaf].back() / maxtbins )
#define ATH_CHECK
Evaluate an expression and check for errors.
header file for the SCTCalibUtilities
This is a "hash" representation of an Identifier.
std::vector< Identifier >::const_iterator const_id_iterator