CMS 3D CMS Logo

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

Definition at line 20 of file PattRecoTree.h.

Member Typedef Documentation

◆ Node

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

Definition at line 22 of file PattRecoTree.h.

Constructor & Destructor Documentation

◆ PattRecoTree()

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

◆ addNode()

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

Definition at line 42 of file PattRecoTree.h.

42 { nodes_.push_back(node); }

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

◆ addScale()

template<typename ScaleType, class Cluster>
void reco::PattRecoTree< ScaleType, Cluster >::addScale ( const double  s)
inline

Definition at line 43 of file PattRecoTree.h.

43 { scales_.push_back(static_cast<ScaleType>(s)); }

References alignCSCRings::s, and reco::PattRecoTree< ScaleType, Cluster >::scales_.

◆ clear()

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

◆ getNodes()

template<typename ScaleType, class Cluster>
const std::vector<Node>& reco::PattRecoTree< ScaleType, Cluster >::getNodes ( ) const
inline

Definition at line 28 of file PattRecoTree.h.

28 { return nodes_; }

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

◆ getScales()

template<typename ScaleType, class Cluster>
const std::vector<ScaleType>& reco::PattRecoTree< ScaleType, Cluster >::getScales ( ) const
inline

Definition at line 29 of file PattRecoTree.h.

29 { return scales_; }

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

◆ isSparse()

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

Definition at line 27 of file PattRecoTree.h.

27 { return sparse_; }

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

◆ reserveNodes()

template<typename ScaleType, class Cluster>
void reco::PattRecoTree< ScaleType, Cluster >::reserveNodes ( const unsigned  n)
inline

Definition at line 40 of file PattRecoTree.h.

40 { nodes_.reserve(n); }

References dqmiodumpmetadata::n, and reco::PattRecoTree< ScaleType, Cluster >::nodes_.

◆ reserveScales()

template<typename ScaleType, class Cluster>
void reco::PattRecoTree< ScaleType, Cluster >::reserveScales ( const unsigned  n)
inline

Definition at line 41 of file PattRecoTree.h.

41 { scales_.reserve(n); }

References dqmiodumpmetadata::n, and reco::PattRecoTree< ScaleType, Cluster >::scales_.

◆ setSparse()

template<typename ScaleType, class Cluster>
void reco::PattRecoTree< ScaleType, Cluster >::setSparse ( const bool  b)
inline

Definition at line 32 of file PattRecoTree.h.

32 { sparse_ = b; }

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

Member Data Documentation

◆ nodes_

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

◆ scales_

template<typename ScaleType, class Cluster>
std::vector<ScaleType> reco::PattRecoTree< ScaleType, Cluster >::scales_
private

◆ sparse_

template<typename ScaleType, class Cluster>
bool reco::PattRecoTree< ScaleType, Cluster >::sparse_
private
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
reco::PattRecoTree::scales_
std::vector< ScaleType > scales_
Definition: PattRecoTree.h:47
reco::PattRecoTree::nodes_
std::vector< Node > nodes_
Definition: PattRecoTree.h:46
alignCSCRings.s
s
Definition: alignCSCRings.py:92
b
double b
Definition: hdecay.h:118
reco::PattRecoTree::sparse_
bool sparse_
Definition: PattRecoTree.h:48