ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTruthCnvAlg.cxx File Reference

Go to the source code of this file.

Namespaces

namespace  xAODMaker

Functions

bool isSeparatorGenEvent (const HepMC::GenEvent *genEvt)

Function Documentation

◆ isSeparatorGenEvent()

bool isSeparatorGenEvent ( const HepMC::GenEvent * genEvt)

Definition at line 41 of file xAODTruthCnvAlg.cxx.

41 {
42 // Separator defined by pid==0 and eventNumber==-1 as per
43 // https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/PileupDigitization#Arrangement_of_Truth_Information
44 const int pid = HepMC::signal_process_id(genEvt);
45 const int eventNumber = genEvt->event_number();
46 return (pid==0 && eventNumber==-1);
47}
int signal_process_id(const GenEvent &e)
Definition GenEvent.h:637