|
ATLAS Offline Software
|
class holding res plots for Inner Detector RTT Validation and implementing fill methods
More...
#include <InDetPerfPlot_HitResidual.h>
|
| InDetPerfPlot_HitResidual (InDetPlotBase *pParent, const std::string &dirName) |
|
void | fill (const xAOD::TrackParticle &trkprt, float weight) |
|
| ~InDetPerfPlot_HitResidual () |
|
SingleHistogramDefinition | retrieveDefinition (const std::string &histoIdentifier, const std::string &folder="default", const std::string &nameOverride="") |
| Retrieve a single histogram definition, given the unique string identifier. More...
|
|
template<class Htype > |
void | book (Htype *&pHisto, const std::string &histoIdentifier, const std::string &nameOverride="", const std::string &folder="default") |
| Helper method to book histograms using an identifier string. More...
|
|
void | book (TH1 *&pHisto, const SingleHistogramDefinition &hd) |
| Book a TH1 histogram. More...
|
|
void | book (TProfile *&pHisto, const SingleHistogramDefinition &hd) |
| Book a TProfile histogram. More...
|
|
void | book (TProfile2D *&pHisto, const SingleHistogramDefinition &hd) |
| Book a TProfile2D histogram. More...
|
|
void | book (TH2 *&pHisto, const SingleHistogramDefinition &hd) |
| Book a 2D histogram (TH2) More...
|
|
void | book (TEfficiency *&pHisto, const SingleHistogramDefinition &hd) |
| Book a (1-D) TEfficiency. More...
|
|
void | initialize () |
|
void | finalize () |
|
void | setDetailLevel (int iDetailLevel) |
|
void | RegisterSubPlot (PlotBase *pPlotBase) |
|
std::vector< HistData > | retrieveBookedHistograms () |
| Retrieve all booked histograms. More...
|
|
std::vector< TreeData > | retrieveBookedTrees () |
| Retrieve all booked trees. More...
|
|
std::vector< EfficiencyData > | retrieveBookedEfficiencies () |
| Retrieve all booked efficiency objects. More...
|
|
TTree * | BookTree (const std::string &name, bool prependDir=true) |
| Book a TTree. More...
|
|
std::string | getDirectory () |
|
bool | msgLvl (const MSG::Level lvl) const |
| Test the output level. More...
|
|
MsgStream & | msg () const |
| The standard message stream. More...
|
|
MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. More...
|
|
void | setLevel (MSG::Level lvl) |
| Change the current logging level. More...
|
|
|
static void | fillHisto (TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0) |
|
static void | fillHisto (TProfile2D *pTprofile, const float xval, const float yval, const float weight, const float weight2=1.0) |
|
static void | fillHisto (TH1 *pTh1, const float value) |
|
static void | fillHisto (TH1 *pTh1, const float value, const float weight) |
|
static void | fillHisto (TH2 *pTh2, const float xval, const float yval) |
|
static void | fillHisto (TH2 *pTh2, const float xval, const float yval, const float weight) |
|
static void | fillHisto (TH3 *pTh3, const float xval, const float yval, const float zval) |
|
static void | fillHisto (TEfficiency *pTeff, const float value, const bool accepted, float weight) |
|
static void | fillHisto (TEfficiency *eff2d, const float xvalue, const float yvalue, const bool accepted, const float weight) |
|
|
template<class T > |
void | mBook (T &pHisto, const std::string &histoIdentifier) |
| book, for use by macro More...
|
|
|
std::vector< std::vector< TH1 * > > | m_residualx_1hit = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_residualx_2ormorehits = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_residualx = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_residualx_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_residualy_1hit = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_residualy_2ormorehits = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_residualy = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_residualy_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_pullx = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_pully = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_pullx_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_pully_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_phiWidth = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH1 * > > | m_etaWidth = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_phiWidth_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< std::vector< TH2 * > > | m_etaWidth_eta = {N_SUBDETECTORS, {N_REGIONS, nullptr}} |
|
std::vector< TProfile * > | m_phiWidthEta = {N_SUBDETECTORS, nullptr} |
|
std::vector< TProfile * > | m_etaWidthEta = {N_SUBDETECTORS, nullptr} |
|
std::atomic< int > | m_warnCount {0} |
|
IHistogramDefinitionSvc * | m_histoDefSvc |
|
std::string | m_nm |
| Message source name. More...
|
|
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) More...
|
|
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. More...
|
|
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. More...
|
|
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) More...
|
|
class holding res plots for Inner Detector RTT Validation and implementing fill methods
Definition at line 33 of file InDetPerfPlot_HitResidual.h.
◆ Region
◆ Subdetector
◆ InDetPerfPlot_HitResidual()
InDetPerfPlot_HitResidual::InDetPerfPlot_HitResidual |
( |
InDetPlotBase * |
pParent, |
|
|
const std::string & |
dirName |
|
) |
| |
◆ ~InDetPerfPlot_HitResidual()
InDetPerfPlot_HitResidual::~InDetPerfPlot_HitResidual |
( |
| ) |
|
|
inline |
◆ book() [1/6]
template<class Htype >
void InDetPlotBase::book |
( |
Htype *& |
pHisto, |
|
|
const std::string & |
histoIdentifier, |
|
|
const std::string & |
nameOverride = "" , |
|
|
const std::string & |
folder = "default" |
|
) |
| |
|
inherited |
Helper method to book histograms using an identifier string.
- Parameters
-
pHisto | Pointer to the histogram to be booked (assumed to be initialized to nullptr) |
histoIdentifier | Identifier (looked up in the XML file) |
nameOverride | Allows to override the histo name w.r.t the identifier. Leave empty for no override. This can be used to instantiate multiple, identically binned plots from a single entry in the XML. |
folder | Folder to place the plot (if any) |
◆ book() [2/6]
◆ book() [3/6]
◆ book() [4/6]
◆ book() [5/6]
◆ book() [6/6]
◆ Book1D() [1/2]
TH1F * PlotBase::Book1D |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBins, |
|
|
float |
start, |
|
|
float |
end, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH1D histogram.
Definition at line 88 of file PlotBase.cxx.
91 Bool_t oldstat = TH1::AddDirectoryStatus();
92 TH1::AddDirectory(
false);
94 TH1::AddDirectory(oldstat);
◆ Book1D() [2/2]
TH1F * PlotBase::Book1D |
( |
const std::string & |
name, |
|
|
TH1 * |
refHist, |
|
|
const std::string & |
labels, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH1D histogram using refHist as reference for number of bins and axis range.
Definition at line 102 of file PlotBase.cxx.
104 Bool_t oldstat = TH1::AddDirectoryStatus();
105 TH1::AddDirectory(
false);
107 refHist->GetXaxis()->GetXbins()->GetArray());
109 TH1::AddDirectory(oldstat);
◆ Book2D() [1/3]
TH2F * PlotBase::Book2D |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
Double_t * |
binsX, |
|
|
int |
nBinsY, |
|
|
Double_t |
startY, |
|
|
Double_t |
endY, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH2D histogram with variable x axis binning.
Definition at line 138 of file PlotBase.cxx.
141 Bool_t oldstat = TH2::AddDirectoryStatus();
142 TH2::AddDirectory(
false);
145 TH2::AddDirectory(oldstat);
◆ Book2D() [2/3]
TH2F * PlotBase::Book2D |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
float |
startX, |
|
|
float |
endX, |
|
|
int |
nBinsY, |
|
|
float |
startY, |
|
|
float |
endY, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH2D histogram.
Definition at line 117 of file PlotBase.cxx.
120 Bool_t oldstat = TH2::AddDirectoryStatus();
121 TH2::AddDirectory(
false);
124 TH2::AddDirectory(oldstat);
◆ Book2D() [3/3]
TH2F * PlotBase::Book2D |
( |
const std::string & |
name, |
|
|
TH2 * |
refHist, |
|
|
const std::string & |
labels, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH2D histogram using refHist as reference for number of bins and axis range.
Definition at line 132 of file PlotBase.cxx.
133 return Book2D(
name,
labels, refHist->GetNbinsX(), refHist->GetXaxis()->GetXmin(), refHist->GetXaxis()->GetXmax(),
134 refHist->GetNbinsY(), refHist->GetYaxis()->GetXmin(), refHist->GetYaxis()->GetXmax(), prependDir);
◆ Book3D() [1/2]
TH3F * PlotBase::Book3D |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
float |
startX, |
|
|
float |
endX, |
|
|
int |
nBinsY, |
|
|
float |
startY, |
|
|
float |
endY, |
|
|
int |
nBinsZ, |
|
|
float |
startZ, |
|
|
float |
endZ, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH3D histogram.
Definition at line 151 of file PlotBase.cxx.
154 Bool_t oldstat = TH3::AddDirectoryStatus();
155 TH3::AddDirectory(
false);
157 labels.c_str(), nBinsX, startX, endX, nBinsY, startY, endY, nBinsZ, startZ, endZ);
159 TH3::AddDirectory(oldstat);
◆ Book3D() [2/2]
TH3F * PlotBase::Book3D |
( |
const std::string & |
name, |
|
|
TH3 * |
refHist, |
|
|
const std::string & |
labels, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TH3D histogram using refHist as reference for number of bins and axis range.
Definition at line 165 of file PlotBase.cxx.
167 Bool_t oldstat = TH3::AddDirectoryStatus();
168 TH3::AddDirectory(
false);
170 refHist->GetXaxis()->GetXbins()->GetArray(), refHist->GetNbinsY(),
171 refHist->GetYaxis()->GetXbins()->GetArray(), refHist->GetNbinsZ(),
172 refHist->GetZaxis()->GetXbins()->GetArray());
173 TH3::AddDirectory(oldstat);
◆ BookTEfficiency() [1/2]
TEfficiency * PlotBase::BookTEfficiency |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
const int |
nBinsX, |
|
|
const float |
xlo, |
|
|
const float |
xhi, |
|
|
const bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a (1-D) TEfficiency histogram.
Definition at line 251 of file PlotBase.cxx.
257 hist->SetDirectory(
nullptr);
◆ BookTEfficiency() [2/2]
TEfficiency * PlotBase::BookTEfficiency |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
const int |
nBinsX, |
|
|
const float |
xlo, |
|
|
const float |
xhi, |
|
|
const int |
nBinsy, |
|
|
const float |
ylo, |
|
|
const float |
yhi, |
|
|
const bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a (2-D) TEfficiency histogram.
Definition at line 264 of file PlotBase.cxx.
268 hist->SetDirectory(
nullptr);
◆ BookTProfile() [1/2]
TProfile * PlotBase::BookTProfile |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
float * |
binsX, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TProfile histogram with variable binning in x-axis.
Definition at line 198 of file PlotBase.cxx.
201 Bool_t oldstat = TProfile::AddDirectoryStatus();
202 TProfile::AddDirectory(
false);
205 TProfile::AddDirectory(oldstat);
◆ BookTProfile() [2/2]
TProfile * PlotBase::BookTProfile |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
float |
startX, |
|
|
float |
endX, |
|
|
float |
startY = -1 , |
|
|
float |
endY = -1 , |
|
|
bool |
prependDir = true , |
|
|
bool |
useRMS = false |
|
) |
| |
|
inherited |
Book a TProfile histogram.
Definition at line 180 of file PlotBase.cxx.
184 Bool_t oldstat = TProfile::AddDirectoryStatus();
185 TProfile::AddDirectory(
false);
186 std::string
opt = useRMS ?
"S" :
"";
187 if ((startY == -1) and (endY == -1)) {
192 TProfile::AddDirectory(oldstat);
◆ BookTProfile2D() [1/2]
Book a TProfile 2D histogram with variable binning in x-axis and limits in y-values.
Definition at line 225 of file PlotBase.cxx.
229 Bool_t oldstat = TProfile2D::AddDirectoryStatus();
230 TProfile2D::AddDirectory(
false);
231 std::string
opt = useRMS ?
"S" :
"";
233 TProfile2D::AddDirectory(oldstat);
◆ BookTProfile2D() [2/2]
TProfile2D * PlotBase::BookTProfile2D |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
const int |
nBinsX, |
|
|
double * |
binsX, |
|
|
const int |
nBinsY, |
|
|
double * |
binsY, |
|
|
bool |
prependDir = true , |
|
|
bool |
useRMS = false |
|
) |
| |
|
inherited |
Book a TProfile 2D histogram with variable binning in x-axis and limits in y-values.
Definition at line 239 of file PlotBase.cxx.
241 Bool_t oldstat = TProfile2D::AddDirectoryStatus();
242 TProfile2D::AddDirectory(
false);
243 std::string
opt = useRMS ?
"S" :
"";
245 TProfile2D::AddDirectory(oldstat);
◆ BookTProfileRangeY()
TProfile * PlotBase::BookTProfileRangeY |
( |
const std::string & |
name, |
|
|
const std::string & |
labels, |
|
|
int |
nBinsX, |
|
|
double * |
binsX, |
|
|
double |
startY, |
|
|
double |
endY, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TProfile histogram with variable binning in x-axis and limits in y-values.
Definition at line 211 of file PlotBase.cxx.
215 Bool_t oldstat = TProfile::AddDirectoryStatus();
216 TProfile::AddDirectory(
false);
219 TProfile::AddDirectory(oldstat);
◆ BookTree()
TTree * PlotBase::BookTree |
( |
const std::string & |
name, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TTree.
Definition at line 275 of file PlotBase.cxx.
279 tree->SetAutoSave(0);
280 tree->SetAutoFlush(0);
281 tree->SetDirectory(
nullptr);
◆ constructPrefix()
std::string PlotBase::constructPrefix |
( |
std::string |
dir, |
|
|
bool |
prependDir |
|
) |
| |
|
staticprivateinherited |
◆ fill()
Definition at line 130 of file InDetPerfPlot_HitResidual.cxx.
132 measurement_regionAcc(
"measurement_region");
133 const static bool hitDetailsAvailable = measurement_regionAcc.isAvailable(trkprt);
135 if (!hitDetailsAvailable) {
137 ATH_MSG_WARNING(
"The hit res plots dont see any data (note:only 10 warnings issued)");
141 const std::vector<int>& result_det = measurement_detAcc(trkprt);
143 if (!result_det.empty()) {
153 const std::vector<int>& result_measureType = measurement_typeAcc(trkprt);
154 const std::vector<int>& result_region = measurement_regionAcc(trkprt);
156 const std::vector<float>& result_residualLocX = hitResiduals_residualLocXAcc(trkprt);
157 const std::vector<float>& result_pullLocX = hitResiduals_pullLocXAcc(trkprt);
158 const std::vector<float>& result_residualLocY = hitResiduals_residualLocYAcc(trkprt);
159 const std::vector<float>& result_pullLocY = hitResiduals_pullLocYAcc(trkprt);
160 const std::vector<int>& result_phiWidth = hitResiduals_phiWidthAcc(trkprt);
161 const std::vector<int>& result_etaWidth = hitResiduals_etaWidthAcc(trkprt);
163 const float eta = trkprt.
eta();
166 if (result_det.size() != result_residualLocX.size()) {
169 const auto resultSize = result_region.size();
170 for (
unsigned int idx = 0;
idx < resultSize; ++
idx) {
171 const int measureType = result_measureType[
idx];
172 if (measureType != 4) {
175 const int det = result_det[
idx];
176 const int region = result_region[
idx];
178 const int width = result_phiWidth[
idx];
179 const int etaWidth = result_etaWidth[
idx];
180 const float residualLocX = result_residualLocX[
idx];
181 const float pullLocX = result_pullLocX[
idx];
182 const float residualLocY = result_residualLocY[
idx];
183 const float pullLocY = result_pullLocY[
idx];
204 const bool hasYCoordinate = (
det !=
SCT)and(
det !=
TRT);
210 if (hasYCoordinate) {
223 if (hasYCoordinate) {
228 if (hasYCoordinate) {
◆ fillHisto() [1/9]
void InDetPlotBase::fillHisto |
( |
TEfficiency * |
eff2d, |
|
|
const float |
xvalue, |
|
|
const float |
yvalue, |
|
|
const bool |
accepted, |
|
|
const float |
weight |
|
) |
| |
|
staticinherited |
Definition at line 145 of file InDetPlotBase.cxx.
146 if (eff2d and validArguments(xvalue, yvalue)) {
147 if(
weight==1.) eff2d->Fill(accepted, xvalue, yvalue);
148 else eff2d->FillWeighted(accepted,
weight, xvalue, yvalue);
◆ fillHisto() [2/9]
void InDetPlotBase::fillHisto |
( |
TEfficiency * |
pTeff, |
|
|
const float |
value, |
|
|
const bool |
accepted, |
|
|
float |
weight |
|
) |
| |
|
staticinherited |
◆ fillHisto() [3/9]
void InDetPlotBase::fillHisto |
( |
TH1 * |
pTh1, |
|
|
const float |
value |
|
) |
| |
|
staticinherited |
◆ fillHisto() [4/9]
void InDetPlotBase::fillHisto |
( |
TH1 * |
pTh1, |
|
|
const float |
value, |
|
|
const float |
weight |
|
) |
| |
|
staticinherited |
◆ fillHisto() [5/9]
void InDetPlotBase::fillHisto |
( |
TH2 * |
pTh2, |
|
|
const float |
xval, |
|
|
const float |
yval |
|
) |
| |
|
staticinherited |
◆ fillHisto() [6/9]
void InDetPlotBase::fillHisto |
( |
TH2 * |
pTh2, |
|
|
const float |
xval, |
|
|
const float |
yval, |
|
|
const float |
weight |
|
) |
| |
|
staticinherited |
◆ fillHisto() [7/9]
void InDetPlotBase::fillHisto |
( |
TH3 * |
pTh3, |
|
|
const float |
xval, |
|
|
const float |
yval, |
|
|
const float |
zval |
|
) |
| |
|
staticinherited |
◆ fillHisto() [8/9]
void InDetPlotBase::fillHisto |
( |
TProfile * |
pTprofile, |
|
|
const float |
bin, |
|
|
const float |
weight, |
|
|
const float |
weight2 = 1.0 |
|
) |
| |
|
staticinherited |
◆ fillHisto() [9/9]
◆ finalize()
void PlotBase::finalize |
( |
| ) |
|
|
inherited |
◆ finalizePlots()
virtual void PlotBase::finalizePlots |
( |
| ) |
|
|
inlineprivatevirtualinherited |
Reimplemented in TCCPlots, JetTagDQA::BTaggingValidationPlots, InDetPerfPlot_VertexTruthMatching, ZeeValidation::ReconElectronsPlots, InDetPerfPlot_Efficiency, InDetPerfPlot_Resolution, InDetPerfPlot_TRTExtension, InDetPerfPlot_TrackParameters, ZeeValidation::TrueElectronsPlots, ZeeValidation::TrueFwdElectronsPlots, IDTPM::OfflineElectronPlots, InDetPerfPlot_FakeRate, IDTPM::EfficiencyPlots, IDTPM::TrackParametersPlots, InDetPerfPlot_Duplicate, InDetBasicPlot, and Trk::EfficiencyPlots.
Definition at line 91 of file PlotBase.h.
◆ getDirectory()
std::string PlotBase::getDirectory |
( |
| ) |
|
|
inlineinherited |
◆ initialize()
void PlotBase::initialize |
( |
| ) |
|
|
inherited |
◆ initializePlots()
void InDetPerfPlot_HitResidual::initializePlots |
( |
| ) |
|
|
privatevirtual |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ mBook()
template<class T >
void InDetPlotBase::mBook |
( |
T & |
pHisto, |
|
|
const std::string & |
histoIdentifier |
|
) |
| |
|
inlineprotectedinherited |
book, for use by macro
Definition at line 81 of file InDetPlotBase.h.
82 return book(pHisto, histoIdentifier.substr(2));
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ RegisterSubPlot()
void PlotBase::RegisterSubPlot |
( |
PlotBase * |
pPlotBase | ) |
|
|
inlineinherited |
◆ retrieveBookedEfficiencies()
std::vector< EfficiencyData > PlotBase::retrieveBookedEfficiencies |
( |
| ) |
|
|
inherited |
Retrieve all booked efficiency objects.
Definition at line 77 of file PlotBase.cxx.
80 std::vector<EfficiencyData> subNodeHists = subNode->retrieveBookedEfficiencies();
81 vBookedEfficiencies.insert(vBookedEfficiencies.end(), subNodeHists.begin(), subNodeHists.end());
83 return vBookedEfficiencies;
◆ retrieveBookedHistograms()
std::vector< HistData > PlotBase::retrieveBookedHistograms |
( |
| ) |
|
|
inherited |
Retrieve all booked histograms.
Definition at line 57 of file PlotBase.cxx.
60 std::vector<HistData> subNodeHists = subNode->retrieveBookedHistograms();
61 vBookedHistograms.insert(vBookedHistograms.end(), subNodeHists.begin(), subNodeHists.end());
63 return vBookedHistograms;
◆ retrieveBookedTrees()
std::vector< TreeData > PlotBase::retrieveBookedTrees |
( |
| ) |
|
|
inherited |
Retrieve all booked trees.
Definition at line 67 of file PlotBase.cxx.
70 std::vector<TreeData> subNodeTrees = subNode->retrieveBookedTrees();
71 vBookedTrees.insert(vBookedTrees.end(), subNodeTrees.begin(), subNodeTrees.end());
◆ retrieveDefinition()
Retrieve a single histogram definition, given the unique string identifier.
Definition at line 154 of file InDetPlotBase.cxx.
158 ISvcLocator* svcLoc = Gaudi::svcLocator();
160 if (
sc.isFailure()) {
161 ATH_MSG_FATAL(
"failed to retrieve HistogramDefinitionSvc in " << __FILE__);
162 throw std::runtime_error(
"Could initialise the HistogramDefinitionSvc");
166 bool folderDefault = (
folder.empty() or
folder ==
"default");
169 if (folderDefault and
s.empty()) {
170 const std::string otherDefault = (
folder.empty()) ? (
"default") :
"";
174 ATH_MSG_WARNING(
"Histogram definition is empty for identifier " << histoIdentifier);
176 if (!nameOverride.empty()){
177 s.name = nameOverride;
◆ setDetailLevel()
void PlotBase::setDetailLevel |
( |
int |
iDetailLevel | ) |
|
|
inherited |
Definition at line 49 of file PlotBase.cxx.
51 subNode->setDetailLevel(iDetailLevel);
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_etaWidth
◆ m_etaWidth_eta
◆ m_etaWidthEta
◆ m_histoDefSvc
◆ m_iDetailLevel
int PlotBase::m_iDetailLevel |
|
protectedinherited |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_phiWidth
◆ m_phiWidth_eta
◆ m_phiWidthEta
◆ m_pullx
◆ m_pullx_eta
◆ m_pully
◆ m_pully_eta
◆ m_residualx
◆ m_residualx_1hit
◆ m_residualx_2ormorehits
◆ m_residualx_eta
◆ m_residualy
◆ m_residualy_1hit
◆ m_residualy_2ormorehits
◆ m_residualy_eta
◆ m_sDirectory
std::string PlotBase::m_sDirectory |
|
protectedinherited |
◆ m_vBookedEfficiencies
◆ m_vBookedHistograms
std::vector<HistData> PlotBase::m_vBookedHistograms |
|
protectedinherited |
◆ m_vBookedTrees
std::vector<TreeData> PlotBase::m_vBookedTrees |
|
protectedinherited |
◆ m_vSubNodes
std::vector<PlotBase*> PlotBase::m_vSubNodes |
|
protectedinherited |
◆ m_warnCount
std::atomic<int> InDetPerfPlot_HitResidual::m_warnCount {0} |
|
mutableprivate |
The documentation for this class was generated from the following files:
std::atomic< MSG::Level > m_lvl
Current logging level.
static std::string constructPrefix(std::string dir, bool prependDir)
std::string replace(std::string s, const std::string &s2, const std::string &s3)
std::vector< HistData > m_vBookedHistograms
TH1F * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
void book(Htype *&pHisto, const std::string &histoIdentifier, const std::string &nameOverride="", const std::string &folder="default")
Helper method to book histograms using an identifier string.
std::vector< std::vector< TH2 * > > m_residualy_eta
std::vector< std::vector< TH1 * > > m_residualx
std::vector< std::vector< TH2 * > > m_etaWidth_eta
Scalar eta() const
pseudorapidity method
virtual double eta() const override final
The pseudorapidity ( ) of the particle.
std::atomic< int > m_warnCount
std::vector< std::vector< TH1 * > > m_pullx
virtual void initializePlots()
std::vector< EfficiencyData > m_vBookedEfficiencies
TEfficiency * BookTEfficiency(const std::string &name, const std::string &labels, const int nBinsX, const float xlo, const float xhi, const bool prependDir=true)
Book a (1-D) TEfficiency histogram.
TH2F * Book2D(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, int nBinsY, float startY, float endY, bool prependDir=true)
Book a TH2D histogram.
std::vector< TProfile * > m_phiWidthEta
Helper class to provide constant type-safe access to aux data.
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
IMessageSvc * getMessageSvc(bool quiet=false)
TProfile2D * BookTProfile2D(const std::string &name, const std::string &labels, const int nBinsX, const double xlo, const double xhi, const int nBinsY, const double ylo, const double yhi, bool prependDir=true, bool useRMS=false)
Book a TProfile 2D histogram with variable binning in x-axis and limits in y-values.
std::vector< std::vector< TH2 * > > m_phiWidth_eta
std::vector< std::vector< TH1 * > > m_residualy
std::vector< std::vector< TH1 * > > m_residualy_2ormorehits
IHistogramDefinitionSvc::axesLimits_t xAxis
std::vector< TProfile * > m_etaWidthEta
std::vector< PlotBase * > m_vSubNodes
int Fill(double, double, double)
std::vector< std::vector< TH2 * > > m_pully_eta
std::vector< std::vector< TH1 * > > m_residualx_1hit
std::vector< std::vector< TH2 * > > m_residualx_eta
def TProfile(*args, **kwargs)
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< std::vector< TH1 * > > m_phiWidth
int Fill(double, double, double)
virtual SingleHistogramDefinition definition(const std::string &name, const std::string &dirName="") const =0
Return a histogram definition, retrieved by histogram identifier (and directory name,...
MsgStream & msg() const
The standard message stream.
IHistogramDefinitionSvc * m_histoDefSvc
Almost-a-struct for holding the single histogram definition.
std::vector< std::vector< TH1 * > > m_etaWidth
std::vector< std::vector< TH1 * > > m_pully
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
std::vector< std::vector< TH1 * > > m_residualy_1hit
std::vector< std::vector< TH2 * > > m_pullx_eta
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
TProfile * BookTProfile(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, float startY=-1, float endY=-1, bool prependDir=true, bool useRMS=false)
Book a TProfile histogram.
IHistogramDefinitionSvc::axesLimits_t yAxis
bool isValid() const
Is the histogram definition valid.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
void initMessaging() const
Initialize our message level and MessageSvc.
std::vector< std::vector< TH1 * > > m_residualx_2ormorehits
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
static void fillHisto(TProfile *pTprofile, const float bin, const float weight, const float weight2=1.0)
virtual void finalizePlots()
std::vector< TreeData > m_vBookedTrees