本文整理汇总了C++中Flavour::IsPhoton方法的典型用法代码示例。如果您正苦于以下问题:C++ Flavour::IsPhoton方法的具体用法?C++ Flavour::IsPhoton怎么用?C++ Flavour::IsPhoton使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flavour
的用法示例。
在下文中一共展示了Flavour::IsPhoton方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Evaluate
void Hadron_Multiplicities::Evaluate(const ATOOLS::Particle_List & pl, double weight, double ncount)
{
//Particle_List * pl = p_ana->GetParticleList(m_listname);
Flavour flav;
kf_code kfc;
for (Particle_List::const_iterator pliter=pl.begin();pliter!=pl.end();pliter++) {
flav = (*pliter)->Flav();
if (!flav.IsHadron() && !flav.IsPhoton()) continue;
kfc = flav.Kfcode();
if (kfc==kf_photon) p_obs->Insert(99.5,weight,ncount);
if (kfc==kf_pi) p_obs->Insert(1.5,weight,ncount);
if (kfc==kf_pi_plus) p_obs->Insert(2.5,weight,ncount);
if (kfc==kf_eta) p_obs->Insert(3.5,weight,ncount);
if (m_listname=="PrimordialHadrons")
if (kfc==kf_K) p_obs->Insert(4.5,weight,ncount);
//else
if (kfc==kf_K_L||kfc==kf_K_S||kfc==kf_K) p_obs->Insert(4.5,weight,ncount);
if (kfc==kf_K_plus) p_obs->Insert(5.5,weight,ncount);
if (kfc==kf_eta_prime_958) p_obs->Insert(6.5,weight,ncount);
if (kfc==kf_rho_770) p_obs->Insert(11.5,weight,ncount);
if (kfc==kf_rho_770_plus) p_obs->Insert(12.5,weight,ncount);
if (kfc==kf_omega_782) p_obs->Insert(13.5,weight,ncount);
if (kfc==kf_K_star_892) p_obs->Insert(14.5,weight,ncount);
if (kfc==kf_K_star_892_plus) p_obs->Insert(15.5,weight,ncount);
if (kfc==kf_phi_1020) p_obs->Insert(16.5,weight,ncount);
if (kfc==kf_D_plus) p_obs->Insert(21.5,weight,ncount);
if (kfc==kf_D) p_obs->Insert(22.5,weight,ncount);
if (kfc==kf_D_s_plus) p_obs->Insert(23.5,weight,ncount);
if (kfc==kf_eta_c_1S) p_obs->Insert(24.5,weight,ncount);
if (kfc==kf_B_plus) p_obs->Insert(25.5,weight,ncount);
if (kfc==kf_B) p_obs->Insert(26.5,weight,ncount);
if (kfc==kf_B_s) p_obs->Insert(27.5,weight,ncount);
if (kfc==kf_B_c) p_obs->Insert(28.5,weight,ncount);
if (kfc==kf_eta_b) p_obs->Insert(29.5,weight,ncount);
if (kfc==kf_D_star_2010_plus) p_obs->Insert(31.5,weight,ncount);
if (kfc==kf_D_star_2007) p_obs->Insert(32.5,weight,ncount);
if (kfc==kf_D_s_star_plus) p_obs->Insert(33.5,weight,ncount);
if (kfc==kf_J_psi_1S) p_obs->Insert(34.5,weight,ncount);
if (kfc==kf_B_star_plus) p_obs->Insert(35.5,weight,ncount);
if (kfc==kf_B_star) p_obs->Insert(36.5,weight,ncount);
if (kfc==kf_B_s_star) p_obs->Insert(37.5,weight,ncount);
if (kfc==kf_B_c_star) p_obs->Insert(38.5,weight,ncount);
if (kfc==kf_Upsilon_1S) p_obs->Insert(39.5,weight,ncount);
if (kfc==kf_f_2_1270) p_obs->Insert(41.5,weight,ncount);
if (kfc==kf_f_2_prime_1525) p_obs->Insert(42.5,weight,ncount);
if (kfc==kf_psi_2S) p_obs->Insert(43.5,weight,ncount);
if (kfc==kf_p_plus) p_obs->Insert(51.5,weight,ncount);
if (kfc==kf_n) p_obs->Insert(52.5,weight,ncount);
if (kfc==kf_Sigma_plus) p_obs->Insert(53.5,weight,ncount);
if (kfc==kf_Sigma) p_obs->Insert(54.5,weight,ncount);
if (kfc==kf_Sigma_minus) p_obs->Insert(55.5,weight,ncount);
if (kfc==kf_Lambda) p_obs->Insert(56.5,weight,ncount);
if (kfc==kf_Xi) p_obs->Insert(57.5,weight,ncount);
if (kfc==kf_Xi_minus) p_obs->Insert(58.5,weight,ncount);
if (kfc==kf_Delta_1232_plus_plus) p_obs->Insert(61.5,weight,ncount);
if (kfc==kf_Delta_1232_plus) p_obs->Insert(62.5,weight,ncount);
if (kfc==kf_Delta_1232) p_obs->Insert(63.5,weight,ncount);
if (kfc==kf_Delta_1232_minus) p_obs->Insert(64.5,weight,ncount);
if (kfc==kf_Sigma_1385_plus) p_obs->Insert(65.5,weight,ncount);
if (kfc==kf_Sigma_1385) p_obs->Insert(66.5,weight,ncount);
if (kfc==kf_Sigma_1385_minus) p_obs->Insert(67.5,weight,ncount);
if (kfc==kf_Xi_1530) p_obs->Insert(68.5,weight,ncount);
if (kfc==kf_Xi_1530_minus) p_obs->Insert(69.5,weight,ncount);
if (kfc==kf_Omega_minus) p_obs->Insert(70.5,weight,ncount);
if (kfc==kf_Lambda_c_plus) p_obs->Insert(81.5,weight,ncount);
if (kfc==kf_Sigma_c_2455_plus) p_obs->Insert(82.5,weight,ncount);
if (kfc==kf_Sigma_c_2455_plus_plus) p_obs->Insert(83.5,weight,ncount);
if (kfc==kf_Xi_c_2466) p_obs->Insert(84.5,weight,ncount);
if (kfc==kf_Xi_c_2466_plus) p_obs->Insert(85.5,weight,ncount);
if (kfc==kf_Lambda_b) p_obs->Insert(91.5,weight,ncount);
if (kfc==kf_Sigma_b_5820) p_obs->Insert(92.5,weight,ncount);
if (kfc==kf_Sigma_b_5820_plus) p_obs->Insert(93.5,weight,ncount);
if (kfc==kf_Xi_b_5840) p_obs->Insert(94.5,weight,ncount);
if (kfc==kf_Xi_b_5840_minus) p_obs->Insert(95.5,weight,ncount);
}
for (int i=0;i<100;++i) p_norm->Insert(i+.5,weight,ncount);
}