Loading [MathJax]/extensions/tex2jax.js
AmpGen 2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
AmpGen::FastDT Class Reference

Detailed Description

Definition at line 24 of file FastDT.h.

Classes

struct  Node
 

Public Types

enum  Strategy { best , random }
 

Public Member Functions

 FastDT ()=default
 
template<typename ... arg_types>
 FastDT (const arg_types &... args)
 
 FastDT (const ArgumentPack &args)
 
 FastDT (const std::string &textFile)
 
 FastDT (std::ifstream &, const unsigned &)
 
int getBinNumber (const double *event) const
 
int findNode (const double *event) const
 
std::pair< double, double > bestCut_ls (const std::vector< double * > &source, const std::vector< double * > &target, int index, const size_t &dim, const size_t &minEvents)
 
std::vector< Nodeconst_nodes () const
 
std::vector< int > makeQueue ()
 
void setStep (const std::vector< double > &step)
 
int makeNodes (std::vector< double * > &, std::queue< unsigned >, const unsigned &)
 
int makeNodes (std::vector< double * >, std::vector< double * >)
 
int makeNodes (std::vector< double * >, std::vector< double * >, std::vector< int >, const unsigned &)
 
void refreshQueue (std::vector< double * > &evts, std::queue< unsigned > &indexQueue, const unsigned &depth)
 
void serialise (std::ofstream &)
 
void setQueueOrdering (std::vector< unsigned > &)
 
void readFromStream (std::ifstream &stream, const int &n_nodes)
 

Public Attributes

std::vector< Nodem_nodes
 
std::queue< unsigned > m_queueOrdering
 
unsigned m_dim = {0}
 
unsigned m_minEvents = {0}
 
unsigned m_maxDepth = {0}
 
int m_endNodeCounter = {0}
 
Strategy m_strategy = {Strategy::random}
 
std::vector< double > m_minStep
 

Member Enumeration Documentation

◆ Strategy

Enumerator
best 
random 

Definition at line 27 of file FastDT.h.

Constructor & Destructor Documentation

◆ FastDT() [1/5]

AmpGen::FastDT::FastDT ( )
default

◆ FastDT() [2/5]

template<typename ... arg_types>
AmpGen::FastDT::FastDT ( const arg_types &... args)
inline

Definition at line 40 of file FastDT.h.

◆ FastDT() [3/5]

AmpGen::FastDT::FastDT ( const ArgumentPack & args)

◆ FastDT() [4/5]

AmpGen::FastDT::FastDT ( const std::string & textFile)

◆ FastDT() [5/5]

AmpGen::FastDT::FastDT ( std::ifstream & ,
const unsigned &  )

Member Function Documentation

◆ bestCut_ls()

std::pair< double, double > AmpGen::FastDT::bestCut_ls ( const std::vector< double * > & source,
const std::vector< double * > & target,
int index,
const size_t & dim,
const size_t & minEvents )

◆ const_nodes()

std::vector< Node > AmpGen::FastDT::const_nodes ( ) const
inline

Definition at line 52 of file FastDT.h.

◆ findNode()

int AmpGen::FastDT::findNode ( const double * event) const

◆ getBinNumber()

int AmpGen::FastDT::getBinNumber ( const double * event) const
inline

Definition at line 45 of file FastDT.h.

◆ makeNodes() [1/3]

int AmpGen::FastDT::makeNodes ( std::vector< double * > & ,
std::queue< unsigned > ,
const unsigned &  )

◆ makeNodes() [2/3]

int AmpGen::FastDT::makeNodes ( std::vector< double * > ,
std::vector< double * >  )

◆ makeNodes() [3/3]

int AmpGen::FastDT::makeNodes ( std::vector< double * > ,
std::vector< double * > ,
std::vector< int > ,
const unsigned &  )

◆ makeQueue()

std::vector< int > AmpGen::FastDT::makeQueue ( )

◆ readFromStream()

void AmpGen::FastDT::readFromStream ( std::ifstream & stream,
const int & n_nodes )

◆ refreshQueue()

void AmpGen::FastDT::refreshQueue ( std::vector< double * > & evts,
std::queue< unsigned > & indexQueue,
const unsigned & depth )

◆ serialise()

void AmpGen::FastDT::serialise ( std::ofstream & )

◆ setQueueOrdering()

void AmpGen::FastDT::setQueueOrdering ( std::vector< unsigned > & )
inline

Definition at line 68 of file FastDT.h.

◆ setStep()

void AmpGen::FastDT::setStep ( const std::vector< double > & step)
inline

Definition at line 62 of file FastDT.h.

Member Data Documentation

◆ m_dim

unsigned AmpGen::FastDT::m_dim = {0}

Definition at line 55 of file FastDT.h.

◆ m_endNodeCounter

int AmpGen::FastDT::m_endNodeCounter = {0}

Definition at line 58 of file FastDT.h.

◆ m_maxDepth

unsigned AmpGen::FastDT::m_maxDepth = {0}

Definition at line 57 of file FastDT.h.

◆ m_minEvents

unsigned AmpGen::FastDT::m_minEvents = {0}

Definition at line 56 of file FastDT.h.

◆ m_minStep

std::vector<double> AmpGen::FastDT::m_minStep

Definition at line 60 of file FastDT.h.

◆ m_nodes

std::vector<Node> AmpGen::FastDT::m_nodes

Definition at line 53 of file FastDT.h.

◆ m_queueOrdering

std::queue<unsigned> AmpGen::FastDT::m_queueOrdering

Definition at line 54 of file FastDT.h.

◆ m_strategy

Strategy AmpGen::FastDT::m_strategy = {Strategy::random}

Definition at line 59 of file FastDT.h.


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