Changeset 376 in svn
- Timestamp:
- May 10, 2009, 10:13:57 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/HepMCConverter.cc
r367 r376 36 36 #include "BlockClasses.h" 37 37 38 #include "SmearUtil.h" 38 39 #include "ExRootTreeWriter.h" 39 40 #include "ExRootTreeBranch.h" … … 196 197 element->D1 = da1; 197 198 element->D2 = da2; 198 element->Charge = pid;199 element->Charge = ChargeVal(pid); 199 200 200 201 element->E = index_to_particle[n]->momentum().e(); -
trunk/src/STDHEPConverter.cc
r369 r376 35 35 #include "TLorentzVector.h" 36 36 #include "BlockClasses.h" 37 #include "SmearUtil.h" 37 38 #include "ExRootTreeWriter.h" 38 39 #include "ExRootTreeBranch.h" … … 79 80 element->D2 = myhepevt.jdahep[number][1] - 1; 80 81 // element->Charge = myhepevt.hepchg(element->PID); 82 element->Charge = ChargeVal(element->PID); 81 83 82 84 element->E = myhepevt.phep[number][3]; -
trunk/src/SmearUtil.cc
r374 r376 1291 1291 ) 1292 1292 charge = 0; 1293 else charge = (sign(pid));1293 else charge = sign(pid); 1294 1294 return charge; 1295 1295
Note:
See TracChangeset
for help on using the changeset viewer.