Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
LArTrackPfo.h
Go to the documentation of this file.
1
8#ifndef LAR_TRACK_PFO_H
9#define LAR_TRACK_PFO_H 1
10
13#include "Objects/TrackState.h"
14
17
19
20namespace pandora
21{
22class CaloHit;
23}
24
25//------------------------------------------------------------------------------------------------------------------------------------------
26
27namespace lar_content
28{
29
38
39//------------------------------------------------------------------------------------------------------------------------------------------
40
45{
46public:
50 LArTrackPfo(const LArTrackPfoParameters &parameters);
51
56
61
66
71
72public:
74
75private:
76 // OTHER MEMBER VARIABLES GO HERE
77};
78
79//------------------------------------------------------------------------------------------------------------------------------------------
80
84class LArTrackPfoFactory : public pandora::ObjectFactory<object_creation::ParticleFlowObject::Parameters, pandora::ParticleFlowObject>
85{
86public:
93
100 pandora::StatusCode Read(Parameters &parameters, pandora::FileReader &fileReader) const;
101
108 pandora::StatusCode Write(const pandora::ParticleFlowObject *const pObject, pandora::FileWriter &fileWriter) const;
109
117};
118
119//------------------------------------------------------------------------------------------------------------------------------------------
120//------------------------------------------------------------------------------------------------------------------------------------------
121
126
127//------------------------------------------------------------------------------------------------------------------------------------------
128
130{
131 const LArTrackPfoParameters &larPfoParameters(dynamic_cast<const LArTrackPfoParameters &>(parameters));
132 pObject = new LArTrackPfo(larPfoParameters);
133
134 return pandora::STATUS_CODE_SUCCESS;
135}
136
137//------------------------------------------------------------------------------------------------------------------------------------------
138
140{
141 // TODO: Provide this functionality when necessary
142
143 return pandora::STATUS_CODE_SUCCESS;
144}
145
146//------------------------------------------------------------------------------------------------------------------------------------------
147
149{
150 // TODO: Provide this functionality when necessary
151
152 return pandora::STATUS_CODE_SUCCESS;
153}
154
155} // namespace lar_content
156
157#endif // #ifndef LAR_TRACK_PFO_H
Header file for the cartesian vector class.
Header file for lar pfo objects.
Header file for pandora object creation classes.
Header file for the object factory class.
Header file for the particle flow object class.
Header file for the track state class.
Parameters class.
Definition Validation.h:20
lar pfo object factory responsible for pfo creation
Definition LArTrackPfo.h:85
pandora::StatusCode Read(Parameters &parameters, pandora::FileReader &fileReader) const
Read any additional (derived class only) object parameters from file using the specified file reader.
pandora::StatusCode Create(const object_creation::ParticleFlowObject::Parameters &parameters, const pandora::ParticleFlowObject *&pObject) const
Create an object with the given parameters.
pandora::StatusCode Write(const pandora::ParticleFlowObject *const pObject, pandora::FileWriter &fileWriter) const
Persist any additional (derived class only) object parameters using the specified file writer.
Parameters * NewParameters() const
Create new parameters instance on the heap (memory-management to be controlled by user)
const pandora::CartesianVector & GetEndDirection() const
Get end direction.
const pandora::CartesianVector & GetVertexPosition() const
Get vertex position.
const LArTrackStateVector m_trackStateVector
The vector of track states.
Definition LArTrackPfo.h:73
const pandora::CartesianVector & GetVertexDirection() const
Get vertex direction.
const pandora::CartesianVector & GetEndPosition() const
Get end position.
LArTrackStateVector m_trackStateVector
Definition LArTrackPfo.h:36
CartesianVector class.
FileReader class.
Definition FileReader.h:29
FileWriter class.
Definition FileWriter.h:29
ObjectFactory class responsible for extended pandora object creation.
ParticleFlowObject class.
std::vector< LArTrackState > LArTrackStateVector
ObjectCreationHelper< CaloHitParameters, CaloHitMetadata, pandora::CaloHit > CaloHit
StatusCode
The StatusCode enum.