1 #ifndef DQMOffline_RecoB_TrackIPHistograms_h 2 #define DQMOffline_RecoB_TrackIPHistograms_h 18 const double& lowerBound_,
19 const double& upperBound_,
22 const unsigned int&
mc,
29 const double& lowerBound_,
30 const double& upperBound_,
33 const bool& plotNormalized_,
36 const unsigned int&
mc,
45 const bool& hasTrack)
const;
46 void fill(
const int& flavour,
52 void fill(
const int& flavour,
55 const bool& hasTrack)
const;
56 void fill(
const int& flavour,
83 const double& lowerBound_,
84 const double& upperBound_,
85 const bool& statistics_,
87 const bool& plotNormalized_,
90 const unsigned int&
mc,
109 baseNameTitle_ +
"QualUnDef", baseNameDescription_ +
" Undefined Quality", nBins_, lowerBound_, upperBound_);
111 baseNameTitle_ +
"QualLoose", baseNameDescription_ +
" Loose Quality", nBins_, lowerBound_, upperBound_);
113 baseNameTitle_ +
"QualTight", baseNameDescription_ +
" Tight Quality", nBins_, lowerBound_, upperBound_);
115 baseNameTitle_ +
"QualHighPur", baseNameDescription_ +
" High Purity Quality", nBins_, lowerBound_, upperBound_);
129 const double& lowerBound_,
130 const double& upperBound_,
133 const unsigned int&
mc,
137 baseNameTitle_, baseNameDescription_, nBins_, lowerBound_, upperBound_, plotFirst_, folder, mc, iget),
141 theQual_loose = iget.
get(
"Btag/" + folder +
"/" + baseNameTitle_ +
"QualLoose");
142 theQual_tight = iget.
get(
"Btag/" + folder +
"/" + baseNameTitle_ +
"QualTight");
151 const bool& hasTrack)
const {
161 const bool& hasTrack,
172 const bool& hasTrack)
const {
178 if (theArrayDimension ==
nullptr &&
quality_) {
181 int iMax = (*theArrayDimension >
theMaxDimension) ? theMaxDimension : *theArrayDimension;
182 for (
int i = 0;
i != iMax; ++
i) {
183 if (
quality_ && ((theIndexToPlot < 0) || (
i == theIndexToPlot))) {
188 if (theIndexToPlot >= iMax &&
quality_) {
189 const T& theZero =
static_cast<T>(0.0);
199 const bool& hasTrack,
206 if (theArrayDimension ==
nullptr &&
quality_) {
209 int iMax = (*theArrayDimension >
theMaxDimension) ? theMaxDimension : *theArrayDimension;
210 for (
int i = 0;
i != iMax; ++
i) {
211 if (
quality_ && ((theIndexToPlot < 0) || (
i == theIndexToPlot))) {
216 if (theIndexToPlot >= iMax &&
quality_) {
217 const T& theZero =
static_cast<T>(0.0);
235 const bool& hasTrack)
const {
258 const bool& hasTrack,
MonitorElement * theQual_tight
TrackQuality
track quality
~TrackIPHistograms() override
void fill(const int &flavour, const T &variable) const
void fill(const int &flavour, const reco::TrackBase::TrackQuality &quality, const T &variable, const bool &hasTrack) const
MonitorElement * theQual_loose
void settitle(const char *title)
int * arrayDimension() const
MonitorElement * theQual_highpur
MonitorElement * theQual_undefined
virtual MonitorElement * book1D(const std::string &name, const std::string &title, const int &nchX, const double &lowX, const double &highX)
dqm::legacy::DQMStore DQMStore
virtual void enableSumw2()
dqm::legacy::MonitorElement MonitorElement
void settitle(const char *title)
MonitorElement * get(std::string const &path)
void fillVariable(const reco::TrackBase::TrackQuality &qual, const T &var, const bool &hasTrack) const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)