#include <DiLeptonVertexHelpers.h>
|
void | bookFromPSet (const TFileDirectory &fs, const edm::ParameterSet &hpar) |
|
void | bookPlots (TFileDirectory &fs, const float valmin, const float valmax, const int nxbins, const int nybins) |
|
void | fillPlots (const float val, const std::pair< TLorentzVector, TLorentzVector > &momenta) |
|
| PlotsVsKinematics (flavour FLAV) |
|
| PlotsVsKinematics (flavour FLAV, const std::string &name, const std::string &tt, const std::string &ytt) |
|
| ~PlotsVsKinematics ()=default |
|
Definition at line 180 of file DiLeptonVertexHelpers.h.
◆ xAxis
◆ PlotsVsKinematics() [1/2]
DiLeptonHelp::PlotsVsKinematics::PlotsVsKinematics |
( |
flavour |
FLAV | ) |
|
|
inline |
◆ PlotsVsKinematics() [2/2]
DiLeptonHelp::PlotsVsKinematics::PlotsVsKinematics |
( |
flavour |
FLAV, |
|
|
const std::string & |
name, |
|
|
const std::string & |
tt, |
|
|
const std::string & |
ytt |
|
) |
| |
|
inline |
Definition at line 186 of file DiLeptonVertexHelpers.h.
References m_flav.
189 edm::LogError(
"PlotsVsKinematics") <<
"The initialization flavour is not correct!" << std::endl;
const std::string m_ytitle
Log< level::Error, false > LogError
const std::string m_title
◆ ~PlotsVsKinematics()
DiLeptonHelp::PlotsVsKinematics::~PlotsVsKinematics |
( |
| ) |
|
|
default |
◆ bookFromPSet()
Definition at line 196 of file DiLeptonVertexHelpers.h.
References axisChoices, Exception, compareTotals::fs, edm::ParameterSet::getParameter(), m_flav, m_h2_map, m_isBooked, M_PI, AlCaHLTBitMon_QueryRunRegistry::string, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
Referenced by DiMuonVertexValidation::beginJob(), and DiElectronVertexValidation::beginJob().
208 namePostfix =
m_flav ?
"EEPhi" :
"MMPhi";
209 titlePostfix = fmt::sprintf(
"%s%s pair #phi;%s^{+}%s^{-} #phi", sed, sed, sed, sed);
214 namePostfix =
m_flav ?
"EEEta" :
"MuMuEta";
215 titlePostfix = fmt::sprintf(
"%s%s pair #eta;%s^{+}%s^{-} #eta", sed, sed, sed, sed);
220 namePostfix =
m_flav ?
"EPlusPhi" :
"MuPlusPhi";
221 titlePostfix = fmt::sprintf(
"%s^{+} #phi;%s^{+} #phi [rad]", sed, sed);
226 namePostfix =
m_flav ?
"EPlusEta" :
"MuPlusEta";
227 titlePostfix = fmt::sprintf(
"%s^{+} #eta;%s^{+} #eta", sed, sed);
232 namePostfix =
m_flav ?
"EMinusPhi" :
"MuMinusPhi";
233 titlePostfix = fmt::sprintf(
"%s^{-} #phi;%s^{-} #phi [rad]", sed, sed);
238 namePostfix =
m_flav ?
"EMinusEta" :
"MuMinusEta";
239 titlePostfix = fmt::sprintf(
"%s^{-} #eta;%s^{+} #eta", sed, sed);
242 throw cms::Exception(
"LogicalError") <<
" there is not such Axis choice as " << xAx;
246 const auto& h2title = fmt::sprintf(
"%s vs %s;%s% s",
T getParameter(std::string const &) const
std::map< xAxis, TH2F * > m_h2_map
const std::vector< xAxis > axisChoices
◆ bookPlots()
void DiLeptonHelp::PlotsVsKinematics::bookPlots |
( |
TFileDirectory & |
fs, |
|
|
const float |
valmin, |
|
|
const float |
valmax, |
|
|
const int |
nxbins, |
|
|
const int |
nybins |
|
) |
| |
|
inline |
Definition at line 267 of file DiLeptonVertexHelpers.h.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), compareTotals::fs, m_flav, m_h2_map, m_isBooked, m_name, M_PI, m_title, m_ytitle, and AlCaHLTBitMon_QueryRunRegistry::string.
271 <<
"In" << __FUNCTION__ <<
"," << __LINE__
272 <<
"trying to book plots without the right constructor being called!" << std::endl;
282 TH1F::SetDefaultSumw2(kTRUE);
285 m_h2_map[xAxis::Z_ETA] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuMuEta",
m_name).c_str(),
286 fmt::sprintf(
"%s vs %s pair #eta;%s #eta;%s",
m_title, dilep, dilep,
m_ytitle).c_str(),
288 nybins, valmin, valmax);
290 m_h2_map[xAxis::Z_PHI] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuMuPhi",
m_name).c_str(),
291 fmt::sprintf(
"%s vs %s pair #phi;%s #phi [rad];%s",
m_title, dilep, dilep,
m_ytitle).c_str(),
292 nxbins, -maxMuMuEta, maxMuMuEta,
293 nybins, valmin, valmax);
295 m_h2_map[xAxis::LP_ETA] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuPlusEta",
m_name).c_str(),
296 fmt::sprintf(
"%s vs %s #eta;%s #eta;%s",
m_title, lep, lep,
m_ytitle).c_str(),
297 nxbins, -maxMuEta, maxMuEta,
298 nybins, valmin, valmax);
300 m_h2_map[xAxis::LP_PHI] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuPlusPhi",
m_name).c_str(),
301 fmt::sprintf(
"%s vs %s #phi;%s #phi [rad];%s",
m_title, lep, lep,
m_ytitle).c_str(),
303 nybins, valmin, valmax);
305 m_h2_map[xAxis::LM_ETA] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuMinusEta",
m_name).c_str(),
306 fmt::sprintf(
"%s vs %s #eta;%s #eta;%s",
m_title, lem, lem,
m_ytitle).c_str(),
307 nxbins, -maxMuEta, maxMuEta,
308 nybins, valmin, valmax);
310 m_h2_map[xAxis::LM_PHI] =
fs.make<TH2F>(fmt::sprintf(
"%sVsMuMinusPhi",
m_name).c_str(),
311 fmt::sprintf(
"%s vs %s #phi;%s #phi [rad];%s",
m_title, lem, lem,
m_ytitle).c_str(),
313 nybins, valmin, valmax);
const std::string m_ytitle
Log< level::Error, false > LogError
std::map< xAxis, TH2F * > m_h2_map
const std::string m_title
◆ fillPlots()
void DiLeptonHelp::PlotsVsKinematics::fillPlots |
( |
const float |
val, |
|
|
const std::pair< TLorentzVector, TLorentzVector > & |
momenta |
|
) |
| |
|
inline |
Definition at line 321 of file DiLeptonVertexHelpers.h.
References m_h2_map, m_isBooked, and heppy_batch::val.
Referenced by DiMuonVertexValidation::analyze(), and DiElectronVertexValidation::analyze().
324 <<
"In" << __FUNCTION__ <<
"," << __LINE__ <<
"trying to fill a plot not booked!" << std::endl;
328 m_h2_map[xAxis::Z_ETA]->Fill((momenta.first + momenta.second).Eta(),
val);
329 m_h2_map[xAxis::Z_PHI]->Fill((momenta.first + momenta.second).Phi(),
val);
330 m_h2_map[xAxis::LP_ETA]->Fill((momenta.first).Eta(),
val);
331 m_h2_map[xAxis::LP_PHI]->Fill((momenta.first).Phi(),
val);
332 m_h2_map[xAxis::LM_ETA]->Fill((momenta.second).Eta(),
val);
333 m_h2_map[xAxis::LM_PHI]->Fill((momenta.second).Phi(),
val);
Log< level::Error, false > LogError
std::map< xAxis, TH2F * > m_h2_map
◆ axisChoices
const std::vector<xAxis> DiLeptonHelp::PlotsVsKinematics::axisChoices |
|
private |
◆ m_flav
flavour DiLeptonHelp::PlotsVsKinematics::m_flav |
|
private |
◆ m_h2_map
std::map<xAxis, TH2F*> DiLeptonHelp::PlotsVsKinematics::m_h2_map |
|
private |
◆ m_isBooked
bool DiLeptonHelp::PlotsVsKinematics::m_isBooked |
|
private |
◆ m_name
const std::string DiLeptonHelp::PlotsVsKinematics::m_name |
|
private |
◆ m_title
const std::string DiLeptonHelp::PlotsVsKinematics::m_title |
|
private |
◆ m_ytitle
const std::string DiLeptonHelp::PlotsVsKinematics::m_ytitle |
|
private |