Fork me on GitHub

Changeset 469 in svn for trunk/Resolutions_ATLAS.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_ATLAS.cpp

    r467 r469  
    4949#include "JetsUtil.h"
    5050#include "BFieldProp.h"
     51#include "PdgParticle.h"
    5152
    5253#include<vector>
     
    327328        {
    328329          genMomentum.SetPxPyPzE(particle->Px, particle->Py, particle->Pz, particle->E);
     330          PdgParticle pdg_part = DET->PDGtable[particle->PID];
    329331         
    330332          int pid = abs(particle->PID);
     
    338340         
    339341          //Calculate ETMIS from generated particles
    340           if((pid == pNU1) || (pid == pNU2) || (pid == pNU3))PTmisGEN = PTmisGEN + genMomentum;
     342          //if((pid == pNU1) || (pid == pNU2) || (pid == pNU3))PTmisGEN = PTmisGEN + genMomentum;
     343          if( (particle->Status == 1) && pdg_part.invisible() )PTmisGEN = PTmisGEN + genMomentum;
    341344
    342345          //Electrons and muons 
    343346          if( (particle->Status == 1)    &&
    344             ((pid != pNU1) && (pid != pNU2) && (pid != pNU3)) &&
     347            //((pid != pNU1) && (pid != pNU2) && (pid != pNU3)) &&
     348             (! pdg_part.invisible() ) &&
    345349             (fabs(particle->Eta) < DET->CEN_max_calo_fwd)
    346350            )
Note: See TracChangeset for help on using the changeset viewer.