Exemple #1
0
int		main()
{
	ClapTrap	Mother("Mother");
	std::cout << std::endl << std::endl;
	FragTrap	Mordecai("Mordecai");
	std::cout << std::endl << std::endl;
	ScavTrap	Rolland("Rolland");
	std::cout << std::endl << std::endl;
	NinjaTrap	Donatello("Donatello");
	std::cout << std::endl << std::endl;
	Donatello.ninjaShoeboxNinjaTrap(Mother);
	std::cout << std::endl << std::endl;
	Donatello.ninjaShoeboxNinjaTrap(Mordecai);
	std::cout << std::endl << std::endl;
	Donatello.ninjaShoeboxNinjaTrap(Rolland);
	std::cout << std::endl << std::endl;
	Donatello.ninjaShoeboxNinjaTrap(Donatello);
	std::cout << std::endl << std::endl;
	return 0;
}
void
HHV4Vector::PrintEPtEtaPhiM(int pos) const
{
  if (pos >= 0) {
    PSTools::coutf(4, pos);
    std::cout << " ";
  }
  PSTools::coutf(10, m_name);
  PSTools::coutf(4, ID());
  PSTools::coutf(9, 2, E());
  PSTools::coutf(9, 2, Pt());
  PSTools::coutf(9, 2, Eta());
  PSTools::coutf(9, 2, Phi());
  PSTools::coutf(9, 2, M());
  PSTools::coutf(5, Mother());
  for (int i = 0; i < nDaughter(); i++) {
    PSTools::coutf(4, Daughter(i));
  }
  std::cout << std::endl;
  //  cout << Name << "  " << ID << "  ";
//  Printf(" (EPxPyPzM)=  %8.2f  %8.2f  %8.2f  %8.2f  %8.2f", E(), Px(), Py(),
//         Pz(), M());
}