#include <SCT_CalibHvTool.h>
|
enum | {
n_chipPerSide = 6,
n_chipPerModule = 12,
n_stripPerChip = 128,
n_etaInBarrel = 12,
n_phiBinsB0 = 32,
n_phiBinsB1 = 40,
n_phiBinsB2 = 48,
n_phiBinsB3 = 56,
n_phiBinsECShort = 40,
n_phiBinsECMiddle = 40,
n_phiBinsECOuter = 52,
n_elements =8176,
n_BSErrorType = 15,
firstBSErrorType = 0,
lastBSErrorType = 14
} |
|
typedef std::vector< int > | VecInt |
|
Definition at line 38 of file SCT_CalibHvTool.h.
◆ VecInt
◆ anonymous enum
Enumerator |
---|
n_chipPerSide | |
n_chipPerModule | |
n_stripPerChip | |
n_etaInBarrel | |
n_phiBinsB0 | |
n_phiBinsB1 | |
n_phiBinsB2 | |
n_phiBinsB3 | |
n_phiBinsECShort | |
n_phiBinsECMiddle | |
n_phiBinsECOuter | |
n_elements | |
n_BSErrorType | |
firstBSErrorType | |
lastBSErrorType | |
Definition at line 57 of file SCT_CalibHvTool.h.
◆ SCT_CalibHvTool()
SCT_CalibHvTool::SCT_CalibHvTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SCT_CalibHvTool()
virtual SCT_CalibHvTool::~SCT_CalibHvTool |
( |
| ) |
|
|
virtualdefault |
◆ book()
bool SCT_CalibHvTool::book |
( |
| ) |
|
|
virtual |
◆ fill()
bool SCT_CalibHvTool::fill |
( |
const bool |
fromData = false | ) |
|
|
virtual |
calculate the limit for an individual module, limit is m_relativetriplimit (default = 4) times the running average in that module. limits are given in hits/second. need to convert numhits in bin to average (within bin) hits/sec.
Definition at line 62 of file SCT_CalibHvTool.cxx.
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) {
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 )
◆ fillFromData()
bool SCT_CalibHvTool::fillFromData |
( |
| ) |
|
|
virtual |
◆ finalize()
StatusCode SCT_CalibHvTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode SCT_CalibHvTool::initialize |
( |
| ) |
|
|
virtual |
◆ retrievedTool()
template<class T >
bool SCT_CalibHvTool::retrievedTool |
( |
T & |
tool, |
|
|
const std::string & |
toolName |
|
) |
| const |
|
inlineprivate |
retrieve a tool and report if it failed
Definition at line 94 of file SCT_CalibHvTool.h.
95 if (
tool.retrieve().isFailure()) {
◆ m_absolutetriplimit
double SCT_CalibHvTool::m_absolutetriplimit {0} |
|
private |
◆ m_DCSConditionsTool
◆ m_lowHitCut
int SCT_CalibHvTool::m_lowHitCut {100} |
|
private |
◆ m_maxq
int SCT_CalibHvTool::m_maxq {100} |
|
private |
◆ m_outputLowHits
bool SCT_CalibHvTool::m_outputLowHits {false} |
|
private |
◆ m_phvtripFirstTime
int SCT_CalibHvTool::m_phvtripFirstTime {0} |
|
private |
◆ m_phvtripHasItTripped
VecInt SCT_CalibHvTool::m_phvtripHasItTripped |
|
private |
◆ m_phvtripHasItTripped_prev
VecInt SCT_CalibHvTool::m_phvtripHasItTripped_prev |
|
private |
◆ m_phvtripPrevTime
int SCT_CalibHvTool::m_phvtripPrevTime {0} |
|
private |
◆ m_phvtripProcessedEventsInt
VecInt SCT_CalibHvTool::m_phvtripProcessedEventsInt |
|
private |
◆ m_phvtripQueue
std::vector<std::queue<int> > SCT_CalibHvTool::m_phvtripQueue |
|
private |
◆ m_phvtripRunningTotalInt
VecInt SCT_CalibHvTool::m_phvtripRunningTotalInt |
|
private |
◆ m_prevLBN
std::queue<int> SCT_CalibHvTool::m_prevLBN |
|
private |
◆ m_pSCTHelper
◆ m_relativetriplimit
double SCT_CalibHvTool::m_relativetriplimit {0} |
|
private |
◆ m_sct_numHitsInWafer
VecInt* SCT_CalibHvTool::m_sct_numHitsInWafer {nullptr} |
|
private |
◆ m_sct_waferHash
VecInt* SCT_CalibHvTool::m_sct_waferHash {nullptr} |
|
private |
◆ m_summarytrips
std::vector<std::vector<std::pair<int, int> > > SCT_CalibHvTool::m_summarytrips |
|
private |
◆ m_summarytripslb
std::vector<std::vector<std::pair<int, int> > > SCT_CalibHvTool::m_summarytripslb |
|
private |
◆ m_tq
int SCT_CalibHvTool::m_tq[100] {0} |
|
private |
◆ m_waferItrBegin
◆ m_waferItrEnd
The documentation for this class was generated from the following files:
Identifier wafer_id(int barrel_ec, int layer_disk, int phi_module, int eta_module, int side) const
For a single side of module.