10 #ifndef Pythia8_PartonSystems_H
11 #define Pythia8_PartonSystems_H
13 #include "Pythia8/PythiaStdlib.h"
27 PartonSystem() : hard(false), iInA(0), iInB(0), iInRes(0), sHat(0.),
28 pTHat(0.) {iOut.reserve(10);}
32 int iInA, iInB, iInRes;
47 PartonSystems() {systems.resize(0);}
50 void clear() {systems.resize(0);}
53 int addSys() {systems.push_back(PartonSystem());
54 return systems.size() - 1;}
55 int sizeSys()
const {
return systems.size();}
58 void setHard(
int iSys,
bool hard) {systems[iSys].hard = hard;}
59 void setInA(
int iSys,
int iPos) {systems[iSys].iInA = iPos;}
60 void setInB(
int iSys,
int iPos) {systems[iSys].iInB = iPos;}
61 void setInRes(
int iSys,
int iPos) {systems[iSys].iInRes = iPos;}
62 void addOut(
int iSys,
int iPos) {systems[iSys].iOut.push_back(iPos);}
63 void popBackOut(
int iSys) {systems[iSys].iOut.pop_back();}
64 void setOut(
int iSys,
int iMem,
int iPos) {systems[iSys].iOut[iMem] = iPos;}
65 void replace(
int iSys,
int iPosOld,
int iPosNew);
66 void setSHat(
int iSys,
double sHatIn) {systems[iSys].sHat = sHatIn;}
67 void setPTHat(
int iSys,
double pTHatIn) {systems[iSys].pTHat = pTHatIn;}
68 void setSizeSys(
int iSize) {systems.resize(iSize);}
71 bool hasInAB(
int iSys)
const {
return ( (systems[iSys].iInA > 0)
72 && (systems[iSys].iInB > 0) ) ;}
73 bool hasInRes(
int iSys)
const {
return (systems[iSys].iInRes > 0);}
74 bool getHard(
int iSys)
const {
return systems[iSys].hard;}
75 int getInA(
int iSys)
const {
return systems[iSys].iInA;}
76 int getInB(
int iSys)
const {
return systems[iSys].iInB;}
77 int getInRes(
int iSys)
const {
return systems[iSys].iInRes;}
78 int sizeOut(
int iSys)
const {
return systems[iSys].iOut.size();}
79 int getOut(
int iSys,
int iMem)
const {
return systems[iSys].iOut[iMem];}
80 int sizeAll(
int iSys)
const {
return (systems[iSys].iOut.size()
81 + (hasInAB(iSys) ? 2 : 0) + (hasInRes(iSys) ? 1 : 0));}
82 int getAll(
int iSys,
int iMem)
const;
83 double getSHat(
int iSys)
const {
return systems[iSys].sHat;}
84 double getPTHat(
int iSys)
const {
return systems[iSys].pTHat;}
87 int getSystemOf(
int iPos,
bool alsoIn =
false)
const;
90 int getIndexOfOut(
int iSys,
int iPos)
const;
96 void popBack() { systems.pop_back(); }
101 vector<PartonSystem> systems;
109 #endif // Pythia8_PartonSystems_H