CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
reco::PattRecoTree< ScaleType, Cluster > Class Template Reference

Class for storing FFTJet sparse clustering trees. More...

#include <PattRecoTree.h>

Public Types

typedef PattRecoNode< Cluster > Node
 

Public Member Functions

void addNode (const Node &node)
 
void addScale (const double s)
 
void clear ()
 
const std::vector< Node > & getNodes () const
 
const std::vector< ScaleType > & getScales () const
 
bool isSparse () const
 
 PattRecoTree ()
 
void reserveNodes (const unsigned n)
 
void reserveScales (const unsigned n)
 
void setSparse (const bool b)
 

Private Attributes

std::vector< Nodenodes_
 
std::vector< ScaleType > scales_
 
bool sparse_
 

Detailed Description

template<typename ScaleType, class Cluster>
class reco::PattRecoTree< ScaleType, Cluster >

Class for storing FFTJet sparse clustering trees.

This is a pure storage class with limited functionality. Applications should use fftjet::SparseClusteringTree

Author
Igor Volobouev, TTU, June 16, 2010
Version
Id:
PattRecoTree.h,v 0.1 2010/06/16 21:52:19 igv Exp

Definition at line 19 of file PattRecoTree.h.

Member Typedef Documentation

template<typename ScaleType , class Cluster >
typedef PattRecoNode<Cluster> reco::PattRecoTree< ScaleType, Cluster >::Node

Definition at line 22 of file PattRecoTree.h.

Constructor & Destructor Documentation

template<typename ScaleType , class Cluster >
reco::PattRecoTree< ScaleType, Cluster >::PattRecoTree ( )
inline

Definition at line 24 of file PattRecoTree.h.

24 : sparse_(false) {}

Member Function Documentation

template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::addNode ( const Node node)
inline

Definition at line 40 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::nodes_.

40 {nodes_.push_back(node);}
tuple node
Definition: Node.py:50
std::vector< Node > nodes_
Definition: PattRecoTree.h:45
template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::addScale ( const double  s)
inline

Definition at line 41 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::scales_.

42  {scales_.push_back(static_cast<ScaleType>(s));}
std::vector< ScaleType > scales_
Definition: PattRecoTree.h:46
string s
Definition: asciidump.py:422
template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::clear ( void  )
inline
template<typename ScaleType , class Cluster >
const std::vector<Node>& reco::PattRecoTree< ScaleType, Cluster >::getNodes ( ) const
inline

Definition at line 28 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::nodes_.

28 {return nodes_;}
std::vector< Node > nodes_
Definition: PattRecoTree.h:45
template<typename ScaleType , class Cluster >
const std::vector<ScaleType>& reco::PattRecoTree< ScaleType, Cluster >::getScales ( ) const
inline

Definition at line 29 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::scales_.

30  {return scales_;}
std::vector< ScaleType > scales_
Definition: PattRecoTree.h:46
template<typename ScaleType , class Cluster >
bool reco::PattRecoTree< ScaleType, Cluster >::isSparse ( ) const
inline

Definition at line 27 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::sparse_.

27 {return sparse_;}
template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::reserveNodes ( const unsigned  n)
inline

Definition at line 38 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::nodes_.

38 {nodes_.reserve(n);}
std::vector< Node > nodes_
Definition: PattRecoTree.h:45
template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::reserveScales ( const unsigned  n)
inline

Definition at line 39 of file PattRecoTree.h.

References reco::PattRecoTree< ScaleType, Cluster >::scales_.

39 {scales_.reserve(n);}
std::vector< ScaleType > scales_
Definition: PattRecoTree.h:46
template<typename ScaleType , class Cluster >
void reco::PattRecoTree< ScaleType, Cluster >::setSparse ( const bool  b)
inline

Definition at line 33 of file PattRecoTree.h.

References b, and reco::PattRecoTree< ScaleType, Cluster >::sparse_.

33 {sparse_ = b;}
double b
Definition: hdecay.h:120

Member Data Documentation

template<typename ScaleType , class Cluster >
std::vector<Node> reco::PattRecoTree< ScaleType, Cluster >::nodes_
private
template<typename ScaleType , class Cluster >
std::vector<ScaleType> reco::PattRecoTree< ScaleType, Cluster >::scales_
private
template<typename ScaleType , class Cluster >
bool reco::PattRecoTree< ScaleType, Cluster >::sparse_
private