00001 #ifndef jetsubstructureutils_dipolarity_header 00002 #define jetsubstructureutils_dipolarity_header 00003 00004 #include "JetSubStructureUtils/SubstructureCalculator.h" 00005 #include <vector> 00006 00007 namespace JetSubStructureUtils { 00008 class Dipolarity : public SubstructureCalculator<double> { 00009 public: 00010 Dipolarity(unsigned int n1, unsigned int n2, bool exclusive, double subjetR); 00011 00012 using SubstructureCalculator::result; 00013 virtual double result(const fastjet::PseudoJet &jet) const; 00014 00015 private: 00016 double dipolarity(std::vector<fastjet::PseudoJet> &constit_pseudojets, 00017 fastjet::PseudoJet jet1, fastjet::PseudoJet jet2) const; 00018 00019 bool m_exclusive; 00020 unsigned int m_n1; 00021 unsigned int m_n2; 00022 double m_subjetR; 00023 }; 00024 } 00025 00026 #endif