Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:43

0001 /** \class reco::PattRecoNode
0002  *
0003  * \short Tree nodes for storing FFTJet preclusters
0004  *
0005  * This is a pure storage class with limited functionality.
0006  * Applications should use fftjet::SparseClusteringTree::Node
0007  *
0008  * \author Igor Volobouev, TTU, June 16, 2010
0009  ************************************************************/
0010 
0011 #ifndef DataFormats_JetReco_PattRecoNode_h
0012 #define DataFormats_JetReco_PattRecoNode_h
0013 
0014 namespace reco {
0015   template <class Cluster>
0016   class PattRecoNode {
0017   public:
0018     inline PattRecoNode() : originalLevel_(0), nodeMask_(0), parent_(0) {}
0019 
0020     inline PattRecoNode(const Cluster& j, const unsigned level, const unsigned mask, const unsigned parent)
0021         : jet_(j), originalLevel_(level), nodeMask_(mask), parent_(parent) {}
0022 
0023     inline const Cluster& getCluster() const { return jet_; }
0024     inline unsigned originalLevel() const { return originalLevel_; }
0025     inline unsigned mask() const { return nodeMask_; }
0026     inline unsigned parent() const { return parent_; }
0027 
0028   private:
0029     Cluster jet_;
0030     unsigned originalLevel_;
0031     unsigned nodeMask_;
0032     unsigned parent_;
0033   };
0034 }  // namespace reco
0035 
0036 #endif  // JetReco_PattRecoNode_h