22 ISvcLocator* pSvcLocator )
24 m_vxSelTool(
"CP::PhotonVertexSelectionTool/PhotonVtxSel")
42 return StatusCode::SUCCESS;
50 return StatusCode::SUCCESS;
60 vxOut->setStore(vxOutAux);
71 for(
const auto *
const ph : *photons) {
75 const Vertex* photonVx(
nullptr);
77 *vxOut->
front() = *photonVx;
82 for(
const auto *
const vx : *vxIn) {
87 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
DataVector adapter that acts like it holds const pointers.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
~PhotonVertexSelectionAlg()
Destructor:
ToolHandle< CP::IPhotonVertexSelectionTool > m_vxSelTool
StatusCode initialize()
Athena algorithm's Hooks.
PhotonVertexSelectionAlg()
Default constructor:
static bool acceptPhoton(const xAOD::Photon &gam)
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const T * front() const
Access the first element in the collection as an rvalue.
void setVertexType(VxType::VertexType vType)
Set the type of the vertex.
Select isolated Photons, Electrons and Muons.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
VertexAuxContainer_v1 VertexAuxContainer
Definition of the current jet auxiliary container.
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.
Photon_v1 Photon
Definition of the current "egamma version".