#include <SCT_CalibHitmapTool.h>
|
typedef std::vector< int > | VecInt |
|
Definition at line 35 of file SCT_CalibHitmapTool.h.
◆ VecInt
◆ SCT_CalibHitmapTool()
SCT_CalibHitmapTool::SCT_CalibHitmapTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SCT_CalibHitmapTool()
virtual SCT_CalibHitmapTool::~SCT_CalibHitmapTool |
( |
| ) |
|
|
virtualdefault |
◆ book()
bool SCT_CalibHitmapTool::book |
( |
| ) |
|
|
virtual |
Definition at line 66 of file SCT_CalibHitmapTool.cxx.
69 m_phistoVector.clear();
70 std::string histoName{pathRoot +
"GENERAL/"};
72 m_numberOfEventsHisto =
new TH1I{
"events",
"Events", 1, 0.5, 1.5};
73 if (m_thistSvc->regHist(histoName.c_str(), m_numberOfEventsHisto).isFailure()) {
78 std::string hitmapPaths[3];
79 for (
int i{0};
i<3; ++
i) {
80 hitmapPaths[
i]=pathRoot+detectorPaths[
i];
86 std::string histotitle{std::string{
"SCT "} + detectorNames[
bec2Index(
bec)] + std::string{
" Hitmap: plane "} + formattedPosition};
90 if (m_thistSvc->regHist(
name.c_str(), hitmapHisto_tmp ).isFailure()) {
93 m_phistoVector.push_back(hitmapHisto_tmp);
◆ fill()
bool SCT_CalibHitmapTool::fill |
( |
const bool |
fromData = false | ) |
|
|
virtual |
◆ fillFromData()
bool SCT_CalibHitmapTool::fillFromData |
( |
| ) |
|
|
virtual |
Definition at line 158 of file SCT_CalibHitmapTool.cxx.
160 m_numberOfEventsHisto->Fill(1);
162 if (not prdoContainer.isValid())
ATH_MSG_ERROR(
"Failed to retrieve the SCT RDO container");
165 for (; itr !=
end; ++itr) {
167 if (not SCT_Collection)
continue;
168 const Identifier waferId{SCT_Collection->identify()};
170 TH1F* pThisHisto{m_phistoVector[
static_cast<int>(waferHash)]};
173 for (; rdoItr != rdoEnd; ++rdoItr) {
175 const int endStrip{(*rdoItr)->getGroupSize() +
strip};
177 pThisHisto->Fill(
strip);
◆ finalize()
StatusCode SCT_CalibHitmapTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode SCT_CalibHitmapTool::initialize |
( |
| ) |
|
|
virtual |
◆ read()
bool SCT_CalibHitmapTool::read |
( |
const std::string & |
fileName | ) |
|
|
virtual |
Definition at line 101 of file SCT_CalibHitmapTool.cxx.
104 m_phistoVector.clear();
105 TFile* fileHitmap{TFile::Open(
fileName.c_str())};
108 if (fileHitmap==
nullptr) {
113 m_numberOfEventsHisto =
static_cast<TH1I*
>(fileHitmap->Get(
"GENERAL/events"));
114 if (m_numberOfEventsHisto==
nullptr) {
123 TH1F* hitmapHisto_tmp{
static_cast<TH1F*
>(fileHitmap->Get(
name.c_str()))};
124 if (hitmapHisto_tmp==
nullptr) {
127 m_phistoVector.push_back(hitmapHisto_tmp);
◆ m_pSCTHelper
const SCT_ID* SCT_CalibHitmapTool::m_pSCTHelper {nullptr} |
|
private |
◆ m_rdoContainerKey
◆ m_sct_firstStrip
VecInt SCT_CalibHitmapTool::m_sct_firstStrip |
|
private |
◆ m_sct_rdoGroupSize
VecInt SCT_CalibHitmapTool::m_sct_rdoGroupSize |
|
private |
◆ m_sct_waferHash
VecInt SCT_CalibHitmapTool::m_sct_waferHash |
|
private |
◆ m_waferItrBegin
◆ m_waferItrEnd
The documentation for this class was generated from the following files: