LArSoft  v07_13_02
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, std::string &extremeName)
 
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::SpacePoint > > artExtremePointVector
 
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::EDProducerfOwner
 
art::EventfEvt
 
std::string & fInstanceName
 
std::string & fExtremeName
 

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,
std::string &  extremeName 
)
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  artExtremePointVector( new std::vector<recob::SpacePoint> ),
144  artSeedVector( new std::vector<recob::Seed> ),
145  artEdgeVector( new std::vector<recob::Edge> ),
146  artVertexEdgeVector( new std::vector<recob::Edge> ),
156  fOwner(owner),
157  fEvt(evt),
158  fInstanceName(instanceName),
159  fExtremeName(extremeName)
160  {}
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::SpacePoint > > artExtremePointVector
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 162 of file Cluster3D_module.cc.

References artClusterAssociations, artClusterVector, util::CreateAssn(), fEvt, and fOwner.

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

163  {
165  }
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 182 of file Cluster3D_module.cc.

References artClusterVector, artPFPartClusAssociations, artPFParticleVector, util::CreateAssn(), fEvt, and fOwner.

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

183  {
185  }
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 192 of file Cluster3D_module.cc.

References artEdgeVector, artPFPartEdgeAssociations, artPFParticleVector, util::CreateAssn(), fEvt, and fOwner.

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

193  {
195  }
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 172 of file Cluster3D_module.cc.

References artPCAxisVector, artPFPartAxisAssociations, artPFParticleVector, util::CreateAssn(), fEvt, and fOwner.

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

173  {
175  }
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 177 of file Cluster3D_module.cc.

References artPFParticleVector, artPFPartSeedAssociations, artSeedVector, util::CreateAssn(), fEvt, and fOwner.

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

178  {
180  }
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 187 of file Cluster3D_module.cc.

References artPFParticleVector, artPFPartSPAssociations, artSpacePointVector, util::CreateAssn(), fEvt, and fOwner.

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

188  {
190  }
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 167 of file Cluster3D_module.cc.

References artSpacePointVector, artSPHitAssociations, util::CreateAssn(), fEvt, and fOwner.

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

168  {
170  }
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 197 of file Cluster3D_module.cc.

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

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

198  {
199  fEvt.put(std::move(artPCAxisVector));
200  fEvt.put(std::move(artPFParticleVector));
201  fEvt.put(std::move(artClusterVector));
202  fEvt.put(std::move(artSpacePointVector));
205  fEvt.put(std::move(artSeedVector));
206  fEvt.put(std::move(artEdgeVector));
208  fEvt.put(std::move(artPFPartAxisAssociations));
209  fEvt.put(std::move(artPFPartClusAssociations));
210  fEvt.put(std::move(artClusterAssociations));
211  fEvt.put(std::move(artPFPartSPAssociations));
212  fEvt.put(std::move(artPFPartSeedAssociations));
213  fEvt.put(std::move(artPFPartEdgeAssociations));
214  fEvt.put(std::move(artSeedHitAssociations));
215  fEvt.put(std::move(artSPHitAssociations));
216  fEvt.put(std::move(artEdgeSPAssociations));
217  }
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::SpacePoint > > artExtremePointVector
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 229 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 237 of file Cluster3D_module.cc.

Referenced by outputObjects().

std::unique_ptr< std::vector<recob::SpacePoint> > lar_cluster3d::Cluster3D::ArtOutputHandler::artExtremePointVector
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 230 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 231 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 234 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 233 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 232 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 235 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 236 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::fExtremeName
private

Definition at line 242 of file Cluster3D_module.cc.

Referenced by outputObjects().

std::string& lar_cluster3d::Cluster3D::ArtOutputHandler::fInstanceName
private

Definition at line 241 of file Cluster3D_module.cc.

Referenced by outputObjects().

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

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