#include <PhotonVertexSelectionWrapper.h>
◆ PhotonVertexSelectionWrapper()
| DerivationFramework::PhotonVertexSelectionWrapper::PhotonVertexSelectionWrapper |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ addBranches()
| StatusCode DerivationFramework::PhotonVertexSelectionWrapper::addBranches |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 52 of file PhotonVertexSelectionWrapper.cxx.
60 ATH_MSG_ERROR(
"Couldn't update photon calo pointing auxdata");
61 return StatusCode::FAILURE;
70 bool isMomentum_available = vtxPt.isAvailable();
71 bool isSumPt_available = vtxSumPt.isAvailable();
72 bool isSumPt2_available = vtxSumPt2.isAvailable();
73 bool found_PV =
false;
76 for (
const auto *
vertex : *vertices) {
90 pt = sqrt(vmom.Px() * vmom.Px() + vmom.Py() * vmom.Py());
93 phi = acos(vmom.Px() /
pt);
102 if(!isMomentum_available){
107 if(!isSumPt_available) vtxSumPt(*
vertex) = sumPt;
110 if(!isSumPt2_available && found_PV) vtxSumPt2(*
vertex) = sumPt2;
114 return StatusCode::SUCCESS;
◆ initialize()
| StatusCode DerivationFramework::PhotonVertexSelectionWrapper::initialize |
( |
| ) |
|
|
finaloverride |
◆ m_decPrefix
| std::string DerivationFramework::PhotonVertexSelectionWrapper::m_decPrefix |
|
private |
◆ m_photonContainer
Initial value:{
this,
"PhotonContainer",
"Photons",
"SG key of input photon container"
}
Input photon container.
Definition at line 53 of file PhotonVertexSelectionWrapper.h.
◆ m_photonPointingTool
Initial value:{
this,
"PhotonPointingTool",
"",
"Handle to the photon pointing tool"
}
PhotonPointingTool.
Definition at line 42 of file PhotonVertexSelectionWrapper.h.
◆ m_vertexContainer
Initial value:{
this,
"VertexContainer",
"PrimaryVertices",
"SG key of input vertex container"
}
Input primary vertex container.
Definition at line 61 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)