#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 65 of file SCT_CalibHitmapTool.cxx.
68 m_phistoVector.clear();
69 std::string histoName{pathRoot +
"GENERAL/"};
71 m_numberOfEventsHisto =
new TH1I{
"events",
"Events", 1, 0.5, 1.5};
72 if (m_thistSvc->regHist(histoName.c_str(), m_numberOfEventsHisto).isFailure()) {
77 std::string hitmapPaths[3];
78 for (
int i{0};
i<3; ++
i) {
79 hitmapPaths[
i]=pathRoot+detectorPaths[
i];
82 const Identifier& waferId{*waferItr};
85 std::string histotitle{std::string{
"SCT "} + detectorNames[
bec2Index(
bec)] + std::string{
" Hitmap: plane "} + formattedPosition};
89 if (m_thistSvc->regHist(
name.c_str(), hitmapHisto_tmp ).isFailure()) {
92 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 157 of file SCT_CalibHitmapTool.cxx.
159 m_numberOfEventsHisto->Fill(1);
161 if (not prdoContainer.isValid())
ATH_MSG_ERROR(
"Failed to retrieve the SCT RDO container");
164 for (; itr !=
end; ++itr) {
166 if (not SCT_Collection)
continue;
167 const Identifier waferId{SCT_Collection->
identify()};
169 TH1F* pThisHisto{m_phistoVector[
static_cast<int>(waferHash)]};
172 for (; rdoItr != rdoEnd; ++rdoItr) {
174 const int endStrip{(*rdoItr)->getGroupSize() +
strip};
176 pThisHisto->Fill(
strip);
◆ finalize()
StatusCode SCT_CalibHitmapTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode SCT_CalibHitmapTool::initialize |
( |
| ) |
|
|
virtual |
Definition at line 42 of file SCT_CalibHitmapTool.cxx.
43 if ( service(
"THistSvc", m_thistSvc ).isFailure() )
ATH_MSG_ERROR(
"Unable to retrieve pointer to THistSvc");
54 return StatusCode::SUCCESS;
◆ read()
bool SCT_CalibHitmapTool::read |
( |
const std::string & |
fileName | ) |
|
|
virtual |
Definition at line 100 of file SCT_CalibHitmapTool.cxx.
103 m_phistoVector.clear();
104 TFile* fileHitmap{TFile::Open(
fileName.c_str())};
107 if (fileHitmap==
nullptr) {
112 m_numberOfEventsHisto =
static_cast<TH1I*
>(fileHitmap->Get(
"GENERAL/events"));
113 if (m_numberOfEventsHisto==
nullptr) {
119 const Identifier& waferId{*waferItr};
122 TH1F* hitmapHisto_tmp{
static_cast<TH1F*
>(fileHitmap->Get(
name.c_str()))};
123 if (hitmapHisto_tmp==
nullptr) {
126 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: