ATLAS Offline Software
Loading...
Searching...
No Matches
Pythia8ForDecays.cxx File Reference
#include "G4ExternalDecay/Pythia8ForDecays.h"
#include "Pythia8_i/Pythia8_i.h"
#include "Pythia8/RHadrons.h"
#include "AtlasHepMC/GenEvent.h"
#include "AtlasHepMC/GenParticle.h"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ThreeVector.hh"
#include "TLorentzVector.h"
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <fstream>

Go to the source code of this file.

Functions

static unsigned short int nth_digit (const int &val, const unsigned short &n)

Function Documentation

◆ nth_digit()

unsigned short int nth_digit ( const int & val,
const unsigned short & n )
inlinestatic

Definition at line 26 of file Pythia8ForDecays.cxx.

26{ return (std::abs(val)/(int(std::pow(10,n-1))))%10;}