~ma5dev/madanalysis5/v1.6beta

« back to all changes in this revision

Viewing changes to tools/SampleAnalyzer/Commons/Service/LoopService.cpp

  • Committer: Benjamin Fuks
  • Date: 2017-12-06 02:22:30 UTC
  • Revision ID: fuks@cern.ch-20171206022230-kkr1kbf9lg691nb3
Fixing a bug with the jet clusterer when hard scattering photons are ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
  // Weird case ? Safety: removing this case
84
84
  if (part->mothers().size()==0) return true;
85
 
  //  std::cout << "part id=" << part->pdgid() << "\tstatus=" << part->statuscode() << "\tmother=" << part->mother1()->pdgid() << std::endl;
 
85
//   std::cout << "  [][][][] part id=" << part->pdgid() << "\tstatus=" << part->statuscode() << "\tmother=" << part->mothers().size() << std::endl;
86
86
 
87
87
  // Patch for Herwig
88
88
  if (mySample.sampleGenerator()==MA5GEN::HERWIG6)
93
93
  // Weird case
94
94
  //  if (part->mother1()==part) { std::cout << "exit" << std::endl; exit(0); }
95
95
 
 
96
  // Checking if hard-scattering photons directly generated from the initial state
 
97
  if(part->mothers().size()==2 && part->mothers()[0]->statuscode()==21 && part->mothers()[1]->statuscode()==21) return false;
 
98
 
96
99
  // Checking if mother is hadron
97
100
  MAbool had = PHYSICS->Id->IsHadronic(part->mothers()[0]->pdgid()) && part->mothers()[0]->pdgid()!=21;
98
101