Fork me on GitHub

Changeset 469 in svn for trunk/Resolutions.cpp


Ignore:
Timestamp:
Jul 13, 2009, 9:40:57 AM (15 years ago)
Author:
Xavier Rouby
Message:

property 'invisible()' added to PdgParticle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Resolutions.cpp

    r468 r469  
    4949#include "JetsUtil.h"
    5050#include "BFieldProp.h"
     51#include "PdgParticle.h"
    5152
    5253#include<vector>
     
    325326        {
    326327          genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E);
    327          
     328          PdgParticle pdg_part = DET->PDGtable[particle->PID];
    328329          int pid = abs(particle->PID);
    329330          float eta = fabs(particle->Eta);
     
    336337         
    337338          //Calculate ETMIS from generated particles
    338           if((pid == pNU1) || (pid == pNU2) || (pid == pNU3))PTmisGEN = PTmisGEN + genMomentum;
     339          //if((pid == pNU1) || (pid == pNU2) || (pid == pNU3))PTmisGEN = PTmisGEN + genMomentum;
     340          if( (particle->Status == 1) && pdg_part.invisible() )PTmisGEN = PTmisGEN + genMomentum;
    339341
    340342          //Electrons and muons 
    341343          if( (particle->Status == 1)    &&
    342             ((pid != pNU1) && (pid != pNU2) && (pid != pNU3)) &&
     344            //((pid != pNU1) && (pid != pNU2) && (pid != pNU3)) &&
     345             (! pdg_part.invisible() ) &&
    343346             (fabs(particle->Eta) < DET->CEN_max_calo_fwd)
    344347            )
Note: See TracChangeset for help on using the changeset viewer.