Changeset 380 in svn for trunk/src/HepMCConverter.cc
- Timestamp:
- May 12, 2009, 9:47:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/HepMCConverter.cc
r376 r380 36 36 #include "BlockClasses.h" 37 37 38 #include " SmearUtil.h"38 #include "PdgParticle.h" 39 39 #include "ExRootTreeWriter.h" 40 40 #include "ExRootTreeBranch.h" … … 197 197 element->D1 = da1; 198 198 element->D2 = da2; 199 element->Charge = ChargeVal(pid);200 199 201 200 element->E = index_to_particle[n]->momentum().e(); … … 203 202 element->Py = index_to_particle[n]->momentum().py(); 204 203 element->Pz = index_to_particle[n]->momentum().pz(); 205 element->M = index_to_particle[n]->momentum().m(); 206 207 float PT = sqrt(pow(element->Px,2)+pow(element->Py,2)); 208 element->PT = PT; 204 205 206 //cout << "element->PID = " << pid << "\t"; 207 //PdgParticle pdg_part(PdgID[pid]); 208 //element->M = index_to_particle[n]->momentum().m(); // this is the particle virtuality, not its rest mass 209 //element->M = pdg_part.mass(); 210 //element->Charge = pdg_part.charge(); 211 //cout << "element->M = " << element->M << " \t element->Charge = " << element->Charge << endl; 212 213 element->PT = sqrt(pow(element->Px,2)+pow(element->Py,2)); 209 214 210 215 momentum.SetPxPyPzE(element->Px, element->Py, element->Pz, element->E); … … 256 261 //------------------------------------------------------------------------------ 257 262 258 HepMCConverter::HepMCConverter(const string& inputFileList, const string& outputFileName, const int& Nevents) : DataConverter(Nevents)263 HepMCConverter::HepMCConverter(const string& inputFileList, const string& outputFileName, const PdgTable& pdg, const int& Nevents) : DataConverter(pdg,Nevents) 259 264 { 260 265
Note:
See TracChangeset
for help on using the changeset viewer.