LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
lar_cluster3d::Cluster3D::ArtOutputHandler Class Reference

Public Member Functions

 ArtOutputHandler (const art::EDProducer &owner, art::Event &evt, std::string &instanceName)
 
void makeClusterHitAssns (RecobHitVector &recobHits)
 
void makeSpacePointHitAssns (RecobHitVector &recobHits)
 
void makePFPartPCAAssns ()
 
void makePFPartSeedAssns (size_t numSeedsStart)
 
void makePFPartClusterAssns (size_t clusterStart)
 
void makePFPartSpacePointAssns (size_t spacePointStart)
 
void makePFPartEdgeAssns (size_t edgeStart)
 
void outputObjects ()
 

Public Attributes

std::unique_ptr< std::vector< recob::PCAxis > > artPCAxisVector
 
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
 
std::unique_ptr< std::vector< recob::Cluster > > artClusterVector
 
std::unique_ptr< std::vector< recob::SpacePoint > > artSpacePointVector
 
std::unique_ptr< std::vector< recob::SpacePoint > > artVertexPointVector
 
std::unique_ptr< std::vector< recob::Seed > > artSeedVector
 
std::unique_ptr< std::vector< recob::Edge > > artEdgeVector
 
std::unique_ptr< std::vector< recob::Edge > > artVertexEdgeVector
 
std::unique_ptr< art::Assns< recob::Cluster, recob::Hit > > artClusterAssociations
 
std::unique_ptr< art::Assns< recob::PFParticle, recob::PCAxis > > artPFPartAxisAssociations
 
std::unique_ptr< art::Assns< recob::PFParticle, recob::Cluster > > artPFPartClusAssociations
 
std::unique_ptr< art::Assns< recob::PFParticle, recob::SpacePoint > > artPFPartSPAssociations
 
std::unique_ptr< art::Assns< recob::PFParticle, recob::Seed > > artPFPartSeedAssociations
 
std::unique_ptr< art::Assns< recob::PFParticle, recob::Edge > > artPFPartEdgeAssociations
 
std::unique_ptr< art::Assns< recob::Seed, recob::Hit > > artSeedHitAssociations
 
std::unique_ptr< art::Assns< recob::SpacePoint, recob::Hit > > artSPHitAssociations
 
std::unique_ptr< art::Assns< recob::Edge, recob::SpacePoint > > artEdgeSPAssociations
 

Private Attributes

const art::EDProducerm_owner
 
art::Eventm_evt
 
std::string & m_instanceName
 

Detailed Description

Definition at line 134 of file Cluster3D_module.cc.

Constructor & Destructor Documentation

lar_cluster3d::Cluster3D::ArtOutputHandler::ArtOutputHandler ( const art::EDProducer owner,
art::Event evt,
std::string &  instanceName 
)
inline

Definition at line 137 of file Cluster3D_module.cc.

137  :
138  artPCAxisVector( new std::vector<recob::PCAxis> ),
139  artPFParticleVector( new std::vector<recob::PFParticle> ),
140  artClusterVector( new std::vector<recob::Cluster> ),
141  artSpacePointVector( new std::vector<recob::SpacePoint> ),
142  artVertexPointVector( new std::vector<recob::SpacePoint> ),
143  artSeedVector( new std::vector<recob::Seed> ),
144  artEdgeVector( new std::vector<recob::Edge> ),
145  artVertexEdgeVector( new std::vector<recob::Edge> ),
155  m_owner(owner),
156  m_evt(evt),
157  m_instanceName(instanceName)
158  {}
std::unique_ptr< std::vector< recob::Edge > > artEdgeVector
std::unique_ptr< art::Assns< recob::Seed, recob::Hit > > artSeedHitAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Seed > > artPFPartSeedAssociations
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::SpacePoint > > artPFPartSPAssociations
std::unique_ptr< art::Assns< recob::Edge, recob::SpacePoint > > artEdgeSPAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Cluster > > artPFPartClusAssociations
std::unique_ptr< art::Assns< recob::SpacePoint, recob::Hit > > artSPHitAssociations
std::unique_ptr< std::vector< recob::PCAxis > > artPCAxisVector
std::unique_ptr< std::vector< recob::Edge > > artVertexEdgeVector
std::unique_ptr< std::vector< recob::SpacePoint > > artVertexPointVector
std::unique_ptr< std::vector< recob::SpacePoint > > artSpacePointVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::PCAxis > > artPFPartAxisAssociations
std::unique_ptr< art::Assns< recob::Cluster, recob::Hit > > artClusterAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Edge > > artPFPartEdgeAssociations
std::unique_ptr< std::vector< recob::Seed > > artSeedVector
std::unique_ptr< std::vector< recob::Cluster > > artClusterVector

Member Function Documentation

void lar_cluster3d::Cluster3D::ArtOutputHandler::makeClusterHitAssns ( RecobHitVector recobHits)
inline

Definition at line 160 of file Cluster3D_module.cc.

References artClusterAssociations, artClusterVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

