Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
PandoraApi.cc
Go to the documentation of this file.
1
9#include "Api/PandoraApi.h"
10#include "Api/PandoraApiImpl.h"
11
13
15{
16 return pandora.GetPandoraApiImpl()->ProcessEvent();
17}
18
19//------------------------------------------------------------------------------------------------------------------------------------------
20
22{
23 return pandora.GetPandoraApiImpl()->ReadSettings(xmlFileName);
24}
25
26//------------------------------------------------------------------------------------------------------------------------------------------
27
29 pandora::AlgorithmFactory *const pAlgorithmFactory)
30{
31 return pandora.GetPandoraApiImpl()->RegisterAlgorithmFactory(algorithmType, pAlgorithmFactory);
32}
33
34//------------------------------------------------------------------------------------------------------------------------------------------
35
37 pandora::AlgorithmToolFactory *const pAlgorithmToolFactory)
38{
39 return pandora.GetPandoraApiImpl()->RegisterAlgorithmToolFactory(algorithmToolType, pAlgorithmToolFactory);
40}
41
42//------------------------------------------------------------------------------------------------------------------------------------------
43
45 const void *const pDaughterAddress)
46{
47 return pandora.GetPandoraApiImpl()->SetMCParentDaughterRelationship(pParentAddress, pDaughterAddress);
48}
49
50//------------------------------------------------------------------------------------------------------------------------------------------
51
53 const void *const pDaughterAddress)
54{
55 return pandora.GetPandoraApiImpl()->SetTrackParentDaughterRelationship(pParentAddress, pDaughterAddress);
56}
57
58//------------------------------------------------------------------------------------------------------------------------------------------
59
61 const void *const pSecondSiblingAddress)
62{
63 return pandora.GetPandoraApiImpl()->SetTrackSiblingRelationship(pFirstSiblingAddress, pSecondSiblingAddress);
64}
65
66//------------------------------------------------------------------------------------------------------------------------------------------
67
69 const void *const pMCParticleParentAddress, const float mcParticleWeight)
70{
71 return pandora.GetPandoraApiImpl()->SetCaloHitToMCParticleRelationship(pCaloHitParentAddress, pMCParticleParentAddress, mcParticleWeight);
72}
73
74//------------------------------------------------------------------------------------------------------------------------------------------
75
77 const void *const pMCParticleParentAddress, const float mcParticleWeight)
78{
79 return pandora.GetPandoraApiImpl()->SetTrackToMCParticleRelationship(pTrackParentAddress, pMCParticleParentAddress, mcParticleWeight);
80}
81
82//------------------------------------------------------------------------------------------------------------------------------------------
83
85{
86 std::string pfoListName;
87 return pandora.GetPandoraApiImpl()->GetCurrentPfoList(pfoList, pfoListName);
88}
89
90//------------------------------------------------------------------------------------------------------------------------------------------
91
92pandora::StatusCode PandoraApi::GetPfoList(const pandora::Pandora &pandora, const std::string &pfoListName, const pandora::PfoList *&pPfoList)
93{
94 return pandora.GetPandoraApiImpl()->GetPfoList(pfoListName, pPfoList);
95}
96
97//------------------------------------------------------------------------------------------------------------------------------------------
98
100 pandora::ExternalParameters *const pExternalParameters)
101{
102 return pandora::ExternallyConfiguredAlgorithm::SetExternalParameters(pandora, algorithmType, pExternalParameters);
103}
104
105//------------------------------------------------------------------------------------------------------------------------------------------
106
108 const pandora::Granularity granularity)
109{
110 return pandora.GetPandoraApiImpl()->SetHitTypeGranularity(hitType, granularity);
111}
112
113//------------------------------------------------------------------------------------------------------------------------------------------
114
116{
117 return pandora.GetPandoraApiImpl()->SetBFieldPlugin(pBFieldPlugin);
118}
119
120//------------------------------------------------------------------------------------------------------------------------------------------
121
123{
124 return pandora.GetPandoraApiImpl()->SetLArTransformationPlugin(pLArTransformationPlugin);
125}
126
127//------------------------------------------------------------------------------------------------------------------------------------------
128
130{
131 return pandora.GetPandoraApiImpl()->SetPseudoLayerPlugin(pPseudoLayerPlugin);
132}
133
134//------------------------------------------------------------------------------------------------------------------------------------------
135
137{
138 return pandora.GetPandoraApiImpl()->SetShowerProfilePlugin(pShowerProfilePlugin);
139}
140
141//------------------------------------------------------------------------------------------------------------------------------------------
142
144 const pandora::EnergyCorrectionType energyCorrectionType, pandora::EnergyCorrectionPlugin *const pEnergyCorrectionPlugin)
145{
146 return pandora.GetPandoraApiImpl()->RegisterEnergyCorrectionPlugin(name, energyCorrectionType, pEnergyCorrectionPlugin);
147}
148
149//------------------------------------------------------------------------------------------------------------------------------------------
150
152 pandora::ParticleIdPlugin *const pParticleIdPlugin)
153{
154 return pandora.GetPandoraApiImpl()->RegisterParticleIdPlugin(name, pParticleIdPlugin);
155}
156
157//------------------------------------------------------------------------------------------------------------------------------------------
158
160{
161 return pandora.GetPandoraApiImpl()->ResetEvent();
162}
Header file for the externally configured algorithm class.
Header file for the pandora api class.
Header file for the pandora api implementation class.
static pandora::StatusCode ReadSettings(const pandora::Pandora &pandora, const std::string &xmlFileName)
Read pandora settings.
Definition PandoraApi.cc:21
static pandora::StatusCode SetBFieldPlugin(const pandora::Pandora &pandora, pandora::BFieldPlugin *const pBFieldPlugin)
Set the bfield plugin used by pandora.
static pandora::StatusCode ProcessEvent(const pandora::Pandora &pandora)
Process an event.
Definition PandoraApi.cc:14
static pandora::StatusCode RegisterParticleIdPlugin(const pandora::Pandora &pandora, const std::string &name, pandora::ParticleIdPlugin *const pParticleIdPlugin)
Register a particle id plugin.
static pandora::StatusCode Reset(const pandora::Pandora &pandora)
Reset pandora to process another event.
static pandora::StatusCode SetTrackToMCParticleRelationship(const pandora::Pandora &pandora, const void *const pTrackParentAddress, const void *const pMCParticleParentAddress, const float mcParticleWeight=1)
Set track to mc particle relationship.
Definition PandoraApi.cc:76
static pandora::StatusCode SetMCParentDaughterRelationship(const pandora::Pandora &pandora, const void *const pParentAddress, const void *const pDaughterAddress)
Set parent-daughter mc particle relationship.
Definition PandoraApi.cc:44
static pandora::StatusCode SetLArTransformationPlugin(const pandora::Pandora &pandora, pandora::LArTransformationPlugin *const pLArTransformationPlugin)
Set the lar transformation plugin used by pandora.
static pandora::StatusCode SetExternalParameters(const pandora::Pandora &pandora, const std::string &algorithmType, pandora::ExternalParameters *const pExternalParameters)
Set the external parameters associated with an algorithm instance of a specific type....
Definition PandoraApi.cc:99
static pandora::StatusCode SetCaloHitToMCParticleRelationship(const pandora::Pandora &pandora, const void *const pCaloHitParentAddress, const void *const pMCParticleParentAddress, const float mcParticleWeight=1)
Set calo hit to mc particle relationship.
Definition PandoraApi.cc:68
static pandora::StatusCode SetShowerProfilePlugin(const pandora::Pandora &pandora, pandora::ShowerProfilePlugin *const pShowerProfilePlugin)
Set the shower profile plugin used by pandora.
static pandora::StatusCode GetPfoList(const pandora::Pandora &pandora, const std::string &pfoListName, const pandora::PfoList *&pPfoList)
Get a named pfo list.
Definition PandoraApi.cc:92
static pandora::StatusCode RegisterEnergyCorrectionPlugin(const pandora::Pandora &pandora, const std::string &name, const pandora::EnergyCorrectionType energyCorrectionType, pandora::EnergyCorrectionPlugin *const pEnergyCorrectionPlugin)
Register an energy correction plugin.
static pandora::StatusCode RegisterAlgorithmFactory(const pandora::Pandora &pandora, const std::string &algorithmType, pandora::AlgorithmFactory *const pAlgorithmFactory)
Register an algorithm factory with pandora.
Definition PandoraApi.cc:28
static pandora::StatusCode SetPseudoLayerPlugin(const pandora::Pandora &pandora, pandora::PseudoLayerPlugin *const pPseudoLayerPlugin)
Set the pseudo layer plugin used by pandora.
static pandora::StatusCode RegisterAlgorithmToolFactory(const pandora::Pandora &pandora, const std::string &algorithmToolType, pandora::AlgorithmToolFactory *const pAlgorithmToolFactory)
Register an algorithm tool factory with pandora.
Definition PandoraApi.cc:36
static pandora::StatusCode SetTrackSiblingRelationship(const pandora::Pandora &pandora, const void *const pFirstSiblingAddress, const void *const pSecondSiblingAddress)
Set sibling track relationship.
Definition PandoraApi.cc:60
static pandora::StatusCode SetHitTypeGranularity(const pandora::Pandora &pandora, const pandora::HitType hitType, const pandora::Granularity granularity)
Set the granularity level to be associated with a specified hit type.
static pandora::StatusCode GetCurrentPfoList(const pandora::Pandora &pandora, const pandora::PfoList *&pPfoList)
Get the current pfo list.
Definition PandoraApi.cc:84
static pandora::StatusCode SetTrackParentDaughterRelationship(const pandora::Pandora &pandora, const void *const pParentAddress, const void *const pDaughterAddress)
Set parent-daughter track relationship.
Definition PandoraApi.cc:52
Factory class for instantiating algorithms.
Definition Algorithm.h:39
Factory class for instantiating algorithm tools.
BFieldPlugin class.
EnergyCorrectionPlugin class.
static StatusCode SetExternalParameters(const Pandora &pandora, const std::string &algorithmType, ExternalParameters *const pExternalParameters)
Set the external parameters associated with an algorithm instance of a specific type,...
LArTransformationPlugin class.
Pandora class.
Definition Pandora.h:40
ParticleIdPlugin class.
PseudoLayerPlugin class.
ShowerProfilePlugin class.
HitType
Calorimeter hit type enum.
Granularity
Granularity enum.
EnergyCorrectionType
Energy correction type enum.
StatusCode
The StatusCode enum.
MANAGED_CONTAINER< const ParticleFlowObject * > PfoList