LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
lar_content::LArTrackPfoFactory Class Reference

lar pfo object factory responsible for pfo creation More...

#include "LArTrackPfo.h"

Inheritance diagram for lar_content::LArTrackPfoFactory:

Public Member Functions

Parameters * NewParameters () const
 Create new parameters instance on the heap (memory-management to be controlled by user) More...
 
pandora::StatusCode Read (Parameters &parameters, pandora::FileReader &fileReader) const
 Read any additional (derived class only) object parameters from file using the specified file reader. More...
 
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. More...
 
pandora::StatusCode Create (const object_creation::ParticleFlowObject::Parameters &parameters, const pandora::ParticleFlowObject *&pObject) const
 Create an object with the given parameters. More...
 

Detailed Description

lar pfo object factory responsible for pfo creation

Definition at line 81 of file LArTrackPfo.h.

Member Function Documentation

pandora::StatusCode lar_content::LArTrackPfoFactory::Create ( const object_creation::ParticleFlowObject::Parameters &  parameters,
const pandora::ParticleFlowObject *&  pObject 
) const
inline

Create an object with the given parameters.

Parameters
parametersthe parameters to pass in constructor
pObjectto receive the address of the object created

Definition at line 126 of file LArTrackPfo.h.

127 {
128  const LArTrackPfoParameters &larPfoParameters(dynamic_cast<const LArTrackPfoParameters&>(parameters));
129  pObject = new LArTrackPfo(larPfoParameters);
130 
131  return pandora::STATUS_CODE_SUCCESS;
132 }
LArTrackPfoFactory::Parameters * lar_content::LArTrackPfoFactory::NewParameters ( ) const
inline

Create new parameters instance on the heap (memory-management to be controlled by user)

Returns
the address of the new parameters instance

Definition at line 119 of file LArTrackPfo.h.

120 {
121  return (new LArTrackPfoParameters);
122 }
pandora::StatusCode lar_content::LArTrackPfoFactory::Read ( Parameters &  parameters,
pandora::FileReader &  fileReader 
) const
inline

Read any additional (derived class only) object parameters from file using the specified file reader.

Parameters
parametersthe parameters to pass in constructor
fileReaderthe file reader, used to extract any additional parameters from file

Definition at line 136 of file LArTrackPfo.h.

137 {
138  // TODO: Provide this functionality when necessary
139 
140  return pandora::STATUS_CODE_SUCCESS;
141 }
pandora::StatusCode lar_content::LArTrackPfoFactory::Write ( const pandora::ParticleFlowObject *const  pObject,
pandora::FileWriter &  fileWriter 
) const
inline

Persist any additional (derived class only) object parameters using the specified file writer.

Parameters
pObjectthe address of the object to persist
fileWriterthe file writer

Definition at line 145 of file LArTrackPfo.h.

146 {
147  // TODO: Provide this functionality when necessary
148 
149  return pandora::STATUS_CODE_SUCCESS;
150 }

The documentation for this class was generated from the following file: