Fork me on GitHub

Changeset 376 in svn


Ignore:
Timestamp:
May 10, 2009, 10:13:57 PM (16 years ago)
Author:
Xavier Rouby
Message:

bug fix: the gen-level charge was wrong in GEN tree

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/HepMCConverter.cc

    r367 r376  
    3636#include "BlockClasses.h"
    3737
     38#include "SmearUtil.h"
    3839#include "ExRootTreeWriter.h"
    3940#include "ExRootTreeBranch.h"
     
    196197      element->D1 = da1;
    197198      element->D2 = da2;
    198       element->Charge = pid;
     199      element->Charge = ChargeVal(pid);
    199200
    200201      element->E = index_to_particle[n]->momentum().e();
  • trunk/src/STDHEPConverter.cc

    r369 r376  
    3535#include "TLorentzVector.h"
    3636#include "BlockClasses.h"
     37#include "SmearUtil.h"
    3738#include "ExRootTreeWriter.h"
    3839#include "ExRootTreeBranch.h"
     
    7980    element->D2 = myhepevt.jdahep[number][1] - 1;
    8081//    element->Charge = myhepevt.hepchg(element->PID);
     82    element->Charge = ChargeVal(element->PID);
    8183
    8284    element->E = myhepevt.phep[number][3];
  • trunk/src/SmearUtil.cc

    r374 r376  
    12911291     )
    12921292    charge = 0;
    1293   else charge = (sign(pid));
     1293  else charge = sign(pid);
    12941294  return charge;
    12951295           
Note: See TracChangeset for help on using the changeset viewer.