161  {
163  }
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< art::Assns< recob::Cluster, recob::Hit > > artClusterAssociations
std::unique_ptr< std::vector< recob::Cluster > > artClusterVector
void lar_cluster3d::Cluster3D::ArtOutputHandler::makePFPartClusterAssns ( size_t  clusterStart)
inline

Definition at line 180 of file Cluster3D_module.cc.

References artClusterVector, artPFPartClusAssociations, artPFParticleVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

181  {
183  }
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::Cluster > > artPFPartClusAssociations
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< std::vector< recob::Cluster > > artClusterVector
void lar_cluster3d::Cluster3D::ArtOutputHandler::makePFPartEdgeAssns ( size_t  edgeStart)
inline

Definition at line 190 of file Cluster3D_module.cc.

References artEdgeVector, artPFPartEdgeAssociations, artPFParticleVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput(), and lar_cluster3d::Cluster3D::ProduceArtClusters().

191  {
193  }
std::unique_ptr< std::vector< recob::Edge > > artEdgeVector
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< art::Assns< recob::PFParticle, recob::Edge > > artPFPartEdgeAssociations
void lar_cluster3d::Cluster3D::ArtOutputHandler::makePFPartPCAAssns ( )
inline

Definition at line 170 of file Cluster3D_module.cc.

References artPCAxisVector, artPFPartAxisAssociations, artPFParticleVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput(), and lar_cluster3d::Cluster3D::ProduceArtClusters().

171  {
173  }
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
std::unique_ptr< std::vector< recob::PCAxis > > artPCAxisVector
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< art::Assns< recob::PFParticle, recob::PCAxis > > artPFPartAxisAssociations
void lar_cluster3d::Cluster3D::ArtOutputHandler::makePFPartSeedAssns ( size_t  numSeedsStart)
inline

Definition at line 175 of file Cluster3D_module.cc.

References artPFParticleVector, artPFPartSeedAssociations, artSeedVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput().

176  {
178  }
std::unique_ptr< art::Assns< recob::PFParticle, recob::Seed > > artPFPartSeedAssociations
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< std::vector< recob::Seed > > artSeedVector
void lar_cluster3d::Cluster3D::ArtOutputHandler::makePFPartSpacePointAssns ( size_t  spacePointStart)
inline

Definition at line 185 of file Cluster3D_module.cc.

References artPFParticleVector, artPFPartSPAssociations, artSpacePointVector, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput(), and lar_cluster3d::Cluster3D::MakeAndSaveSpacePoints().

186  {
188  }
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::SpacePoint > > artPFPartSPAssociations
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< std::vector< recob::SpacePoint > > artSpacePointVector
void lar_cluster3d::Cluster3D::ArtOutputHandler::makeSpacePointHitAssns ( RecobHitVector recobHits)
inline

Definition at line 165 of file Cluster3D_module.cc.

References artSpacePointVector, artSPHitAssociations, util::CreateAssn(), m_evt, and m_owner.

Referenced by lar_cluster3d::Cluster3D::ConvertToArtOutput(), lar_cluster3d::Cluster3D::MakeAndSaveSpacePoints(), and lar_cluster3d::Cluster3D::ProduceArtClusters().

166  {
168  }
std::unique_ptr< art::Assns< recob::SpacePoint, recob::Hit > > artSPHitAssociations
bool CreateAssn(PRODUCER const &prod, art::Event &evt, std::vector< T > const &a, art::Ptr< U > const &b, art::Assns< U, T > &assn, std::string a_instance, size_t indx=UINT_MAX)
Creates a single one-to-one association.
std::unique_ptr< std::vector< recob::SpacePoint > > artSpacePointVector
void lar_cluster3d::Cluster3D::ArtOutputHandler::outputObjects ( )
inline

Definition at line 195 of file Cluster3D_module.cc.

References artClusterAssociations, artClusterVector, artEdgeSPAssociations, artEdgeVector, artPCAxisVector, artPFPartAxisAssociations, artPFPartClusAssociations, artPFPartEdgeAssociations, artPFParticleVector, artPFPartSeedAssociations, artPFPartSPAssociations, artSeedHitAssociations, artSeedVector, artSpacePointVector, artSPHitAssociations, artVertexEdgeVector, artVertexPointVector, m_evt, m_instanceName, and art::Event::put().

Referenced by lar_cluster3d::Cluster3D::produce().

