24 m_nVtx =
Book1D(
"nVtx",
"Number of vertices; Number of conversion vertices; Entries", 10, 0., 10);
25 m_convR =
Book1D(
"convR",
"Conversion radius; Conversion radius (mm); Entries", 100, 0., 1000);
26 m_convZ =
Book1D(
"convZ",
"Conversion z; Conversion z (mm); Entries", 100, -1000., 1000);
27 m_convRvsEta =
Book2D(
"convRvsEta",
"Conversion radius vs #eta; #eta; Conversion radius (mm)", 1000, -5., 5., 100, 0., 1000);
28 m_convRvsType =
Book2D(
"convRvsType",
"Conversion radius vs type; Type; Conversion radius (mm)", 10, 0., 10., 100, 0., 1000);
29 m_convType =
Book1D(
"convType",
"Conversion type; Conversion type; Entries", 10, 0., 10);
30 m_convDeltaEta =
Book1D(
"convDeltaEta",
"Conversion #Delta#eta; Conversion #Delta#eta; Entries", 250, -0.5, 0.5);
31 m_convDeltaPhi =
Book1D(
"convDeltaPhi",
"Conversion #Delta#phi; Conversion #Delta#phi; Entries", 250, -0.5, 0.5);
37 m_nVtx->Fill(photon.nVertices(), weight);
38 const auto* vertex = photon.vertex();
42 m_convZ->Fill(vertex ? vertex->position().z() : -9999., weight);
void fill(const xAOD::Photon &photon, const xAOD::EventInfo &eventInfo)
PhotonConversionPlots(PlotBase *pParent, const std::string &sDir, const std::string &sParticleType)
virtual void initializePlots()
std::string m_sParticleType
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
PlotBase(PlotBase *parent, const std::string &sDir)
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.
float beamSpotWeight() const
Weight for beam spot size reweighting.
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
float conversionRadius(const xAOD::Vertex *vx)
return the conversion radius or 9999.
@ convMatchDeltaPhi1
difference between the cluster phi and the phi of the first track of the vertex extrapolated to the s...
@ convMatchDeltaEta1
difference between the cluster eta and the eta of the first track of the vertex extrapolated to the s...
EventInfo_v1 EventInfo
Definition of the latest event info version.
Photon_v1 Photon
Definition of the current "egamma version".