#include <PhotonVertexSelectionWrapper.h>
◆ addBranches()
| StatusCode DerivationFramework::PhotonVertexSelectionWrapper::addBranches |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 33 of file PhotonVertexSelectionWrapper.cxx.
41 ATH_MSG_ERROR(
"Couldn't update photon calo pointing auxdata");
42 return StatusCode::FAILURE;
51 bool isMomentum_available = vtxPt.isAvailable();
52 bool isSumPt_available = vtxSumPt.isAvailable();
53 bool isSumPt2_available = vtxSumPt2.isAvailable();
54 bool found_PV =
false;
57 for (
const auto *
vertex : *vertices) {
71 pt = sqrt(vmom.Px() * vmom.Px() + vmom.Py() * vmom.Py());
74 phi = acos(vmom.Px() /
pt);
83 if(!isMomentum_available){
88 if(!isSumPt_available) vtxSumPt(*
vertex) = sumPt;
91 if(!isSumPt2_available && found_PV) vtxSumPt2(*
vertex) = sumPt2;
95 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode DerivationFramework::PhotonVertexSelectionWrapper::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ m_photonContainer
Initial value:{
this,
"PhotonContainer",
"Photons",
"SG key of input photon container"
}
Input photon container.
Definition at line 49 of file PhotonVertexSelectionWrapper.h.
◆ m_photonPointingTool
Initial value:{
this,
"PhotonPointingTool",
"",
"Handle to the photon pointing tool"
}
PhotonPointingTool.
Definition at line 41 of file PhotonVertexSelectionWrapper.h.
◆ m_vertexContainer
Initial value:{
this,
"VertexContainer",
"PrimaryVertices",
"SG key of input vertex container"
}
Input primary vertex container.
Definition at line 57 of file PhotonVertexSelectionWrapper.h.
◆ m_vtxEta
◆ m_vtxPhi
◆ m_vtxPt
◆ m_vtxSumPt
◆ m_vtxSumPt2
The documentation for this class was generated from the following files:
TLorentzVector getVertexMomentum(const xAOD::Vertex *vertex, bool useAux=true, const std::string &derivationPrefix="")
Return vector sum of tracks associated with vertex (from auxdata if available and useAux = true)