138 int mo1=0,mo2=0,da1=0,da2=0,
status=0,
pid=0;
140 cout <<
"---#-------pid--st---Mo1---Mo2---Da1---Da2------px------py------pz-------E-";
141 cout <<
"------m---------x---------y---------z---------t-";
143 cout.setf(ios::right, ios::adjustfield);
144 for(
int n=1;
n<=
evt_->particles_size();
n++) {
154 cout.setf(ios::fixed, ios::floatfield);
155 cout.setf(ios::right, ios::adjustfield);
156 cout << setw(10) << setprecision(2) << g->momentum().x();
157 cout << setw(8) << setprecision(2) << g->momentum().y();
158 cout << setw(10) << setprecision(2) << g->momentum().z();
159 cout << setw(8) << setprecision(2) << g->momentum().t();
160 cout << setw(8) << setprecision(2) << g->generatedMass();
162 if (g->production_vertex() != 0 && g->end_vertex() != 0 &&
status == 2) {
163 cout << setw(10) << setprecision(2) <<g->production_vertex()->position().x();
164 cout << setw(10) << setprecision(2) <<g->production_vertex()->position().y();
165 cout << setw(10) << setprecision(2) <<g->production_vertex()->position().z();
167 double xm = g->production_vertex()->position().x();
168 double ym = g->production_vertex()->position().y();
169 double zm = g->production_vertex()->position().z();
170 double xd = g->end_vertex()->position().x();
171 double yd = g->end_vertex()->position().y();
172 double zd = g->end_vertex()->position().z();
173 double decl =
sqrt((xd-xm)*(xd-xm)+(yd-ym)*(yd-ym)+(zd-zm)*(zd-zm));
174 double labTime = decl/c_light;
176 double properTime = labTime/g->momentum().rho()*(g->generatedMass() );
178 cout << setw(8) << setprecision(2) <<properTime;
181 cout << setw(10) << setprecision(2) << 0.0;
182 cout << setw(10) << setprecision(2) << 0.0;
183 cout << setw(10) << setprecision(2) << 0.0;
184 cout << setw(8) << setprecision(2) << 0.0;
189 cout <<
" HepMCFileReader: No event available !" << endl;
std::vector< HepMC::GenParticle * > index_to_particle
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
virtual void getStatsFromTuple(int &mo1, int &mo2, int &da1, int &da2, int &status, int &pid, int j) const