#include <DiLeptonVertexHelpers.h>
Definition at line 54 of file DiLeptonVertexHelpers.h.
◆ PlotsVsDiLeptonRegion()
DiLeptonHelp::PlotsVsDiLeptonRegion::PlotsVsDiLeptonRegion |
( |
const float |
etaBoundary | ) |
|
|
inline |
◆ ~PlotsVsDiLeptonRegion()
DiLeptonHelp::PlotsVsDiLeptonRegion::~PlotsVsDiLeptonRegion |
( |
| ) |
|
|
default |
◆ bookSet()
void DiLeptonHelp::PlotsVsDiLeptonRegion::bookSet |
( |
const TFileDirectory & |
fs, |
|
|
const TH1 * |
histo |
|
) |
| |
|
inline |
Definition at line 60 of file DiLeptonVertexHelpers.h.
References DiLeptonHelp::END, compareTotals::fs, timingPdfMaker::histo, m_etaRegionNames, m_etaRegions, m_h1_map, m_h2_map, m_isBooked, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, and runGCPTkAlMap::title.
Referenced by DiMuonVertexValidation::beginJob(), and DiMuonValidation::beginJob().
66 if (((TObject*)
histo)->InheritsFrom(
"TH2")) {
67 zTitle =
histo->GetZaxis()->GetTitle();
76 if (((TObject*)
histo)->InheritsFrom(
"TH2")) {
78 (
name +
"_" + toSub).c_str(),
79 (
title +
" (" + toSub +
");" + xTitle +
" (" + toSub +
") ;" + yTitle +
" (" + toSub +
");" + zTitle)
82 histo->GetXaxis()->GetXmin(),
83 histo->GetXaxis()->GetXmax(),
85 histo->GetYaxis()->GetXmin(),
86 histo->GetYaxis()->GetXmax());
89 (
name +
"_" + toSub).c_str(),
90 (
title +
" (" + toSub +
");" + xTitle +
" (" + toSub +
") ;" + yTitle +
" (" + toSub +
")").c_str(),
92 histo->GetXaxis()->GetXmin(),
93 histo->GetXaxis()->GetXmax());
std::map< etaRegion, TH2F * > m_h2_map
const std::vector< std::string > m_etaRegionNames
const std::vector< etaRegion > m_etaRegions
std::map< etaRegion, TH1F * > m_h1_map
◆ fillTH1Plots()
void DiLeptonHelp::PlotsVsDiLeptonRegion::fillTH1Plots |
( |
const float |
val, |
|
|
const std::pair< TLorentzVector, TLorentzVector > & |
momenta |
|
) |
| |
|
inline |
Definition at line 126 of file DiLeptonVertexHelpers.h.
References DiLeptonHelp::END, getEtaRegion(), m_h1_map, m_isBooked, nano_mu_digi_cff::region, and heppy_batch::val.
Referenced by DiMuonVertexValidation::analyze(), and DiMuonValidation::analyze().
129 <<
"In" << __FUNCTION__ <<
"," << __LINE__ <<
"trying to fill a plot not booked!" << std::endl;
135 edm::LogError(
"PlotsVsDiLeptonRegion") <<
"undefined di-muon kinematics" << std::endl;
Log< level::Error, false > LogError
std::map< etaRegion, TH1F * > m_h1_map
etaRegion getEtaRegion(const double eta1, const double eta2)
◆ fillTH2Plots()
void DiLeptonHelp::PlotsVsDiLeptonRegion::fillTH2Plots |
( |
const float |
valX, |
|
|
const float |
valY, |
|
|
const std::pair< TLorentzVector, TLorentzVector > & |
momenta |
|
) |
| |
|
inline |
◆ getEtaRegion()
etaRegion DiLeptonHelp::PlotsVsDiLeptonRegion::getEtaRegion |
( |
const double |
eta1, |
|
|
const double |
eta2 |
|
) |
| |
|
inline |
Definition at line 103 of file DiLeptonVertexHelpers.h.
References funct::abs(), DiLeptonHelp::BARBAR, DiLeptonHelp::BARBWD, DiLeptonHelp::BARFWD, DiLeptonHelp::BWDBWD, DiLeptonHelp::END, HLT_2024v13_cff::eta1, HLT_2024v13_cff::eta2, DiLeptonHelp::FWDBWD, DiLeptonHelp::FWDFWD, and m_etaBoundary.
Referenced by fillTH1Plots(), and fillTH2Plots().
107 if (isEta1Barrel && isEta2Barrel) {
const float m_etaBoundary
Abs< T >::type abs(const T &t)
◆ m_etaBoundary
const float DiLeptonHelp::PlotsVsDiLeptonRegion::m_etaBoundary |
|
private |
◆ m_etaRegionNames
const std::vector<std::string> DiLeptonHelp::PlotsVsDiLeptonRegion::m_etaRegionNames |
|
private |
Initial value:= {"barrel-barrel",
"barrel-forward",
"barrel-backward",
"forward-forward",
"backward-backward",
"forward-backward"}
Definition at line 165 of file DiLeptonVertexHelpers.h.
Referenced by bookSet().
◆ m_etaRegions
const std::vector<etaRegion> DiLeptonHelp::PlotsVsDiLeptonRegion::m_etaRegions |
|
private |
◆ m_h1_map
std::map<etaRegion, TH1F*> DiLeptonHelp::PlotsVsDiLeptonRegion::m_h1_map |
|
private |
◆ m_h2_map
std::map<etaRegion, TH2F*> DiLeptonHelp::PlotsVsDiLeptonRegion::m_h2_map |
|
private |
◆ m_isBooked
bool DiLeptonHelp::PlotsVsDiLeptonRegion::m_isBooked |
|
private |