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

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

#include "LArShowerPfo.h"

Inheritance diagram for lar_content::LArShowerPfoFactory:

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 Object *const pObject, pandora::FileWriter &fileWriter) const
 Persist any additional (derived class only) object parameters using the specified file writer. More...
 
pandora::StatusCode Create (const Parameters &parameters, const Object *&pObject) const
 Create an object with the given parameters. More...
 

Detailed Description

lar pfo object factory responsible for pfo creation

Definition at line 124 of file LArShowerPfo.h.

Member Function Documentation

pandora::StatusCode lar_content::LArShowerPfoFactory::Create ( const Parameters &  parameters,
const Object *&  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 240 of file LArShowerPfo.h.

References lar_content::LArShowerPfo::LArShowerPfo().

241 {
242  const LArShowerPfoParameters &larPfoParameters(dynamic_cast<const LArShowerPfoParameters&>(parameters));
243  pObject = new LArShowerPfo(larPfoParameters);
244 
245  return pandora::STATUS_CODE_SUCCESS;
246 }
LArShowerPfoFactory::Parameters * lar_content::LArShowerPfoFactory::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 233 of file LArShowerPfo.h.

234 {
235  return (new LArShowerPfoParameters);
236 }
pandora::StatusCode lar_content::LArShowerPfoFactory::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 250 of file LArShowerPfo.h.

251 {
252  // TODO: Provide this functionality if necessary
253 
254  return pandora::STATUS_CODE_SUCCESS;
255 }
pandora::StatusCode lar_content::LArShowerPfoFactory::Write ( const Object *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 259 of file LArShowerPfo.h.

260 {
261  // TODO: Provide this functionality if necessary
262 
263  return pandora::STATUS_CODE_SUCCESS;
264 }

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