All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces
sbncode/sbncode/CAFMaker/AssociationUtil.h File Reference
#include "art/Framework/Principal/Event.h"
#include "art/Framework/Core/EDProducer.h"
#include "art/Framework/Core/EDFilter.h"
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Persistency/Common/PtrVector.h"
#include "canvas/Persistency/Common/Assns.h"
#include "canvas/Persistency/Provenance/ProductID.h"
#include "canvas/Persistency/Common/FindOne.h"
#include "canvas/Persistency/Common/FindOneP.h"
#include "messagefacility/MessageLogger/MessageLogger.h"

Go to the source code of this file.

Namespaces

 util
 Namespace for general, non-LArSoft-specific utilities.
 

Functions

Create and query associations
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to 1 association between a new product and one already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t begin_indx, size_t end_indx, std::string const &instance=std::string())
 Create a 1 to 1 association between each of a series of new products and one already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn)
 Create a 1 to 1 association between two products already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, art::PtrVector< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to many association between a new product and a PtrVector already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Ptr< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn)
 Create a 1 to many association between products already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to many association between a new product and a vector of Ptrs already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string())
 Create a 1 to many association between new products. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDProducer const &prod, art::Event &evt, art::Assns< T, U > &assn, std::vector< T > &a, std::vector< U > &b, size_t indxb=UINT_MAX, size_t indxa=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string())
 Create a 1 to 1 between new products. More...
 
template<class T , class U >
static std::vector< const U * > util::FindUNotAssociatedToT (art::Handle< U > b, art::Event const &evt, std::string const &label)
 Return all objects of type U that are not associated to objects of type T. More...
 
template<class T , class U >
static std::vector< art::Ptr< U > > util::FindUNotAssociatedToTP (art::Handle< U > b, art::Event const &evt, std::string const &label)
 Return all objects of type U that are not associated to objects of type T. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to 1 association between a new product and one already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn, size_t begin_indx, size_t end_indx, std::string const &instance=std::string())
 Create a 1 to 1 association between each of a series of new products and one already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Ptr< T > &a, art::Ptr< U > b, art::Assns< T, U > &assn)
 Create a 1 to 1 association between two products already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, art::PtrVector< U > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to many association between a new product and a PtrVector already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Ptr< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn)
 Create a 1 to many association between products already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, std::vector< art::Ptr< U > > b, art::Assns< T, U > &assn, size_t indx=UINT_MAX, std::string const &instance=std::string())
 Create a 1 to many association between a new product and a vector of Ptrs already in the event. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, std::vector< T > &a, std::vector< U > &b, art::Assns< T, U > &assn, size_t startU, size_t endU, size_t indx=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string())
 Create a 1 to many association between new products. More...
 
template<class T , class U >
static bool util::CreateAssn (art::EDFilter const &prod, art::Event &evt, art::Assns< T, U > &assn, std::vector< T > &a, std::vector< U > &b, size_t indxb=UINT_MAX, size_t indxa=UINT_MAX, std::string const &instancea=std::string(), std::string const &instanceb=std::string())
 Create a 1 to 1 between new products. More...