#include <MVAReader.h>
Public Member Functions | |
FVectorReader (const art::Event &evt, const art::InputTag &tag) | |
T const & | item (size_t key) const |
Access data product at index "key". More... | |
std::vector< T > const & | items () const |
std::vector< FeatureVector< N > > const & | vectors () const |
Access the vector of the feature vectors. More... | |
std::array< float, N > | getVector (size_t key) const |
Get copy of the feature vector at index "key". More... | |
std::array< float, N > | getVector (art::Ptr< T > const &item) const |
Get copy of the feature vector idicated with art::Ptr::key(). More... | |
size_t | size () const |
Get the number of contained items (no. of data product objects equal to no. of feature vectors). More... | |
size_t | length () const |
Get the length of a single feature vector. More... | |
const std::string & | dataTag () const |
Get the input tag (string representation) of data product used to calculate feature vectors. More... | |
const art::Handle< std::vector< T > > & | dataHandle () const |
Access the data product handle. More... | |
const std::string & | columnName (size_t index) const |
Meaning/name of the index'th column in the collection of feature vectors. More... | |
int | getIndex (const std::string &name) const |
Index of column with given name, or -1 if name not found. More... | |
Static Public Member Functions | |
static std::unique_ptr< FVectorReader > | create (const art::Event &evt, const art::InputTag &tag) |
Protected Member Functions | |
FVectorReader (const art::Event &evt, const art::InputTag &tag, bool &success) | |
Not-throwing constructor. More... | |
Protected Member Functions inherited from anab::FVectorWrapperBase | |
std::string | getProductName (std::type_info const &ti) const |
size_t | getProductHash (std::type_info const &ti) const |
Private Attributes | |
FVecDescription< N > const * | fDescription |
std::vector< FeatureVector< N > > const * | fVectors |
art::Handle< std::vector< T > > | fDataHandle |
Friends | |
std::ostream & | operator<< (std::ostream &o, FVectorReader const &a) |
Helper for reading the reconstructed objects of type T together with associated N-ellement feature vectors with their metadata (this class is not a data product).
Definition at line 23 of file MVAReader.h.
anab::FVectorReader< T, N >::FVectorReader | ( | const art::Event & | evt, |
const art::InputTag & | tag | ||
) |
Create the wrapper for feature vectors stored in the event evt with the provided input tag (the same tag which was used to save vectors with FVectorWriter class). Throws exception if data products not found in the event.
Definition at line 170 of file MVAReader.h.
|
protected |
Not-throwing constructor.
Definition at line 203 of file MVAReader.h.
|
inline |
Meaning/name of the index'th column in the collection of feature vectors.
Definition at line 79 of file MVAReader.h.
|
inlinestatic |
Create the helper for feature vectors stored in the event evt with the provided input tag (the same tag which was used to save vectors with FVectorWriter class). Returns nullptr if data products not found in the event.
Definition at line 29 of file MVAReader.h.
|
inline |
Access the data product handle.
Definition at line 76 of file MVAReader.h.
|
inline |
Get the input tag (string representation) of data product used to calculate feature vectors.
Definition at line 73 of file MVAReader.h.
|
inline |
Index of column with given name, or -1 if name not found.
Definition at line 82 of file MVAReader.h.
|
inline |
Get copy of the feature vector at index "key".
Access feature vector data at index "key". *** WOULD LIKE TO CHANGE TYPE OF FVEC DATA MEMBER TO std::array AND THEN ENABLE THIS FUNCTION ***
Definition at line 54 of file MVAReader.h.
|
inline |
Get copy of the feature vector idicated with art::Ptr::key().
Definition at line 62 of file MVAReader.h.
|
inline |
Access data product at index "key".
Definition at line 43 of file MVAReader.h.
|
inline |
Definition at line 44 of file MVAReader.h.
|
inline |
|
inline |
Get the number of contained items (no. of data product objects equal to no. of feature vectors).
Definition at line 67 of file MVAReader.h.
|
inline |
Access the vector of the feature vectors.
Definition at line 47 of file MVAReader.h.
|
friend |
Definition at line 84 of file MVAReader.h.
|
private |
Definition at line 97 of file MVAReader.h.
|
private |
Definition at line 95 of file MVAReader.h.
|
private |
Definition at line 96 of file MVAReader.h.