#include <ISCT_CalibHistoTool.h>
|
| bool | init () |
| template<class T> |
| std::pair< std::string, bool > | retrievedTool (T &tool) const |
Definition at line 27 of file ISCT_CalibHistoTool.h.
◆ ISCT_CalibHistoTool()
| ISCT_CalibHistoTool::ISCT_CalibHistoTool |
( |
| ) |
|
◆ ~ISCT_CalibHistoTool()
| virtual ISCT_CalibHistoTool::~ISCT_CalibHistoTool |
( |
| ) |
|
|
virtualdefault |
◆ binHistograms()
| void ISCT_CalibHistoTool::binHistograms |
( |
const int | nLbMerged | ) |
|
Definition at line 60 of file ISCT_CalibHistoTool.cxx.
60 {
62 int yAxisBins{static_cast<int>(TMath::Ceil(1.0*nLb/nLbMerged))};
63
65 (*it)->SetBins(768, -0.5, 768+0.5, yAxisBins, 0.5, nLbMerged*yAxisBins+0.5);
66 }
67
68}
◆ book()
| virtual bool ISCT_CalibHistoTool::book |
( |
| ) |
|
|
pure virtual |
◆ DeclareInterfaceID()
◆ fill()
| virtual bool ISCT_CalibHistoTool::fill |
( |
const bool | fromData = false | ) |
|
|
pure virtual |
fill histograms from simulation
◆ fillFromData()
| virtual bool ISCT_CalibHistoTool::fillFromData |
( |
| ) |
|
|
pure virtual |
fill histograms from data
◆ getBinForHistogramIndex()
| double ISCT_CalibHistoTool::getBinForHistogramIndex |
( |
const int | bin, |
|
|
const int | histogramIndex ) const |
get bin content for bin in specific histogram
Definition at line 47 of file ISCT_CalibHistoTool.cxx.
47 {
48 TH1F* pHisto{
nullptr};
50 try {
52 result = pHisto->GetBinContent(bin);
53 } catch (const std::out_of_range& outOfRange) {
54
55 }
57}
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
◆ getNumberOfEventsInBin()
| int ISCT_CalibHistoTool::getNumberOfEventsInBin |
( |
const int | nbin | ) |
const |
|
virtual |
get number of events in a specific bin
Definition at line 22 of file ISCT_CalibHistoTool.cxx.
22 {
24 std::cout << "ERROR: a histogram pointer, m_numberOfEventsHisto, is zero" << std::endl;
25 return 0;
26}
◆ init()
| bool ISCT_CalibHistoTool::init |
( |
| ) |
|
|
protected |
◆ LbToMerge()
| int ISCT_CalibHistoTool::LbToMerge |
( |
| ) |
const |
◆ numberOfLb()
| int ISCT_CalibHistoTool::numberOfLb |
( |
| ) |
const |
◆ read()
| virtual bool ISCT_CalibHistoTool::read |
( |
const std::string & | fileName | ) |
|
|
pure virtual |
◆ retrievedTool()
template<class T>
| std::pair< std::string, bool > ISCT_CalibHistoTool::retrievedTool |
( |
T & | tool | ) |
const |
|
inlineprotected |
Definition at line 73 of file ISCT_CalibHistoTool.h.
73 {
74 if (
tool.retrieve().isFailure() )
return std::make_pair(std::string{
"Unable to retrieve "}+
tool.name(),
false);
75 return std::make_pair("", true);
76 }
◆ setLb()
| void ISCT_CalibHistoTool::setLb |
( |
const int | nLb | ) |
|
◆ setLbToMerge()
| void ISCT_CalibHistoTool::setLbToMerge |
( |
const int | nLbMerge | ) |
|
◆ setNumberOfLb()
| void ISCT_CalibHistoTool::setNumberOfLb |
( |
const int | nLb | ) |
|
◆ size() [1/2]
| int ISCT_CalibHistoTool::size |
( |
| ) |
const |
◆ size() [2/2]
| int ISCT_CalibHistoTool::size |
( |
const int | histogramIndex | ) |
const |
get the number of entries in a given histogram
Definition at line 34 of file ISCT_CalibHistoTool.cxx.
34 {
35 TH1F* pHisto{
nullptr};
37 try {
39 result = pHisto->GetEntries();
40 } catch (const std::out_of_range& outOfRange) {
41
42 }
44}
◆ m_lumiBlock
| int ISCT_CalibHistoTool::m_lumiBlock {0} |
|
protected |
◆ m_nLb
| int ISCT_CalibHistoTool::m_nLb {0} |
|
protected |
◆ m_nLbMerge
| int ISCT_CalibHistoTool::m_nLbMerge {0} |
|
protected |
◆ m_numberOfEventsHisto
| TH1I* ISCT_CalibHistoTool::m_numberOfEventsHisto {nullptr} |
|
protected |
◆ m_phistoVector
| std::vector<TH1F*> ISCT_CalibHistoTool::m_phistoVector |
|
protected |
◆ m_phistoVector2D
| std::vector<TH2F*> ISCT_CalibHistoTool::m_phistoVector2D |
|
protected |
◆ m_pSCTHelper
| const SCT_ID* ISCT_CalibHistoTool::m_pSCTHelper {nullptr} |
|
protected |
◆ m_thistSvc
| SmartIF<ITHistSvc> ISCT_CalibHistoTool::m_thistSvc {nullptr} |
|
protected |
The documentation for this class was generated from the following files: