#include <PhotonVertexSelectionWrapper.h>
◆ PhotonVertexSelectionWrapper()
DerivationFramework::PhotonVertexSelectionWrapper::PhotonVertexSelectionWrapper |
( |
const std::string & |
t, |
|
|
const std::string & |
n, |
|
|
const IInterface * |
p |
|
) |
| |
◆ addBranches()
StatusCode DerivationFramework::PhotonVertexSelectionWrapper::addBranches |
( |
| ) |
const |
|
finaloverridevirtual |
Definition at line 52 of file PhotonVertexSelectionWrapper.cxx.
55 const EventContext& ctx = Gaudi::Hive::currentContext();
61 ATH_MSG_ERROR(
"Couldn't update photon calo pointing auxdata");
62 return StatusCode::FAILURE;
71 bool isMomentum_available = vtxPt.isAvailable();
72 bool isSumPt_available = vtxSumPt.isAvailable();
73 bool isSumPt2_available = vtxSumPt2.isAvailable();
74 bool found_PV =
false;
77 for (
const auto *
vertex : *vertices) {
91 pt = sqrt(vmom.Px() * vmom.Px() + vmom.Py() * vmom.Py());
94 phi = acos(vmom.Px() /
pt);
103 if(!isMomentum_available){
108 if(!isSumPt_available) vtxSumPt(*
vertex) = sumPt;
111 if(!isSumPt2_available && found_PV) vtxSumPt2(*
vertex) = sumPt2;
115 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)