Infrastructure for support of associated data. More...
Namespaces | |
proxy::details | |
Classes | |
struct | proxy::AssociatedDataProxyMakerBase< Main, Aux, Metadata, AuxTag > |
Creates an associated data wrapper for the specified types. More... | |
class | proxy::AssociatedDataProxyMaker< Main, Aux, Metadata, CollProxy, Tag > |
Creates an associated data wrapper for the specified types. More... | |
struct | proxy::OneTo01DataProxyMakerBase< Main, Aux, Metadata, AuxTag > |
Creates an one-to-(zero-or-one) wrapper for the specified types. More... | |
class | proxy::OneTo01DataProxyMaker< Main, Aux, Metadata, CollProxy, Tag > |
Creates an one-to-(zero-or-one) wrapper for the specified types. More... | |
class | WithAssociatedStruct |
Helper to create associated data proxy. More... | |
Functions | |
template<typename Tag , typename Assns > | |
auto | proxy::makeAssociatedDataFrom (Assns const &assns, std::size_t minSize=0) |
template<typename Assns > | |
auto | proxy::makeAssociatedDataFrom (Assns const &assns, std::size_t minSize=0) |
template<typename Main , typename Aux , typename Metadata , typename Tag , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Event const &event, art::InputTag const &tag, std::size_t minSize=0) |
Creates and returns an associated data object. More... | |
template<typename Main , typename Aux , typename Metadata , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Event const &event, art::InputTag const &tag, std::size_t minSize=0) |
template<typename Main , typename Aux , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Event const &event, art::InputTag const &tag, std::size_t minSize=0) |
template<typename Aux , typename Metadata , typename Tag , typename Handle , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Handle &&handle, Event const &event, art::InputTag const &tag) |
Creates and returns an associated data object. More... | |
template<typename Aux , typename Metadata , typename Handle , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Handle &&handle, Event const &event, art::InputTag const &tag) |
template<typename Aux , typename Handle , typename Event > | |
auto | proxy::makeAssociatedDataFrom (Handle &&handle, Event const &event, art::InputTag const &tag) |
template<typename Tag , typename MainColl , typename Assns > | |
auto | proxy::makeAssociatedDataFrom (MainColl const &mainColl, Assns const &assns) |
Creates and returns an associated data object. More... | |
template<typename MainColl , typename Assns > | |
auto | proxy::makeAssociatedDataFrom (MainColl const &mainColl, Assns const &assns) |
template<typename Tag , typename Assns > | |
auto | proxy::makeOneTo01dataFrom (Assns const &assns, std::size_t minSize=0) |
Processes and returns an one-to-(zero/one) associated data object. More... | |
template<typename Assns > | |
auto | proxy::makeOneTo01dataFrom (Assns const &assns, std::size_t minSize=0) |
template<typename Main , typename Aux , typename Metadata , typename Tag , typename Event > | |
auto | proxy::makeOneTo01dataFrom (Event const &event, art::InputTag const &tag, std::size_t minSize=0) |
Creates and returns an one-to-(zero/one) associated data object. More... | |
template<typename Main , typename Aux , typename Metadata , typename Event > | |
auto | proxy::makeOneTo01dataFrom (Event const &event, art::InputTag const &tag, std::size_t minSize=0) |
template<typename Aux , typename Metadata , typename Tag , typename Handle , typename Event > | |
auto | proxy::makeOneTo01dataFrom (Handle &&handle, Event const &event, art::InputTag const &tag) |
Creates and returns an one-to-(zero/one) associated data object. More... | |
template<typename Aux , typename Metadata , typename Handle , typename Event > | |
auto | proxy::makeOneTo01dataFrom (Handle &&handle, Event const &event, art::InputTag const &tag) |
template<typename Tag , typename MainColl , typename Assns > | |
auto | proxy::makeOneTo01dataFrom (MainColl const &mainColl, Assns const &assns) |
Creates and returns an one-to-(zero/one) associated data object. More... | |
template<typename MainColl , typename Assns > | |
auto | proxy::makeOneTo01dataFrom (MainColl const &mainColl, Assns const &assns) |
Infrastructure for support of associated data.
Associated data is auxiliary data connected to the main data via art associations. The following associated data are currently supported:
auto proxy::makeAssociatedDataFrom | ( | Assns const & | assns, |
std::size_t | minSize = 0 |
||
) |
Definition at line 35 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Assns const & | assns, |
std::size_t | minSize = 0 |
||
) |
Definition at line 39 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Event const & | event, |
art::InputTag const & | tag, | ||
std::size_t | minSize = 0 |
||
) |
Creates and returns an associated data object.
Main | type of main object to be associated |
Aux | type of data to be associated to the main objects |
Metadata | type of metadata in the association (if omitted: void ) |
Tag | the tag labelling this associated data (if omitted: Aux ) |
Event | type of event to read associations from |
event | event to read associations from |
tag | input tag of the association object |
minSize | minimum number of entries in the produced association data |
AssociatedData
filled with associations from tag
The association being retrieved must fulfill the requirements of one-to-many sequential association.
Elements in the main collection not associated with any object will be recorded as such. If there is information for less than minSize
main objects, more records will be added to mark the missing objects as not associated to anything.
Two template types must be explicitly specified, e.g.
Definition at line 184 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Event const & | event, |
art::InputTag const & | tag, | ||
std::size_t | minSize = 0 |
||
) |
Definition at line 76 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Event const & | event, |
art::InputTag const & | tag, | ||
std::size_t | minSize = 0 |
||
) |
Definition at line 84 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Handle && | handle, |
Event const & | event, | ||
art::InputTag const & | tag | ||
) |
Creates and returns an associated data object.
Aux | type of data to be associated to the main objects |
Metadata | type of metadata in the association (if omitted: void ) |
Tag | the tag labelling this associated data (if omitted: Aux ) |
Handle | type of handle to the main collection object |
Event | type of event to read associations from |
handle | handle to the main collection object |
event | event to read associations from |
tag | input tag of the association object |
AssociatedData
filled with associations from tag
makeAssociatedDataFrom(Event const&, art::InputTag, std::size_t)
This function operates like makeAssociatedDataFrom(Event const&, art::InputTag, std::size_t)
, but it extracts the information about the type of main object and the minimum number of them from a handle. The handle object is expected to behave as a smart pointer to a collection of elements of the associated type.
One template type must be explicitly specified, e.g.
Definition at line 207 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Handle && | handle, |
Event const & | event, | ||
art::InputTag const & | tag | ||
) |
Definition at line 124 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | Handle && | handle, |
Event const & | event, | ||
art::InputTag const & | tag | ||
) |
Definition at line 132 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | MainColl const & | mainColl, |
Assns const & | assns | ||
) |
Creates and returns an associated data object.
Tag | the tag labelling this associated data (if omitted: Aux ) |
MainColl | type of the main collection object |
Assns | type of the association object |
mainColl | the main collection object |
assns | association data object |
AssociatedData
wrapping the information in assns
This function operates like makeAssociatedDataFrom(Assns const&, std::size_t)
, where the size is extracted from the main data collection.
Definition at line 154 of file makeAssociatedDataFrom.h.
auto proxy::makeAssociatedDataFrom | ( | MainColl const & | mainColl, |
Assns const & | assns | ||
) |
Definition at line 158 of file makeAssociatedDataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Assns const & | assns, |
std::size_t | minSize = 0 |
||
) |
Processes and returns an one-to-(zero/one) associated data object.
Tag | the tag labelling this associated data (if omitted: second type of the association: right_t ) |
Assns | type of association to be processed |
assns | association object to be processed |
minSize | minimum number of entries in the produced association data |
OneTo01Data
filled with associations from tag
The content of the association object must fulfill the requirements of one-to-(zero or one) sequential association. The Assns
type is expected to be a art::Assns
instance. At least, the Assns
type is required to have left_t
and right_t
definitions representing respectively the main data type and the associated one, and to respond to begin()
and end()
functions. The iterated object must also respond to std::get<0>()
with a art::Ptr<left_t>
and to std::get<1>()
with a art::Ptr<right_t>
.
Elements in the main collection not associated with any object will present an invalid art pointer (isNull()
true). If there is information for less than minSize
main objects, more records will be added to mark the missing objects as not associated to anything.
will have assData
tagged as recob::Vertex
.
Definition at line 67 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Assns const & | assns, |
std::size_t | minSize = 0 |
||
) |
Definition at line 71 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Event const & | event, |
art::InputTag const & | tag, | ||
std::size_t | minSize = 0 |
||
) |
Creates and returns an one-to-(zero/one) associated data object.
Main | type of main object to be associated |
Aux | type of data to be associated to the main objects |
Metadata | type of metadata in the association |
Tag | the tag labelling this associated data (if omitted: Aux ) |
Event | type of event to read associations from |
event | event to read associations from |
tag | input tag of the association object |
minSize | minimum number of entries in the produced association data |
OneTo01Data
filled with associations from tag
makeOneTo01dataFrom(Assns, std::size_t)
The association being retrieved must fulfill the requirements of one-to-(zero or one) sequential association.
Two template types must be explicitly specified, e.g.
Definition at line 192 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Event const & | event, |
art::InputTag const & | tag, | ||
std::size_t | minSize = 0 |
||
) |
Definition at line 103 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Handle && | handle, |
Event const & | event, | ||
art::InputTag const & | tag | ||
) |
Creates and returns an one-to-(zero/one) associated data object.
Aux | type of data to be associated to the main objects |
Tag | the tag labelling this associated data (if omitted: Aux ) |
Handle | type of handle to the main collection object |
Event | type of event to read associations from |
handle | handle to the main collection object |
event | event to read associations from |
tag | input tag of the association object |
OneTo01Data
wrapping the information in assns
makeAssociatedDataFrom(Event const&, art::InputTag, std::size_t)
This function operates like makeOneTo01dataFrom(Event const&, art::InputTag, std::size_t)
, but it extracts the information about the type of main object and the minimum number of them from a handle. The handle object is expected to behave as a smart pointer to a collection of elements of the associated type.
One template type must be explicitly specified, e.g.
Definition at line 216 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | Handle && | handle, |
Event const & | event, | ||
art::InputTag const & | tag | ||
) |
Definition at line 142 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | MainColl const & | mainColl, |
Assns const & | assns | ||
) |
Creates and returns an one-to-(zero/one) associated data object.
Tag | the tag labelling this associated data (if omitted: Aux ) |
MainColl | type of the main collection object |
Assns | type of the association object |
mainColl | the main collection object |
assns | association data object |
OneTo01Data
wrapping the information in assns
This function operates like makeOneTo01dataFrom(Assns const&, std::size_t)
, where the size is extracted from the main data collection.
Definition at line 164 of file makeOneTo01dataFrom.h.
auto proxy::makeOneTo01dataFrom | ( | MainColl const & | mainColl, |
Assns const & | assns | ||
) |
Definition at line 168 of file makeOneTo01dataFrom.h.