HGCal Test Beam  03a93d6239a951948e06fb3ef8dae4cbdebfad30
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HGCSSGenParticle.cc
Go to the documentation of this file.
1 #include "HGCal/TBStandaloneSimulator/interface/HGCSSGenParticle.hh"
2 
3 #include <iomanip>
4 #include <cmath>
5 #include <stdlib.h>
6 
7 
8 void HGCSSGenParticle::Print(std::ostream & aOs) const
9 {
10  aOs << std::setprecision(6)
11  << "====================================" << std::endl
12  << " = time " << time_ << " ns" << std::endl
13  << " = position " << xpos_ << " " << ypos_ << " " << zpos_ << " mm" << std::endl
14  << " = Mass " << mass_ << " MeV" << std::endl
15  << " = momentum " << px_ << " " << py_ << " " << pz_ << " MeV" << std::endl
16  << " = pdgid " << pdgid_ << std::endl
17  << " = charge " << charge_ << std::endl
18  << " = G4trackID " << trackID_ << std::endl
19  << "====================================" << std::endl;
20 
21 }
22 void HGCSSGenParticle::Print(const unsigned idx,
23  std::ostream & aOs) const
24 {
25  aOs << std::setprecision(6)
26  << "========= GenParticle " << idx << " =========" << std::endl;
27  Print(aOs);
28 
29 }
30