CMS 3D CMS Logo

CompoundPseudoJet.h
Go to the documentation of this file.
1 #ifndef RecoJets_JetAlgorithms_CompoundPseudoJet_h
2 #define RecoJets_JetAlgorithms_CompoundPseudoJet_h
3 
4 // -*- C++ -*-
6 //
7 // Package: CompoundPseudoJet
8 // Class: CompoundPseudoJet
9 //
14 //-------------------------------------------------------------------------------------
19 //-------------------------------------------------------------------------------------
20 //
21 // Original Author: Salvatore Rappoccio
22 // Created: Wed Nov 28 15:31:57 CST 2007
23 //
24 //-------------------------------------------------------------------------------------
25 
26 #include <fastjet/JetDefinition.hh>
27 #include <fastjet/PseudoJet.hh>
28 
29 #include <vector>
30 #include <algorithm>
31 
33 public:
35  CompoundPseudoSubJet(fastjet::PseudoJet const& subjet, std::vector<int> const& constituents)
37  copy(constituents.begin(), constituents.end(), constituents_.begin());
38  }
39  CompoundPseudoSubJet(fastjet::PseudoJet const& subjet, double subjetArea, std::vector<int> const& constituents)
41  copy(constituents.begin(), constituents.end(), constituents_.begin());
42  }
43 
45 
46  fastjet::PseudoJet const& subjet() const { return subjet_; }
47  double subjetArea() const { return subjetArea_; }
48  std::vector<int> const& constituents() const { return constituents_; }
49 
50 protected:
51  fastjet::PseudoJet subjet_;
52  double subjetArea_;
53  std::vector<int> constituents_;
54 };
55 
57 public:
59  CompoundPseudoJet(fastjet::PseudoJet const& hardJet, std::vector<CompoundPseudoSubJet> const& subjets)
61  copy(subjets.begin(), subjets.end(), subjets_.begin());
62  }
63  CompoundPseudoJet(fastjet::PseudoJet const& hardJet,
64  double hardJetArea,
65  std::vector<CompoundPseudoSubJet> const& subjets)
67  copy(subjets.begin(), subjets.end(), subjets_.begin());
68  }
69 
71 
72  fastjet::PseudoJet const& hardJet() const { return hardJet_; }
73  double hardJetArea() const { return hardJetArea_; }
74  std::vector<CompoundPseudoSubJet> const& subjets() const { return subjets_; }
75 
76 protected:
77  fastjet::PseudoJet hardJet_;
78  double hardJetArea_;
79  std::vector<CompoundPseudoSubJet> subjets_;
80 };
81 
82 inline bool greaterByEtPseudoJet(fastjet::PseudoJet const& j1, fastjet::PseudoJet const& j2) {
83  return j1.perp() > j2.perp();
84 }
85 
86 #endif
CompoundPseudoJet::hardJetArea_
double hardJetArea_
Definition: CompoundPseudoJet.h:78
CompoundPseudoJet::CompoundPseudoJet
CompoundPseudoJet(fastjet::PseudoJet const &hardJet, std::vector< CompoundPseudoSubJet > const &subjets)
Definition: CompoundPseudoJet.h:59
CompoundPseudoJet::CompoundPseudoJet
CompoundPseudoJet()
Definition: CompoundPseudoJet.h:58
greaterByEtPseudoJet
bool greaterByEtPseudoJet(fastjet::PseudoJet const &j1, fastjet::PseudoJet const &j2)
Definition: CompoundPseudoJet.h:82
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
CompoundPseudoSubJet::subjet_
fastjet::PseudoJet subjet_
Definition: CompoundPseudoJet.h:51
CompoundPseudoJet::subjets_
std::vector< CompoundPseudoSubJet > subjets_
Definition: CompoundPseudoJet.h:79
CompoundPseudoJet::CompoundPseudoJet
CompoundPseudoJet(fastjet::PseudoJet const &hardJet, double hardJetArea, std::vector< CompoundPseudoSubJet > const &subjets)
Definition: CompoundPseudoJet.h:63
CompoundPseudoSubJet::subjetArea_
double subjetArea_
Definition: CompoundPseudoJet.h:52
CompoundPseudoSubJet
Definition: CompoundPseudoJet.h:32
CompoundPseudoSubJet::CompoundPseudoSubJet
CompoundPseudoSubJet(fastjet::PseudoJet const &subjet, std::vector< int > const &constituents)
Definition: CompoundPseudoJet.h:35
CompoundPseudoJet::hardJet_
fastjet::PseudoJet hardJet_
Definition: CompoundPseudoJet.h:77
CompoundPseudoJet
CompoundPseudoJet holds an association of fastjet::PseudoJets that represent a "hard" top jet with su...
Definition: CompoundPseudoJet.h:56
CompoundPseudoSubJet::constituents_
std::vector< int > constituents_
Definition: CompoundPseudoJet.h:53
CompoundPseudoSubJet::subjetArea
double subjetArea() const
Definition: CompoundPseudoJet.h:47
CompoundPseudoSubJet::constituents
std::vector< int > const & constituents() const
Definition: CompoundPseudoJet.h:48
CompoundPseudoSubJet::~CompoundPseudoSubJet
~CompoundPseudoSubJet()
Definition: CompoundPseudoJet.h:44
CompoundPseudoJet::hardJet
fastjet::PseudoJet const & hardJet() const
Definition: CompoundPseudoJet.h:72
CompoundPseudoSubJet::CompoundPseudoSubJet
CompoundPseudoSubJet()
Definition: CompoundPseudoJet.h:34
CompoundPseudoJet::subjets
std::vector< CompoundPseudoSubJet > const & subjets() const
Definition: CompoundPseudoJet.h:74
CompoundPseudoSubJet::subjet
fastjet::PseudoJet const & subjet() const
Definition: CompoundPseudoJet.h:46
CompoundPseudoJet::hardJetArea
double hardJetArea() const
Definition: CompoundPseudoJet.h:73
CompoundPseudoSubJet::CompoundPseudoSubJet
CompoundPseudoSubJet(fastjet::PseudoJet const &subjet, double subjetArea, std::vector< int > const &constituents)
Definition: CompoundPseudoJet.h:39
CompoundPseudoJet::~CompoundPseudoJet
~CompoundPseudoJet()
Definition: CompoundPseudoJet.h:70
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443