13 vector<fastjet::PseudoJet> constit_pseudojets =
jet.constituents();
14 if(constit_pseudojets.empty())
return -999;
16 QjetsPlugin qjets_plugin(m_zcut, m_dcut_fctr, m_exp_min, m_exp_max, m_rigidity, m_truncation_fctr);
17 fastjet::JetDefinition qjets_def(&qjets_plugin);
20 double sum_mass = 0, sum_mass2 = 0;
21 for(
unsigned int i=0;
i < m_num_iterations;
i++) {
26 vector<fastjet::PseudoJet> qjets = fastjet::sorted_by_pt(clust_seq.inclusive_jets());
34 sum_mass += qjets[0].m();
35 sum_mass2 += qjets[0].m2();
43 double rms_dev2 = sum_mass2/
n -
pow(sum_mass/
n, 2.0);
50 double rms_dev = sqrt(rms_dev2);
51 double volatility = rms_dev / (sum_mass/
n);
56 void Volatility::setSeed(
unsigned int seed)