BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnGemStripFdeepModel Class Reference

#include <BmnGemStripFdeepModel.h>

Classes

struct  Impl

Public Member Functions

 BmnGemStripFdeepModel ()
 BmnGemStripFdeepModel (const std::string &path, bool verbose=true)
virtual ~BmnGemStripFdeepModel ()
bool Load (const std::string &path, bool verbose=true)
void Clear ()
bool IsLoaded () const
int GetInputDim () const
int GetOutputDim () const
const std::string & GetFilePath () const
void Print (std::ostream &os=std::cout) const
bool Predict (const float *input, float *output) const
std::vector< float > Predict (const std::vector< float > &input) const
bool PredictSplit (const float *common, int n_common, const float *specific, int n_rows, float *output) const
 BmnGemStripFdeepModel ()
 BmnGemStripFdeepModel (const std::string &path, bool verbose=true)
virtual ~BmnGemStripFdeepModel ()
bool Load (const std::string &path, bool verbose=true)
void Clear ()
bool IsLoaded () const
int GetInputDim () const
int GetOutputDim () const
const std::string & GetFilePath () const
void Print (std::ostream &os=std::cout) const
bool Predict (const float *input, float *output) const
std::vector< float > Predict (const std::vector< float > &input) const
bool PredictSplit (const float *common, int n_common, const float *specific, int n_rows, float *output) const

Static Public Member Functions

static bool IsBuiltWithFdeep ()
static std::shared_ptr< const BmnGemStripFdeepModel > GetShared (const std::string &path="")
static void SetDefaultPath (const std::string &path)
static std::string GetDefaultPath ()
static std::string GetBuiltinDefaultPath ()
static void ClearSharedCache ()
static bool IsBuiltWithFdeep ()
static std::shared_ptr< const BmnGemStripFdeepModel > GetShared (const std::string &path="")
static void SetDefaultPath (const std::string &path)
static std::string GetDefaultPath ()
static std::string GetBuiltinDefaultPath ()
static void ClearSharedCache ()

Private Member Functions

 BmnGemStripFdeepModel (const BmnGemStripFdeepModel &)=delete
BmnGemStripFdeepModel & operator= (const BmnGemStripFdeepModel &)=delete
 BmnGemStripFdeepModel (const BmnGemStripFdeepModel &)=delete
BmnGemStripFdeepModel & operator= (const BmnGemStripFdeepModel &)=delete

Private Attributes

std::unique_ptr< Impl > fImpl
bool fLoaded
int fInputDim
int fOutputDim
std::string fFilePath

Detailed Description

Definition at line 32 of file BmnGemStripFdeepModel.h.

Constructor & Destructor Documentation

