This is the decalaration of the Collision class. More...
#include <Collision.h>
Public Member Functions | |
Collision (const PPair &newIncoming, tEventPtr newEvent=tEventPtr(), tcEventBasePtr newHandler=tcEventBasePtr()) | |
The standard constructor takes a pair of incoming particles as argument. | |
~Collision () | |
The destructor. | |
tStepPtr | newStep (tcEventBasePtr newHandler=tcEventBasePtr()) |
Create a new step in this collision, which is a copy of the last step (if any) and return a pointer to it. | |
void | addStep (tStepPtr s) |
Add a new Step to this Collision. | |
tcEventBasePtr | handler () const |
Return a pointer to the EventHandler which produced this Collision. | |
tEventPtr | event () const |
Return a pointer to the Event to which this Collision belongs. | |
Functions for accessing particles etc. | |
template<class OutputIterator > | |
void | select (OutputIterator r, const SelectorBase &s) const |
Extract particles from this Collision which satisfies the requirements given by an object of the SelectorBase class. | |
template<class OutputIterator > | |
void | selectFinalState (OutputIterator r) const |
Extract all final state particles in this Collision. | |
tPVector | getFinalState () const |
Extract all final state particles in this Collision. | |
tSubProPtr | primarySubProcess () const |
Return a pointer to the primary SubProcess in this Collision. | |
const SubProcessVector & | subProcesses () const |
Return the possibly empty list of sub processes in this Collision. | |
tcStepPtr | finalStep () const |
Return a const pointer to the last step in this Collission. | |
tStepPtr | finalStep () |
Return a pointer to the last step in this Collission. | |
const StepVector & | steps () const |
Return the vector of steps in this Collision. | |
tcStepPtr | step (unsigned int i) const |
Return a pointer to a given Step in this Collision. | |
const PPair & | incoming () const |
Return a reference to the pair of colliding particles in this Collision. | |
tParticleSet | getRemnants () const |
Return the set of remnants in this collision. | |
bool | isRemnant (tPPtr p) const |
Return true if the given particle is a remnant of the colliding particles. | |
const LorentzPoint & | vertex () const |
Return the vertex position of this Collision. | |
void | vertex (const LorentzPoint &p) |
Set the vertex position of this Collision. | |
void | transform (const LorentzRotation &) |
Transform all particles in this Collision. | |
Energy2 | m2 () const |
Return the total invariant mass squared of the final-state particles in this Collision. | |
Public Member Functions inherited from ThePEG::Base | |
virtual | ~Base () |
The virtual destructor. | |
void | debug () const |
Print out debugging information for this object on std::cerr. | |
virtual void | debugme () const |
Print out debugging information for this object on std::cerr. | |
Public Member Functions inherited from ThePEG::Pointer::ReferenceCounted | |
CounterType | referenceCount () const |
Return the reference count. | |
Friends | |
class | EventHandler |
EventHandler is a friend of most Event classes. | |
class | Event |
Most of the Event classes are friends with each other. | |
class | Step |
Most of the Event classes are friends with each other. | |
Internal functions for adding and removing entires. | |
struct | ClassTraits< Collision > |
The ClassTraits<Collision> class must be a friend to be able to use the private default constructor. | |
ostream & | operator<< (ostream &os, const Collision &c) |
Output to a standard ostream. | |
PPair | theIncoming |
The pair of colliding particles. | |
StepVector | theSteps |
A vector of all steps in this Collision. | |
SubProcessVector | theSubProcesses |
A vector of all sub-processes in this Collision. | |
ParticleSet | allParticles |
A set of all particles in this Collision. | |
tEventPtr | theEvent |
A pointer to the Event to which this Collision belongs. | |
tcEventBasePtr | theHandler |
A pointer to the EventHandler which performed the generation of this Collision. | |
LorentzPoint | theVertex |
The vertex position of this Collision. | |
static ClassDescription< Collision > | initCollision |
Describe concrete class with persistent data. | |
void | addSubProcess (tSubProPtr p) |
Add a new SubProcess to this Collision. | |
void | removeSubProcess (tSubProPtr p) |
Remove a SubProcess from this Collision. | |
template<class Iterator > | |
void | addParticles (Iterator first, Iterator last) |
Add a range of particles to this Collision. | |
void | addParticle (tPPtr p) |
Add a particle to this Collision. | |
void | removeEntry (tPPtr p) |
Remove a given Particle entry. | |
const ParticleSet & | all () const |
Return a reference to the list of all particles in this Collision. | |
CollPtr | clone () const |
Clone this Collision. | |
void | rebind (const EventTranslationMap &trans) |
Rebind to cloned objects. | |
Collision () | |
Private default constructor must only be used by the PersistentIStream class via the ClassTraits<Collision> class . | |
Collision & | operator= (const Collision &)=delete |
The assignment operator is private and not implemented. | |
Functions for removing entires from a Collision. | |
void | removeDecay (tPPtr) |
Remove (recursively) the decay products from a given Particle and add the particle to the list of final state particles. | |
void | removeParticle (tPPtr) |
Remove (recursively) the given Particle from the Collision. | |
void | cleanSteps () |
Remove all steps which have no new particles introduced in them. | |
void | popStep () |
Remove the last Step in this Collision. | |
void | persistentOutput (PersistentOStream &) const |
Standard function for writing to a persistent stream. | |
void | persistentInput (PersistentIStream &, int) |
Standard functions for reading from a persistent stream. | |
static void | Init () |
Standard Init function. | |
Additional Inherited Members | |
Public Types inherited from ThePEG::Pointer::ReferenceCounted | |
typedef unsigned int | CounterType |
The integer type used for counting. | |
Static Public Member Functions inherited from ThePEG::Base | |
static void | Init () |
The standard Init function used to initialize the interfaces. | |
Public Attributes inherited from ThePEG::Pointer::ReferenceCounted | |
const unsigned long | uniqueId |
The unique ID. | |
Protected Member Functions inherited from ThePEG::Pointer::ReferenceCounted | |
ReferenceCounted () | |
Default constructor. | |
ReferenceCounted (const ReferenceCounted &) | |
Copy-constructor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
This is the decalaration of the Collision class.
It contains all Particle
s produced in the generation of a collision between two particles in an Event. The particles are divided into Step
s corresponding to the particles present after a given step in the event generation. The collision also carries information about the SubProcesses
in the collision.
Definition at line 34 of file Collision.h.
|
inline |
The standard constructor takes a pair of incoming particles as argument.
Optionally can be given a pointer to the Event which this Collision belongs, and a pointer to the EventHandler which produced this collision.
newIncoming | a pair of incoming particles. |
newEvent | the Event to which this Collision belongs. |
newHandler | the handler object in charge of the generation of this Collision. |
Definition at line 59 of file Collision.h.
References addParticle(), and incoming().
|
inlineprivate |
Private default constructor must only be used by the PersistentIStream class via the ClassTraits<Collision> class .
Definition at line 366 of file Collision.h.
|
inlineprotected |
Return a reference to the list of all particles in this Collision.
Definition at line 299 of file Collision.h.
References allParticles.
|
protected |
|
inline |
Return a pointer to the Event to which this Collision belongs.
May be the null pointer.
Definition at line 96 of file Collision.h.
References theEvent.
|
inline |
Return a pointer to the last step in this Collission.
Definition at line 156 of file Collision.h.
References steps().
|
inline |
Return a const pointer to the last step in this Collission.
Definition at line 149 of file Collision.h.
References steps().
|
inline |
Extract all final state particles in this Collision.
Definition at line 125 of file Collision.h.
References selectFinalState().
tParticleSet ThePEG::Collision::getRemnants | ( | ) | const |
Return the set of remnants in this collision.
Remnants are defined as the daughters of the incoming particles which are not incoming particles to any SubProcess or children thereof which are present in the final state.
Referenced by isRemnant().
|
inline |
Return a pointer to the EventHandler which produced this Collision.
May be the null pointer.
Definition at line 90 of file Collision.h.
References theHandler.
|
inline |
Return a reference to the pair of colliding particles in this Collision.
Definition at line 177 of file Collision.h.
References theIncoming.
Referenced by Collision(), and m2().
|
static |
Standard Init function.
|
inline |
Return true if the given particle is a remnant of the colliding particles.
Calls the getRemnants method, so to check several particles it is better to call getRemnants directly and check if the particles are members of the resulting set by hand.
Definition at line 193 of file Collision.h.
References getRemnants(), and ThePEG::member().
|
inline |
Return the total invariant mass squared of the final-state particles in this Collision.
Definition at line 216 of file Collision.h.
References incoming().
tStepPtr ThePEG::Collision::newStep | ( | tcEventBasePtr | newHandler = tcEventBasePtr() | ) |
Create a new step in this collision, which is a copy of the last step (if any) and return a pointer to it.
newHandler | the handler object in charge of generating the new step. |
|
inline |
Return a pointer to the primary SubProcess in this Collision.
May be the null pointer.
Definition at line 135 of file Collision.h.
References subProcesses().
|
protected |
void ThePEG::Collision::removeParticle | ( | tPPtr | ) |
void ThePEG::Collision::select | ( | OutputIterator | r, |
const SelectorBase & | s | ||
) | const |
Extract particles from this Collision which satisfies the requirements given by an object of the SelectorBase class.
r | an output iterator specifying where the extracted (pointers to) particles will be appended. |
s | SelectorBase object defining which particles should be extracted. |
Referenced by selectFinalState().
|
inline |
Extract all final state particles in this Collision.
r | an output iterator specifying where the extracted (pointers to) particles will be appended. |
Definition at line 117 of file Collision.h.
References select().
Referenced by getFinalState().
|
inline |
|
inline |
Return the vector of steps in this Collision.
Definition at line 163 of file Collision.h.
References theSteps.
Referenced by finalStep(), and step().
|
inline |
Return the possibly empty list of sub processes in this Collision.
Definition at line 142 of file Collision.h.
References theSubProcesses.
Referenced by primarySubProcess().
|
inline |
Return the vertex position of this Collision.
Definition at line 200 of file Collision.h.
References theVertex.
|
inline |
Set the vertex position of this Collision.
Definition at line 205 of file Collision.h.
References theVertex.
|
friend |
The ClassTraits<Collision> class must be a friend to be able to use the private default constructor.
Definition at line 366 of file Collision.h.
|
friend |
Most of the Event classes are friends with each other.
Definition at line 43 of file Collision.h.
|
friend |
EventHandler is a friend of most Event classes.
Definition at line 41 of file Collision.h.
|
friend |
Most of the Event classes are friends with each other.
Definition at line 45 of file Collision.h.
|
private |
A set of all particles in this Collision.
Definition at line 337 of file Collision.h.
Referenced by all().
|
staticprivate |
Describe concrete class with persistent data.
Definition at line 360 of file Collision.h.
|
private |
A pointer to the Event to which this Collision belongs.
Definition at line 342 of file Collision.h.
Referenced by event().
|
private |
A pointer to the EventHandler which performed the generation of this Collision.
Definition at line 348 of file Collision.h.
Referenced by handler().
|
private |
The pair of colliding particles.
Definition at line 321 of file Collision.h.
Referenced by incoming().
|
private |
A vector of all steps in this Collision.
Definition at line 326 of file Collision.h.
|
private |
A vector of all sub-processes in this Collision.
The front element points to the primary sub-process.
Definition at line 332 of file Collision.h.
Referenced by subProcesses().
|
private |
The vertex position of this Collision.
Definition at line 353 of file Collision.h.
Referenced by vertex().