196  {
197  m_evt.put(std::move(artPCAxisVector));
198  m_evt.put(std::move(artPFParticleVector));
199  m_evt.put(std::move(artClusterVector));
200  m_evt.put(std::move(artSpacePointVector));
202  m_evt.put(std::move(artSeedVector));
203  m_evt.put(std::move(artEdgeVector));
205  m_evt.put(std::move(artPFPartAxisAssociations));
206  m_evt.put(std::move(artPFPartClusAssociations));
207  m_evt.put(std::move(artClusterAssociations));
208  m_evt.put(std::move(artPFPartSPAssociations));
209  m_evt.put(std::move(artPFPartSeedAssociations));
210  m_evt.put(std::move(artPFPartEdgeAssociations));
211  m_evt.put(std::move(artSeedHitAssociations));
212  m_evt.put(std::move(artSPHitAssociations));
213  m_evt.put(std::move(artEdgeSPAssociations));
214  }
std::unique_ptr< std::vector< recob::Edge > > artEdgeVector
std::unique_ptr< art::Assns< recob::Seed, recob::Hit > > artSeedHitAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Seed > > artPFPartSeedAssociations
std::unique_ptr< std::vector< recob::PFParticle > > artPFParticleVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::SpacePoint > > artPFPartSPAssociations
std::unique_ptr< art::Assns< recob::Edge, recob::SpacePoint > > artEdgeSPAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Cluster > > artPFPartClusAssociations
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
std::unique_ptr< art::Assns< recob::SpacePoint, recob::Hit > > artSPHitAssociations
std::unique_ptr< std::vector< recob::PCAxis > > artPCAxisVector
std::unique_ptr< std::vector< recob::Edge > > artVertexEdgeVector
std::unique_ptr< std::vector< recob::SpacePoint > > artVertexPointVector
std::unique_ptr< std::vector< recob::SpacePoint > > artSpacePointVector
std::unique_ptr< art::Assns< recob::PFParticle, recob::PCAxis > > artPFPartAxisAssociations
std::unique_ptr< art::Assns< recob::Cluster, recob::Hit > > artClusterAssociations
std::unique_ptr< art::Assns< recob::PFParticle, recob::Edge > > artPFPartEdgeAssociations
std::unique_ptr< std::vector< recob::Seed > > artSeedVector
std::unique_ptr< std::vector< recob::Cluster > > artClusterVector

Member Data Documentation

std::unique_ptr< art::Assns<recob::Cluster, recob::Hit> > lar_cluster3d::Cluster3D::ArtOutputHandler::artClusterAssociations

Definition at line 225 of file Cluster3D_module.cc.

Referenced by makeClusterHitAssns(), and outputObjects().

std::unique_ptr< std::vector<recob::Cluster> > lar_cluster3d::Cluster3D::ArtOutputHandler::artClusterVector
std::unique_ptr< art::Assns<recob::Edge, recob::SpacePoint> > lar_cluster3d::Cluster3D::ArtOutputHandler::artEdgeSPAssociations

Definition at line 233 of file Cluster3D_module.cc.

Referenced by outputObjects().

std::unique_ptr< std::vector<recob::PCAxis> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPCAxisVector
std::unique_ptr< art::Assns<recob::PFParticle, recob::PCAxis> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPFPartAxisAssociations

Definition at line 226 of file Cluster3D_module.cc.

Referenced by makePFPartPCAAssns(), and outputObjects().

std::unique_ptr< art::Assns<recob::PFParticle, recob::Cluster> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPFPartClusAssociations

Definition at line 227 of file Cluster3D_module.cc.

Referenced by makePFPartClusterAssns(), and outputObjects().

std::unique_ptr< art::Assns<recob::PFParticle, recob::Edge> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPFPartEdgeAssociations

Definition at line 230 of file Cluster3D_module.cc.

Referenced by makePFPartEdgeAssns(), and outputObjects().

std::unique_ptr< art::Assns<recob::PFParticle, recob::Seed> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPFPartSeedAssociations

Definition at line 229 of file Cluster3D_module.cc.

Referenced by makePFPartSeedAssns(), and outputObjects().

std::unique_ptr< art::Assns<recob::PFParticle, recob::SpacePoint> > lar_cluster3d::Cluster3D::ArtOutputHandler::artPFPartSPAssociations

Definition at line 228 of file Cluster3D_module.cc.

Referenced by makePFPartSpacePointAssns(), and outputObjects().

std::unique_ptr< art::Assns<recob::Seed, recob::Hit> > lar_cluster3d::Cluster3D::ArtOutputHandler::artSeedHitAssociations

Definition at line 231 of file Cluster3D_module.cc.

Referenced by outputObjects().

std::unique_ptr< std::vector<recob::Seed> > lar_cluster3d::Cluster3D::ArtOutputHandler::artSeedVector
std::unique_ptr< art::Assns<recob::SpacePoint, recob::Hit> > lar_cluster3d::Cluster3D::ArtOutputHandler::artSPHitAssociations

Definition at line 232 of file Cluster3D_module.cc.

Referenced by makeSpacePointHitAssns(), and outputObjects().

std::unique_ptr< std::vector<recob::Edge> > lar_cluster3d::Cluster3D::ArtOutputHandler::artVertexEdgeVector
std::unique_ptr< std::vector<recob::SpacePoint> > lar_cluster3d::Cluster3D::ArtOutputHandler::artVertexPointVector
std::string& lar_cluster3d::Cluster3D::ArtOutputHandler::m_instanceName
private

Definition at line 237 of file Cluster3D_module.cc.

Referenced by outputObjects().

const art::EDProducer& lar_cluster3d::Cluster3D::ArtOutputHandler::m_owner
private

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