BmnRoot 26.10.0-233-gb9bbe585
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

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 ()

Private Member Functions

 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/3]

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/3]

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()

BmnGemStripFdeepModel::~BmnGemStripFdeepModel ( )
virtual

Definition at line 90 of file BmnGemStripFdeepModel.cxx.

◆ BmnGemStripFdeepModel() [3/3]

BmnGemStripFdeepModel::BmnGemStripFdeepModel ( const BmnGemStripFdeepModel & )
privatedelete

References BmnGemStripFdeepModel().

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

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:

◆ ClearSharedCache()

void BmnGemStripFdeepModel::ClearSharedCache ( )
static

Definition at line 286 of file BmnGemStripFdeepModel.cxx.

◆ GetBuiltinDefaultPath()

std::string BmnGemStripFdeepModel::GetBuiltinDefaultPath ( )
static

Definition at line 281 of file BmnGemStripFdeepModel.cxx.

◆ GetDefaultPath()

std::string BmnGemStripFdeepModel::GetDefaultPath ( )
static

Definition at line 274 of file BmnGemStripFdeepModel.cxx.

◆ GetFilePath()

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:

◆ GetInputDim()

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:

◆ GetOutputDim()

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:

◆ GetShared()

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:

◆ IsBuiltWithFdeep()

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:

◆ IsLoaded()

bool BmnGemStripFdeepModel::IsLoaded ( ) const
inline

Definition at line 49 of file BmnGemStripFdeepModel.h.

References fLoaded.

◆ Load()

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:

◆ operator=()

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

References BmnGemStripFdeepModel().

Here is the call graph for this function:

◆ Predict() [1/2]

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/2]

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:

◆ PredictSplit()

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:

◆ Print()

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:

◆ SetDefaultPath()

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

Definition at line 267 of file BmnGemStripFdeepModel.cxx.

Member Data Documentation

◆ fFilePath

std::string BmnGemStripFdeepModel::fFilePath
private

Definition at line 100 of file BmnGemStripFdeepModel.h.

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

◆ fImpl

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

Definition at line 95 of file BmnGemStripFdeepModel.h.

Referenced by Clear(), Load(), 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: