33 std::string temporaryListName;
36 for (
const MCParticle *
const pMCParticle : *pMCParticleList)
41 PandoraContentApi::Vertex::Parameters parameters;
43 pMCParticle->GetEndpoint().GetX() +
m_vertexXCorrection, pMCParticle->GetEndpoint().GetY(), pMCParticle->GetEndpoint().GetZ());
47 const Vertex *pVertex(
nullptr);
51 if (!pVertexList->empty())
59 return STATUS_CODE_SUCCESS;
Header file for the lar monte carlo particle helper helper class.
static pandora::StatusCode ReplaceCurrentList(const pandora::Algorithm &algorithm, const std::string &newListName)
Replace the current list with a pre-saved list; use this new list as a permanent replacement for the ...
static pandora::StatusCode CreateTemporaryListAndSetCurrent(const pandora::Algorithm &algorithm, const T *&pT, std::string &temporaryListName)
Create a temporary list and set it to be the current list, enabling object creation.
static pandora::StatusCode GetCurrentList(const pandora::Algorithm &algorithm, const T *&pT)
Get the current list.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
CheatingVertexCreationAlgorithm()
Default constructor.
pandora::StatusCode Run()
Run the algorithm.
bool m_replaceCurrentVertexList
Whether to replace the current vertex list with the output list.
std::string m_outputVertexListName
The name under which to save the output vertex list.
float m_vertexXCorrection
The vertex x correction, added to reported mc neutrino endpoint x value, in cm.
static bool IsNeutrino(const pandora::MCParticle *const pMCParticle)
Whether a mc particle is a neutrino or antineutrino.