#include <SCT_CalibBsErrorTool.h>
|
typedef std::vector< int > | VecInt |
|
Definition at line 31 of file SCT_CalibBsErrorTool.h.
◆ VecInt
◆ SCT_CalibBsErrorTool()
SCT_CalibBsErrorTool::SCT_CalibBsErrorTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SCT_CalibBsErrorTool()
virtual SCT_CalibBsErrorTool::~SCT_CalibBsErrorTool |
( |
| ) |
|
|
virtualdefault |
◆ book()
bool SCT_CalibBsErrorTool::book |
( |
| ) |
|
|
virtual |
Definition at line 64 of file SCT_CalibBsErrorTool.cxx.
66 m_phistoVector.clear();
67 std::string histoName{pathRoot+
"GENERAL/"};
69 m_numberOfEventsHisto =
new TH1I{
"events",
"Events", 1, 0.5, 1.5};
70 if (m_thistSvc->regHist(histoName.c_str(), m_numberOfEventsHisto ).isFailure()) {
76 for (; waferItr not_eq waferItrE; ++waferItr) {
80 std::string histotitle{std::string{
"SCT "} + detectorNames[
bec2Index(
bec)] + std::string{
" BSErrors : plane "} + formattedPosition};
82 TH1F* hitmapHisto_tmp{
new TH1F{TString{formattedPosition}, TString{histotitle}, n_BSErrorType, firstBSErrorType-0.5, lastBSErrorType+0.5}};
83 if (m_thistSvc->regHist(
name.c_str(), hitmapHisto_tmp).isFailure()) {
86 m_phistoVector.push_back(hitmapHisto_tmp);
◆ fill()
bool SCT_CalibBsErrorTool::fill |
( |
const bool |
fromData = false | ) |
|
|
virtual |
Definition at line 133 of file SCT_CalibBsErrorTool.cxx.
139 m_numberOfEventsHisto->Fill( 1 );
142 for (
int i{0};
i != maxEntry; ++
i ) {
143 int bec{(*m_scterr_bec)[
i]};
144 int layer{(*m_scterr_layer)[
i]};
145 int phi{(*m_scterr_phi)[
i]};
146 int eta{(*m_scterr_eta)[
i]};
147 int side{(*m_scterr_side)[
i]};
148 int type{(*m_scterr_type)[
i]};
◆ fillBsErrorsForWafer()
Definition at line 173 of file SCT_CalibBsErrorTool.cxx.
177 if ( iWaferHash < 0 || iWaferHash >=
m_maxHash ) {
178 ATH_MSG_WARNING(
"WaferHash " << iWaferHash <<
" is out of range : [ bec.layer.eta.phi.side, BSErrorType ] = [ " << osWafer <<
", " <<
type <<
" ]");
180 ATH_MSG_DEBUG(
"BSError : [ bec.layer.eta.phi.side, Type ] = [ " << osWafer<<
", " <<
type <<
" ]");
181 m_phistoVector[ iWaferHash ]->Fill(
type );
◆ fillFromData()
bool SCT_CalibBsErrorTool::fillFromData |
( |
| ) |
|
|
virtual |
Definition at line 156 of file SCT_CalibBsErrorTool.cxx.
159 m_numberOfEventsHisto->Fill( 1 );
161 const EventContext& ctx{Gaudi::Hive::currentContext()};
164 for(
const auto& idHash : errorSet) {
◆ finalize()
StatusCode SCT_CalibBsErrorTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode SCT_CalibBsErrorTool::initialize |
( |
| ) |
|
|
virtual |
◆ read()
bool SCT_CalibBsErrorTool::read |
( |
const std::string & |
fileName | ) |
|
|
virtual |
Definition at line 92 of file SCT_CalibBsErrorTool.cxx.
95 m_phistoVector.clear();
96 TFile* fileHitmap{TFile::Open(
fileName.c_str())};
99 if (fileHitmap==
nullptr) {
104 m_numberOfEventsHisto =
static_cast<TH1I*
>(fileHitmap->Get(
"GENERAL/events"));
105 if (m_numberOfEventsHisto==
nullptr) {
114 TH1F* hitmapHisto_tmp{
static_cast<TH1F*
>(fileHitmap->Get(
name.c_str()))};
115 if (hitmapHisto_tmp==
nullptr) {
118 m_phistoVector.push_back(hitmapHisto_tmp);
◆ m_bytestreamErrorsTool
◆ m_maxHash
int SCT_CalibBsErrorTool::m_maxHash {0} |
|
private |
◆ m_pSCTHelper
const SCT_ID* SCT_CalibBsErrorTool::m_pSCTHelper {nullptr} |
|
private |
◆ m_scterr_bec
VecInt* SCT_CalibBsErrorTool::m_scterr_bec {nullptr} |
|
private |
◆ m_scterr_eta
VecInt* SCT_CalibBsErrorTool::m_scterr_eta {nullptr} |
|
private |
◆ m_scterr_layer
VecInt* SCT_CalibBsErrorTool::m_scterr_layer {nullptr} |
|
private |
◆ m_scterr_phi
VecInt* SCT_CalibBsErrorTool::m_scterr_phi {nullptr} |
|
private |
◆ m_scterr_side
VecInt* SCT_CalibBsErrorTool::m_scterr_side {nullptr} |
|
private |
◆ m_scterr_type
VecInt* SCT_CalibBsErrorTool::m_scterr_type {nullptr} |
|
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.