◆ BmnGemStripFdeepModel() [1/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( )

Definition at line 78 of file BmnGemStripFdeepModel.cxx.

References fInputDim, fLoaded, and fOutputDim.

Referenced by BmnGemStripFdeepModel(), BmnGemStripFdeepModel(), and operator=().

Here is the caller graph for this function:

◆ BmnGemStripFdeepModel() [2/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( const std::string & path,
bool verbose = true )
explicit

Definition at line 84 of file BmnGemStripFdeepModel.cxx.

References BmnGemStripFdeepModel(), and Load().

Here is the call graph for this function:

◆ ~BmnGemStripFdeepModel() [1/2]

BmnGemStripFdeepModel::~BmnGemStripFdeepModel ( )
virtual

Definition at line 90 of file BmnGemStripFdeepModel.cxx.

◆ BmnGemStripFdeepModel() [3/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( const BmnGemStripFdeepModel & )
privatedelete

References BmnGemStripFdeepModel().

Here is the call graph for this function:

◆ BmnGemStripFdeepModel() [4/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( )

◆ BmnGemStripFdeepModel() [5/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( const std::string & path,
bool verbose = true )
explicit

◆ ~BmnGemStripFdeepModel() [2/2]

virtual BmnGemStripFdeepModel::~BmnGemStripFdeepModel ( )
virtual

◆ BmnGemStripFdeepModel() [6/6]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( const BmnGemStripFdeepModel & )
privatedelete

References BmnGemStripFdeepModel().

Here is the call graph for this function:

Member Function Documentation

◆ Clear() [1/2]

void BmnGemStripFdeepModel::Clear ( )

Definition at line 92 of file BmnGemStripFdeepModel.cxx.

References fFilePath, fImpl, fInputDim, fLoaded, and fOutputDim.

Referenced by Load().

Here is the caller graph for this function:

◆ Clear() [2/2]

void BmnGemStripFdeepModel::Clear ( )

◆ ClearSharedCache() [1/2]

void BmnGemStripFdeepModel::ClearSharedCache ( )
static

Definition at line 286 of file BmnGemStripFdeepModel.cxx.

◆ ClearSharedCache() [2/2]

void BmnGemStripFdeepModel::ClearSharedCache ( )
static

◆ GetBuiltinDefaultPath() [1/2]

std::string BmnGemStripFdeepModel::GetBuiltinDefaultPath ( )
static

Definition at line 281 of file BmnGemStripFdeepModel.cxx.

◆ GetBuiltinDefaultPath() [2/2]

std::string BmnGemStripFdeepModel::GetBuiltinDefaultPath ( )
static

◆ GetDefaultPath() [1/2]

std::string BmnGemStripFdeepModel::GetDefaultPath ( )
static

Definition at line 274 of file BmnGemStripFdeepModel.cxx.

◆ GetDefaultPath() [2/2]

std::string BmnGemStripFdeepModel::GetDefaultPath ( )
static

◆ GetFilePath() [1/2]

const std::string & BmnGemStripFdeepModel::GetFilePath ( ) const
inline

Definition at line 58 of file BmnGemStripFdeepModel.h.

References fFilePath.

Referenced by BmnGemStripModule::AddRealPointFull_ANNGenerator(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep_Parallel().

Here is the caller graph for this function:

◆ GetFilePath() [2/2]

const std::string & BmnGemStripFdeepModel::GetFilePath ( ) const
inline

Definition at line 58 of file BmnGemStripFdeepModel.h.

References fFilePath.

◆ GetInputDim() [1/2]

int BmnGemStripFdeepModel::GetInputDim ( ) const
inline

Definition at line 56 of file BmnGemStripFdeepModel.h.

References fInputDim.

Referenced by BmnGemStripModule::AddRealPointFull_ANNGenerator(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep_Parallel().

Here is the caller graph for this function:

◆ GetInputDim() [2/2]

int BmnGemStripFdeepModel::GetInputDim ( ) const
inline

Definition at line 56 of file BmnGemStripFdeepModel.h.

References fInputDim.

◆ GetOutputDim() [1/2]

int BmnGemStripFdeepModel::GetOutputDim ( ) const
inline

Definition at line 57 of file BmnGemStripFdeepModel.h.

References fOutputDim.

Referenced by BmnGemStripModule::AddRealPointFull_ANNGenerator(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep_Parallel().

Here is the caller graph for this function:

◆ GetOutputDim() [2/2]

int BmnGemStripFdeepModel::GetOutputDim ( ) const
inline

Definition at line 57 of file BmnGemStripFdeepModel.h.

References fOutputDim.

◆ GetShared() [1/2]

std::shared_ptr< const BmnGemStripFdeepModel > BmnGemStripFdeepModel::GetShared ( const std::string & path = "")
static

Definition at line 236 of file BmnGemStripFdeepModel.cxx.

Referenced by BmnGemStripModule::AddRealPointFull_ANNGenerator(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep(), and BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep_Parallel().

Here is the caller graph for this function:

◆ GetShared() [2/2]

std::shared_ptr< const BmnGemStripFdeepModel > BmnGemStripFdeepModel::GetShared ( const std::string & path = "")
static

◆ IsBuiltWithFdeep() [1/2]

bool BmnGemStripFdeepModel::IsBuiltWithFdeep ( )
static

Definition at line 101 of file BmnGemStripFdeepModel.cxx.

References BMN_WITH_FDEEP.

Referenced by Print().

Here is the caller graph for this function:

◆ IsBuiltWithFdeep() [2/2]

bool BmnGemStripFdeepModel::IsBuiltWithFdeep ( )
static

◆ IsLoaded() [1/2]

bool BmnGemStripFdeepModel::IsLoaded ( ) const
inline

Definition at line 49 of file BmnGemStripFdeepModel.h.

References fLoaded.

◆ IsLoaded() [2/2]

bool BmnGemStripFdeepModel::IsLoaded ( ) const
inline

Definition at line 49 of file BmnGemStripFdeepModel.h.

References fLoaded.

◆ Load() [1/2]

bool BmnGemStripFdeepModel::Load ( const std::string & path,
bool verbose = true )

Definition at line 107 of file BmnGemStripFdeepModel.cxx.

References Clear(), fFilePath, fImpl, fInputDim, fLoaded, and fOutputDim.

Referenced by BmnGemStripFdeepModel().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Load() [2/2]

bool BmnGemStripFdeepModel::Load ( const std::string & path,
bool verbose = true )

◆ operator=() [1/2]

BmnGemStripFdeepModel & BmnGemStripFdeepModel::operator= ( const BmnGemStripFdeepModel & )
privatedelete

References BmnGemStripFdeepModel().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnGemStripFdeepModel & BmnGemStripFdeepModel::operator= ( const BmnGemStripFdeepModel & )
privatedelete

References BmnGemStripFdeepModel(), fFilePath, fImpl, fInputDim, fLoaded, and fOutputDim.

Here is the call graph for this function:

◆ Predict() [1/4]

bool BmnGemStripFdeepModel::Predict ( const float * input,
float * output ) const

Definition at line 160 of file BmnGemStripFdeepModel.cxx.

References fFilePath, fImpl, fInputDim, fLoaded, and fOutputDim.

Referenced by BmnGemStripModule::AddRealPointFull_ANNGenerator(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep(), BmnGemStripModule::AddRealPointFull_ANNStripGenerator_Fdeep_Parallel(), Predict(), and PredictSplit().

Here is the caller graph for this function:

◆ Predict() [2/4]

bool BmnGemStripFdeepModel::Predict ( const float * input,
float * output ) const

◆ Predict() [3/4]

std::vector< float > BmnGemStripFdeepModel::Predict ( const std::vector< float > & input) const

Definition at line 186 of file BmnGemStripFdeepModel.cxx.

References fInputDim, fLoaded, fOutputDim, and Predict().

Here is the call graph for this function:

◆ Predict() [4/4]

std::vector< float > BmnGemStripFdeepModel::Predict ( const std::vector< float > & input) const

◆ PredictSplit() [1/2]

bool BmnGemStripFdeepModel::PredictSplit ( const float * common,
int n_common,
const float * specific,
int n_rows,
float * output ) const

Definition at line 197 of file BmnGemStripFdeepModel.cxx.

References fInputDim, fLoaded, fOutputDim, and Predict().

Here is the call graph for this function:

◆ PredictSplit() [2/2]

bool BmnGemStripFdeepModel::PredictSplit ( const float * common,
int n_common,
const float * specific,
int n_rows,
float * output ) const

◆ Print() [1/2]

void BmnGemStripFdeepModel::Print ( std::ostream & os = std::cout) const

Definition at line 224 of file BmnGemStripFdeepModel.cxx.

References fFilePath, fInputDim, fLoaded, fOutputDim, and IsBuiltWithFdeep().

Here is the call graph for this function:

◆ Print() [2/2]

void BmnGemStripFdeepModel::Print ( std::ostream & os = std::cout) const

◆ SetDefaultPath() [1/2]

void BmnGemStripFdeepModel::SetDefaultPath ( const std::string & path)
static

Definition at line 267 of file BmnGemStripFdeepModel.cxx.

◆ SetDefaultPath() [2/2]

void BmnGemStripFdeepModel::SetDefaultPath ( const std::string & path)
static

Member Data Documentation

◆ fFilePath

std::string BmnGemStripFdeepModel::fFilePath
private

Definition at line 100 of file BmnGemStripFdeepModel.h.

Referenced by Clear(), GetFilePath(), Load(), operator=(), Predict(), and Print().

◆ fImpl

std::unique_ptr< Impl > BmnGemStripFdeepModel::fImpl
private

Definition at line 95 of file BmnGemStripFdeepModel.h.

Referenced by Clear(), Load(), operator=(), and Predict().

◆ fInputDim

int BmnGemStripFdeepModel::fInputDim
private

◆ fLoaded

bool BmnGemStripFdeepModel::fLoaded
private

◆ fOutputDim

int BmnGemStripFdeepModel::fOutputDim
private

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