|
ATLAS Offline Software
|
#include <IDHitPlots.h>
Definition at line 13 of file IDHitPlots.h.
◆ IDHitPlots()
Trk::IDHitPlots::IDHitPlots |
( |
PlotBase * |
pParent, |
|
|
const std::string & |
sDir |
|
) |
| |
|
inline |
◆ Book1D() [1/2]
TH1D * 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 94 of file PlotBase.cxx.
97 Bool_t oldstat = TH1::AddDirectoryStatus();
98 TH1::AddDirectory(
false);
100 TH1::AddDirectory(oldstat);
◆ Book1D() [2/2]
TH1D * 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 108 of file PlotBase.cxx.
110 Bool_t oldstat = TH1::AddDirectoryStatus();
111 TH1::AddDirectory(
false);
113 refHist->GetXaxis()->GetXbins()->GetArray());
115 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 TH2F histogram with variable x axis binning.
Definition at line 144 of file PlotBase.cxx.
147 Bool_t oldstat = TH2::AddDirectoryStatus();
148 TH2::AddDirectory(
false);
151 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 TH2F histogram.
Definition at line 123 of file PlotBase.cxx.
126 Bool_t oldstat = TH2::AddDirectoryStatus();
127 TH2::AddDirectory(
false);
130 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 138 of file PlotBase.cxx.
139 return Book2D(
name,
labels, refHist->GetNbinsX(), refHist->GetXaxis()->GetXmin(), refHist->GetXaxis()->GetXmax(),
140 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 TH3F histogram.
Definition at line 157 of file PlotBase.cxx.
160 Bool_t oldstat = TH3::AddDirectoryStatus();
161 TH3::AddDirectory(
false);
163 labels.c_str(), nBinsX, startX, endX, nBinsY, startY, endY, nBinsZ, startZ, endZ);
165 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 TH3F histogram using refHist as reference for number of bins and axis range.
Definition at line 171 of file PlotBase.cxx.
173 Bool_t oldstat = TH3::AddDirectoryStatus();
174 TH3::AddDirectory(
false);
176 refHist->GetXaxis()->GetXbins()->GetArray(), refHist->GetNbinsY(),
177 refHist->GetYaxis()->GetXbins()->GetArray(), refHist->GetNbinsZ(),
178 refHist->GetZaxis()->GetXbins()->GetArray());
179 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 257 of file PlotBase.cxx.
263 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 270 of file PlotBase.cxx.
274 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 204 of file PlotBase.cxx.
207 Bool_t oldstat = TProfile::AddDirectoryStatus();
208 TProfile::AddDirectory(
false);
211 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 186 of file PlotBase.cxx.
190 Bool_t oldstat = TProfile::AddDirectoryStatus();
191 TProfile::AddDirectory(
false);
192 std::string
opt = useRMS ?
"S" :
"";
193 if ((startY == -1) and (endY == -1)) {
198 TProfile::AddDirectory(oldstat);
◆ BookTProfile2D() [1/2]
TProfile2D * PlotBase::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 |
|
) |
| |
|
inherited |
Book a TProfile 2D histogram with variable binning in x-axis and limits in y-values.
Definition at line 231 of file PlotBase.cxx.
235 Bool_t oldstat = TProfile2D::AddDirectoryStatus();
236 TProfile2D::AddDirectory(
false);
237 std::string
opt = useRMS ?
"S" :
"";
239 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 245 of file PlotBase.cxx.
247 Bool_t oldstat = TProfile2D::AddDirectoryStatus();
248 TProfile2D::AddDirectory(
false);
249 std::string
opt = useRMS ?
"S" :
"";
251 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 217 of file PlotBase.cxx.
221 Bool_t oldstat = TProfile::AddDirectoryStatus();
222 TProfile::AddDirectory(
false);
225 TProfile::AddDirectory(oldstat);
◆ BookTree()
TTree * PlotBase::BookTree |
( |
const std::string & |
name, |
|
|
bool |
prependDir = true |
|
) |
| |
|
inherited |
Book a TTree.
Definition at line 281 of file PlotBase.cxx.
285 tree->SetAutoSave(0);
286 tree->SetAutoFlush(0);
287 tree->SetDirectory(
nullptr);
◆ constructPrefix()
std::string PlotBase::constructPrefix |
( |
std::string |
dir, |
|
|
bool |
prependDir |
|
) |
| |
|
staticprivateinherited |
◆ fill()
Definition at line 86 of file IDHitPlots.cxx.
87 uint8_t iBLayerHits(0), iPixHits(0), iSctHits(0), iTrtHits(0);
88 uint8_t iPixHoles(0), iSCTHoles(0), iTrtHTHits(0);
114 uint8_t iBLayerOutliers(0), iBLayerShared(0), iBLayerSplit(0);
115 uint8_t iPixelOutliers(0), iPixelContribLayers(0), iPixelShared(0), iPixelSplit(0), iPixelGanged(0),
116 iPixelGangedFakes(0);
117 uint8_t iSCTOutliers(0), iSCTDoubleHoles(0), iSCTShared(0);
118 uint8_t iTRTOutliers(0), iTRTHTOutliers(0);
◆ 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, IDTPM::HitsOnTracksPlots, ZeeValidation::TrueElectronsPlots, IDTPM::VertexParametersPlots, ZeeValidation::TrueFwdElectronsPlots, IDTPM::NtracksPlots, IDTPM::DuplicateRatePlots, IDTPM::EfficiencyPlots, IDTPM::FakeRatePlots, IDTPM::OfflineElectronPlots, InDetPerfPlot_FakeRate, IDTPM::ResolutionPlots, IDTPM::TrackParametersPlots, InDetPerfPlot_Duplicate, InDetBasicPlot, and Trk::EfficiencyPlots.
Definition at line 92 of file PlotBase.h.
◆ getDirectory()
const std::string& PlotBase::getDirectory |
( |
| ) |
|
|
inlineinherited |
◆ init()
void Trk::IDHitPlots::init |
( |
| ) |
|
|
private |
◆ initialize()
void PlotBase::initialize |
( |
| ) |
|
|
inherited |
◆ initializePlots()
void Trk::IDHitPlots::initializePlots |
( |
| ) |
|
|
privatevirtual |
Reimplemented from PlotBase.
Definition at line 38 of file IDHitPlots.cxx.
39 nBLayerHits =
Book1D(
"HitContent_NBlayerHits",
"Number of B-Layer clusters;Number of Clusters;Entries", 5, -0.5,
41 nPixelHits =
Book1D(
"HitContent_NPixelHits",
"Number of Pixel clusters;Number of Clusters", 10, -0.5, 9.5,
false);
42 nPixelHoles =
Book1D(
"HitContent_NPixelHoles",
"Number of Pixel holes;Number of Holes", 10, -0.5, 9.5,
false);
43 nSCTHits =
Book1D(
"HitContent_NSCTHits",
"Number of SCT clusters;Number of Clusters.", 21, -0.5, 20.5,
false);
44 nSCTHoles =
Book1D(
"HitContent_NSCTHoles",
"Number of SCT holes;Number of Holes", 21, -0.5, 20.5,
false);
45 nTRTHits =
Book1D(
"HitContent_NTRTHits",
"Number of TRT clusters;Number of Hits", 51, -0.5, 50.5,
false);
47 "Number of TRT high threshold Hits;Number of Hits", 51, -0.5, 50.5,
false);
51 nBLayerOutliers =
Book1D(
"HitContent_NBlayerOutliers",
"Number of B-layer outliers;Number of Outliers;Entries", 5,
55 "Number of shared B-layer clusters;Number of Shared Clusters", 5, -0.5, 4.5,
false);
57 "Number of split B-layer clusters;Number of Split Clusters", 4, -0.5, 2.5,
false);
58 nPixelOutliers =
Book1D(
"HitContent_NPixelOutliers",
"Number of Pixel outliers;Number of Outliers", 10, -0.5, 9.5,
61 "Number of contributed Pixel layers;Number of Layers", 5, -0.5, 4.5,
false);
63 "Number of shared Pixel clusters;Number of Shared Clusters", 10, -0.5, 9.5,
false);
64 nPixelSplitHits =
Book1D(
"HitContent_NPixelSplitHits",
"Number of split Pixel clusters; Number of Split Clusters",
66 nPixelGangedHits =
Book1D(
"HitContent_NPixelGangedHits",
"Number of ganged Pixel clusters;Number of Clusters", 10,
69 "Number of ganged flagged fake Pixel clusters;Number of Clusters", 10, -0.5,
71 nSCTOutliers =
Book1D(
"HitContent_NSCTOutliers",
"Number of SCT Outliers;Number of Outliers", 21, -0.5, 20.5,
73 nSCTDoubleHoles =
Book1D(
"HitContent_NSCTDoubleHoles",
"Number of SCT double holes;Number of Double Holes", 21,
75 nSCTSharedHits =
Book1D(
"HitContent_NSCTSharedHits",
"Number of shared SCT clusters;Number of Shared Clusters",
76 21, -0.5, 20.5,
false);
77 nTRTOutliers =
Book1D(
"HitContent_NTRTOutliers",
"Number of TRT outliers;Number of Outliers", 51, -0.5, 50.5,
80 "Number of TRT High Threshold outliers;Number of Outliers", 51, -0.5, 50.5,
◆ RegisterSubPlot()
void PlotBase::RegisterSubPlot |
( |
PlotBase * |
pPlotBase | ) |
|
|
inlineinherited |
◆ retrieveBookedEfficiencies()
std::vector< EfficiencyData > PlotBase::retrieveBookedEfficiencies |
( |
| ) |
|
|
inherited |
Retrieve all booked efficiency objects.
Definition at line 83 of file PlotBase.cxx.
86 std::vector<EfficiencyData> subNodeHists = subNode->retrieveBookedEfficiencies();
87 vBookedEfficiencies.insert(vBookedEfficiencies.end(), subNodeHists.begin(), subNodeHists.end());
89 return vBookedEfficiencies;
◆ retrieveBookedHistograms()
std::vector< HistData > PlotBase::retrieveBookedHistograms |
( |
| ) |
|
|
inherited |
Retrieve all booked histograms.
Definition at line 63 of file PlotBase.cxx.
66 std::vector<HistData> subNodeHists = subNode->retrieveBookedHistograms();
67 vBookedHistograms.insert(vBookedHistograms.end(), subNodeHists.begin(), subNodeHists.end());
69 return vBookedHistograms;
◆ retrieveBookedTrees()
std::vector< TreeData > PlotBase::retrieveBookedTrees |
( |
| ) |
|
|
inherited |
Retrieve all booked trees.
Definition at line 73 of file PlotBase.cxx.
76 std::vector<TreeData> subNodeTrees = subNode->retrieveBookedTrees();
77 vBookedTrees.insert(vBookedTrees.end(), subNodeTrees.begin(), subNodeTrees.end());
◆ setDetailLevel()
void PlotBase::setDetailLevel |
( |
int |
iDetailLevel | ) |
|
|
inherited |
Definition at line 55 of file PlotBase.cxx.
57 subNode->setDetailLevel(iDetailLevel);
◆ m_iDetailLevel
int PlotBase::m_iDetailLevel |
|
protectedinherited |
◆ 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 |
◆ nBLayerHits
TH1* Trk::IDHitPlots::nBLayerHits |
◆ nBLayerOutliers
TH1* Trk::IDHitPlots::nBLayerOutliers |
◆ nBLayerSharedHits
TH1* Trk::IDHitPlots::nBLayerSharedHits |
◆ nBLayerSplitHits
TH1* Trk::IDHitPlots::nBLayerSplitHits |
◆ nPixelContribLayers
TH1* Trk::IDHitPlots::nPixelContribLayers |
◆ nPixelGangedHits
TH1* Trk::IDHitPlots::nPixelGangedHits |
◆ nPixelGangedHitsFlaggedFakes
TH1* Trk::IDHitPlots::nPixelGangedHitsFlaggedFakes |
◆ nPixelHits
TH1* Trk::IDHitPlots::nPixelHits |
◆ nPixelHoles
TH1* Trk::IDHitPlots::nPixelHoles |
◆ nPixelOutliers
TH1* Trk::IDHitPlots::nPixelOutliers |
◆ nPixelSharedHits
TH1* Trk::IDHitPlots::nPixelSharedHits |
◆ nPixelSplitHits
TH1* Trk::IDHitPlots::nPixelSplitHits |
◆ nSCTDoubleHoles
TH1* Trk::IDHitPlots::nSCTDoubleHoles |
◆ nSCTHits
TH1* Trk::IDHitPlots::nSCTHits |
◆ nSCTHoles
TH1* Trk::IDHitPlots::nSCTHoles |
◆ nSCTOutliers
TH1* Trk::IDHitPlots::nSCTOutliers |
◆ nSCTSharedHits
TH1* Trk::IDHitPlots::nSCTSharedHits |
◆ nTRTHighThresholdHits
TH1* Trk::IDHitPlots::nTRTHighThresholdHits |
◆ nTRTHighThresholdOutliers
TH1* Trk::IDHitPlots::nTRTHighThresholdOutliers |
◆ nTRTHits
TH1* Trk::IDHitPlots::nTRTHits |
◆ nTRTOutliers
TH1* Trk::IDHitPlots::nTRTOutliers |
The documentation for this class was generated from the following files:
static std::string constructPrefix(std::string dir, bool prependDir)
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
std::string replace(std::string s, const std::string &s2, const std::string &s3)
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
std::vector< HistData > m_vBookedHistograms
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
TH1 * nTRTHighThresholdHits
@ numberOfGangedPixels
number of pixels which have a ganged ambiguity [unit8_t].
@ numberOfGangedFlaggedFakes
number of Ganged Pixels flagged as fakes [unit8_t].
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
virtual void initializePlots()
std::vector< EfficiencyData > m_vBookedEfficiencies
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 TH2F histogram.
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfTRTHits
number of TRT hits [unit8_t].
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
PlotBase(PlotBase *parent, const std::string &sDir)
@ numberOfTRTHighThresholdHits
number of TRT hits which pass the high threshold (only xenon counted) [unit8_t].
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
@ numberOfInnermostPixelLayerOutliers
number of 0th layer barrel outliers
@ numberOfTRTHighThresholdOutliers
number of TRT high threshold outliers (only xenon counted) [unit8_t].
std::vector< PlotBase * > m_vSubNodes
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
TH1 * nTRTHighThresholdOutliers
def TProfile(*args, **kwargs)
@ numberOfPixelOutliers
these are the pixel outliers, including the b-layer [unit8_t].
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].
@ numberOfSCTHoles
number of SCT holes [unit8_t].
TH1 * nPixelContribLayers
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
@ numberOfSCTOutliers
number of SCT outliers [unit8_t].
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfContribPixelLayers
number of contributing layers of the pixel detector [unit8_t].
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfSCTDoubleHoles
number of Holes in both sides of a SCT module [unit8_t].
TH1 * nPixelGangedHitsFlaggedFakes
virtual void finalizePlots()
std::vector< TreeData > m_vBookedTrees
@ numberOfInnermostPixelLayerHits
these are the hits in the 0th pixel barrel layer