Commit db127e2d authored by Lynn Garren's avatar Lynn Garren
Browse files

*** empty log message ***

parent 5e53d74c
......@@ -100,19 +100,10 @@ void CBhepevt::printHEPEVT( std::ostream & os )
void CBhepevt::print_legend( std::ostream & os )
{
//char outline[81];
//sprintf( outline,"%4s %4s %4s %5s %10s, %9s, %9s, %9s, %10s",
// "Indx","Stat","Par-","chil-",
// "( P_x","P_y","P_z","Energy","M ) [GeV]");
//os << outline << std::endl;
//sprintf( outline,"%9s %4s %4s %10s, %9s, %9s, %9s) %9s",
// "ID ","ents","dren",
// "Prod ( X","Y","Z","cT", "[mm]");
//os << outline << std::endl;
os << "Indx Stat Par- chil- "
<< "( P_x , P_y , P_z , Energy , M ) [GeV]" << std::endl;
os << "ID ents dren"
<< "Prod ( X, Y, Z, cT) [mm]") << std::endl;
os << "Indx Stat Par- chil- "
<< "( P_x, P_y, P_z, Energy, M ) [GeV]" << std::endl;
os << " ID ents dren "
<< "Prod ( X, Y, Z, cT) [mm]" << std::endl;
}
void CBhepevt::printHEPEVTparticle( int i, std::ostream & os )
......@@ -121,67 +112,19 @@ void CBhepevt::printHEPEVTparticle( int i, std::ostream & os )
// here i is the C array index (i.e. it starts at 0 ... whereas the
// fortran array index starts at 1) So if there's 100 particles, the
// last valid index is 100-1=99
//char outline[81];
//sprintf( outline,
// "%4d %+4d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g, %9.3g)"
// ,i, hptr->isthep[i], first_parent(i), first_child(i),
// hptr->phep[i][0], hptr->phep[i][1], hptr->phep[i][2],
// hptr->phep[i][3], hptr->phep[i][4] );
//os << outline << "\n";
//sprintf( outline,"%+9d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g)",
char outline[81];
sprintf( outline,
"%4d %+4d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g, %9.3g)"
,i, hptr->isthep[i], first_parent(i), first_child(i),
hptr->phep[i][0], hptr->phep[i][1], hptr->phep[i][2],
hptr->phep[i][3], hptr->phep[i][4] );
os << outline << "\n";
sprintf( outline,"%+9d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g)",
// old version was:" (%+9.2e, %+9.2e, %+9.2e, %+9.2e)"
// hptr->idhep[i], last_parent(i), last_child(i),
// hptr->vhep[i][0], hptr->vhep[i][1], hptr->vhep[i][2],
// hptr->vhep[i][3] );
// os << outline << std::endl;
os.width(4);
os << i << " ";
os.width(4);
os << hptr->isthep[i] << " ";
os.width(4);
os << first_parent(i) << " ";
os.width(4);
os << first_child(i) << " (";
os.width(9);
os.precision(3);
os.setf(std::ios::scientific, std::ios::floatfield);
os << hptr->phep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][1] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][2] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][3] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][4] << ")\n";
os.width(9);
os.setf(std::ios_base::showpos);
os << hptr->idhep[i] << " ";
os.unsetf(std::ios_base::showpos);
os.width(4);
os << last_parent(i) << " ";
os.width(4);
os << last_child(i) << " (";
os.width(9);
os.precision(3);
os.setf(std::ios::scientific, std::ios::floatfield);
os << hptr->vhep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][1] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][2] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][3] << ")";
hptr->idhep[i], last_parent(i), last_child(i),
hptr->vhep[i][0], hptr->vhep[i][1], hptr->vhep[i][2],
hptr->vhep[i][3] );
os << outline << std::endl;
}
bool CBhepevt::check_hepevt_consistency( std::ostream & os )
......
......@@ -138,19 +138,10 @@ void CBherwig::printHEPEVT( std::ostream & os )
void CBherwig::print_legend( std::ostream & os )
{
//char outline[81];
//sprintf( outline,"%4s %4s %4s %5s %10s, %9s, %9s, %9s, %10s",
// "Indx","Stat","Par-","chil-",
// "( P_x","P_y","P_z","Energy","M ) [GeV]");
//os << outline << std::endl;
//sprintf( outline,"%9s %4s %4s %10s, %9s, %9s, %9s) %9s",
// "ID ","ents","dren",
// "Prod ( X","Y","Z","cT", "[mm]");
//os << outline << std::endl;
os << "Indx Stat Par- chil- "
<< "( P_x , P_y , P_z , Energy , M ) [GeV]" << std::endl;
os << "ID ents dren"
<< "Prod ( X, Y, Z, cT) [mm]") << std::endl;
os << "Indx Stat Par- chil- "
<< "( P_x, P_y, P_z, Energy, M ) [GeV]" << std::endl;
os << " ID ents dren "
<< "Prod ( X, Y, Z, cT) [mm]" << std::endl;
}
void CBherwig::printHEPEVTparticle( int i, std::ostream & os )
......@@ -159,67 +150,19 @@ void CBherwig::printHEPEVTparticle( int i, std::ostream & os )
// here i is the C array index (i.e. it starts at 0 ... whereas the
// fortran array index starts at 1) So if there's 100 particles, the
// last valid index is 100-1=99
//char outline[81];
//sprintf( outline,
// "%4d %+4d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g, %9.3g)"
// ,i, hptr->isthep[i], first_parent(i), first_child(i),
// hptr->phep[i][0], hptr->phep[i][1], hptr->phep[i][2],
// hptr->phep[i][3], hptr->phep[i][4] );
//os << outline << "\n";
//sprintf( outline,"%+9d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g)",
char outline[81];
sprintf( outline,
"%4d %+4d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g, %9.3g)"
,i, hptr->isthep[i], first_parent(i), first_child(i),
hptr->phep[i][0], hptr->phep[i][1], hptr->phep[i][2],
hptr->phep[i][3], hptr->phep[i][4] );
os << outline << "\n";
sprintf( outline,"%+9d %4d %4d (%9.3g, %9.3g, %9.3g, %9.3g)",
// old version was:" (%+9.2e, %+9.2e, %+9.2e, %+9.2e)"
// hptr->idhep[i], last_parent(i), last_child(i),
// hptr->vhep[i][0], hptr->vhep[i][1], hptr->vhep[i][2],
// hptr->vhep[i][3] );
// os << outline << std::endl;
os.width(4);
os << i << " ";
os.width(4);
os << hptr->isthep[i] << " ";
os.width(4);
os << first_parent(i) << " ";
os.width(4);
os << first_child(i) << " (";
os.width(9);
os.precision(3);
os.setf(std::ios::scientific, std::ios::floatfield);
os << hptr->phep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][1] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][2] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][3] << ", ";
os.width(9);
os.precision(3);
os << hptr->phep[i][4] << ")\n";
os.width(9);
os.setf(std::ios_base::showpos);
os << hptr->idhep[i] << " ";
os.unsetf(std::ios_base::showpos);
os.width(4);
os << last_parent(i) << " ";
os.width(4);
os << last_child(i) << " (";
os.width(9);
os.precision(3);
os.setf(std::ios::scientific, std::ios::floatfield);
os << hptr->vhep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][0] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][1] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][2] << ", ";
os.width(9);
os.precision(3);
os << hptr->vhep[i][3] << ")";
hptr->idhep[i], last_parent(i), last_child(i),
hptr->vhep[i][0], hptr->vhep[i][1], hptr->vhep[i][2],
hptr->vhep[i][3] );
os << outline << std::endl;
}
bool CBherwig::check_hepevt_consistency( std::ostream & os )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment