7 #ifndef SRC_INCLUDE_PROCESSBRANCH_H_ 8 #define SRC_INCLUDE_PROCESSBRANCH_H_ 141 inline void set_weight(
double process_weight);
156 inline double weight()
const;
193 template <
typename Branch>
196 for (
const auto &
p : l) {
334 #endif // SRC_INCLUDE_PROCESSBRANCH_H_ virtual unsigned int particle_number() const =0
int angular_momentum() const
ProcessBranch(double w)
Create a ProcessBranch with with weight but without final states.
const DecayType & type() const
ProcessBranch represents one possible final state of an interaction process.
const ParticleTypePtrList & particle_types() const
CollisionBranch(ParticleTypePtrList new_types, double w, ProcessType p_type)
Construct collision branch with a list of particles in final state.
double diffractive. Two strings are formed, one from A and one from B.
bool is_string_soft_process(ProcessType p)
Check if a given process type is a soft string excitation.
ProcessType
Process Types are used to identify the type of the process.
ProcessBranch()
Create a ProcessBranch without final states and weight.
ProcessType process_type_
Process type are used to distinguish different types of processes, e.g.
virtual unsigned int particle_number() const =0
double total_weight(const ProcessBranchList< Branch > &l)
a special case of baryon-antibaryon annihilation.
DecayBranch(const DecayType &t, double w)
Construct decay branch.
virtual const ParticleTypePtrList & particle_types() const =0
2->2 inelastic scattering
ProcessType get_type() const override
forced thermalization, many particles are replaced by a thermalized ensemble
DecayType is the abstract base class for all decay types.
const ParticleTypePtrList & particle_types() const override
unsigned int particle_number() const override
void set_weight(double process_weight)
Set the weight of the branch.
CollisionBranch(const ParticleType &type_a, const ParticleType &type_b, double w, ProcessType p_type)
Construct collision branch with 2 particles in final state.
ParticleList particle_list() const
elastic scattering: particles remain the same, only momenta change
double branch_weight_
Weight of the branch, typically a cross section or a branching ratio.
CollisionBranch(double w, ProcessType p_type)
Construct collision branch with empty final state.
CollisionBranch is a derivative of ProcessBranch, which is used to represent particular final-state c...
Particle type contains the static properties of a particle species.
const ParticleTypePtrList & particle_types() const override
CollisionBranch(CollisionBranch &&rhs)
The move constructor efficiently moves the particle-type list member.
hard string process involving 2->2 QCD process by PYTHIA.
int angular_momentum() const
virtual ~ProcessBranch()=default
Virtual Destructor.
DecayBranch is a derivative of ProcessBranch, which is used to represent decay channels.
CollisionBranch(const ParticleType &type, double w, ProcessType p_type)
Construct collision branch with 1 particle in final state.
resonance formation (2->1)
unsigned int particle_number() const override
single diffractive AB->XB.
ProcessType get_type() const override
virtual ProcessType get_type() const =0
std::ostream & operator<<(std::ostream &out, const ActionPtr &action)
Convenience: dereferences the ActionPtr to Action.
non-diffractive. Two strings are formed both have ends in A and B.
const DecayType & type_
Decay type (including final-state particles and angular momentum)
(41-45) soft string excitations.
DecayBranch(DecayBranch &&rhs)
The move constructor efficiently moves the particle-type list member.
double threshold_
Threshold of the branch.
void set_type(ProcessType p_type)
Set the process type.
ParticleTypePtrList particle_types_
List of particles appearing in this process outcome.