Belle II Software light-2406-ragdoll
|
Class for collecting the basic objects related to the event shape. More...
#include <EventShapeContainer.h>
Public Member Functions | |
EventShapeContainer () | |
Default constructor, resets the sphericity matrix. | |
void | setSphericityEigenvector (short i, ROOT::Math::XYZVector eigenvector) |
Sets the i-th sphericity eigenvector. | |
void | setSphericityEigenvalue (short i, float eigenvalue) |
Sets the i-th sphericity eigenvalue. | |
void | setFWMoment (short order, float moment) |
Sets the Fox-Wolfram (FW) moment of order n. | |
void | setThrust (float thrust) |
Sets the thrust of the event. | |
void | setThrustAxis (ROOT::Math::XYZVector thrustAxis) |
Sets the thrust axis, normalizing it. | |
void | setSpherocityAxis (ROOT::Math::XYZVector spherocityAxis) |
Sets the spherocity axis, normalizing it. | |
void | setHarmonicMomentThrust (short order, float moment) |
Sets the harmonic moment of order n, calculated using the thrust axis. | |
void | setHarmonicMomentCollision (short order, float moment) |
Sets the harmonic moment of order n, calculated using the collision axis. | |
void | setCleoConeThrust (short order, float moment) |
Sets the Cleo cone of order n, calculated using the thrust axis. | |
void | setCleoConeCollision (short order, float moment) |
Sets the Cleo cone of order n, calculated using the collision axis. | |
void | setForwardHemisphere4Momentum (ROOT::Math::PxPyPzEVector mom) |
Sets the 4-momentum of the forward hemisphere, as defined by the thrust axis. | |
void | setBackwardHemisphere4Momentum (ROOT::Math::PxPyPzEVector mom) |
Sets the 4-momentum of the backward hemisphere, as defined by the thrust axis. | |
float | getThrust () const |
Returns the thrust. | |
ROOT::Math::XYZVector | getThrustAxis () const |
Returns the thrust axis (normalized). | |
ROOT::Math::XYZVector | getSpherocityAxis () const |
Returns the spherocity axis (normalized). | |
float | getSphericityEigenvalue (short i) const |
Returns the i-th sphericity matrix eigenvalue. | |
ROOT::Math::XYZVector | getSphericityEigenvector (short i) const |
Returns the i-th sphericity matrix eigenvector. | |
float | getFWMoment (short order) const |
Returns the Fox-Wolfram moment of a given order. | |
float | getHarmonicMomentCollision (short order) const |
Returns the harmonic moment of a given order, calculated respect to the beam axis. | |
float | getHarmonicMomentThrust (short order) const |
Returns the harmonic moment of a given order, calculated respect to the thrust axis. | |
float | getCleoConeCollision (short order) const |
Returns the Cleo cone of a given order, calculated respect to the beam axis. | |
float | getCleoConeThrust (short order) const |
Returns the Cleo cone of a given order, calculated respect to the thrust axis. | |
ROOT::Math::PxPyPzEVector | getForwardHemisphere4Momentum () const |
Returns the 4-momentum of the forward hemisphere, as defined by the thrust axis. | |
ROOT::Math::PxPyPzEVector | getBackwardHemisphere4Momentum () const |
Return the 4-momentum of the backward hemisphere, as defined by the thrust axis. | |
void | addRelationTo (const RelationsInterface< BASE > *object, float weight=1.0, const std::string &namedRelation="") const |
Add a relation from this object to another object (with caching). | |
void | addRelationTo (const TObject *object, float weight=1.0, const std::string &namedRelation="") const |
Add a relation from this object to another object (no caching, can be quite slow). | |
void | copyRelations (const RelationsInterface< BASE > *sourceObj) |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights). | |
template<class TO > | |
RelationVector< TO > | getRelationsTo (const std::string &name="", const std::string &namedRelation="") const |
Get the relations that point from this object to another store array. | |
template<class FROM > | |
RelationVector< FROM > | getRelationsFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the relations that point from another store array to this object. | |
template<class T > | |
RelationVector< T > | getRelationsWith (const std::string &name="", const std::string &namedRelation="") const |
Get the relations between this object and another store array. | |
template<class TO > | |
TO * | getRelatedTo (const std::string &name="", const std::string &namedRelation="") const |
Get the object to which this object has a relation. | |
template<class FROM > | |
FROM * | getRelatedFrom (const std::string &name="", const std::string &namedRelation="") const |
Get the object from which this object has a relation. | |
template<class T > | |
T * | getRelated (const std::string &name="", const std::string &namedRelation="") const |
Get the object to or from which this object has a relation. | |
template<class TO > | |
std::pair< TO *, float > | getRelatedToWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing to an array. | |
template<class FROM > | |
std::pair< FROM *, float > | getRelatedFromWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing from an array. | |
template<class T > | |
std::pair< T *, float > | getRelatedWithWeight (const std::string &name="", const std::string &namedRelation="") const |
Get first related object & weight of relation pointing from/to an array. | |
virtual std::string | getName () const |
Return a short name that describes this object, e.g. | |
virtual std::string | getInfoHTML () const |
Return a short summary of this object's contents in HTML format. | |
std::string | getInfo () const |
Return a short summary of this object's contents in raw text format. | |
std::string | getArrayName () const |
Get name of array this object is stored in, or "" if not found. | |
int | getArrayIndex () const |
Returns this object's array index (in StoreArray), or -1 if not found. | |
Protected Member Functions | |
TClonesArray * | getArrayPointer () const |
Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse). | |
Private Member Functions | |
ClassDef (RelationsInterface, 0) | |
defines interface for accessing relations of objects in StoreArray. | |
Private Attributes | |
ROOT::Math::XYZVector | m_thrustAxis |
Thrust axis. | |
ROOT::Math::XYZVector | m_spherocityAxis |
Spherocity axis. | |
ROOT::Math::XYZVector | m_sphericityEigenvector [3] |
Sphericity tensor eigenvectors. | |
float | m_sphericityEigenvalue [3] = {0.} |
Sphericity tensor eigenvalues. | |
float | m_foxWolframMoments [10] = {0.} |
Fox Wolfram moments up to order 9. | |
float | m_thrust = 0 |
Thrust value. | |
float | m_harmonicMomentsThrust [10] = {0.} |
Harmonic moments up to order 9, calculated respect to the thrust axis. | |
float | m_cleoConesThrust [10] = {0.} |
Cleo cones up to order 9, calculated respect to the thrust axis. | |
float | m_harmonicMomentsCollision [10] = {0.} |
Harmonic moments up to order 9, calculated respect to the collision axis. | |
float | m_cleoConesCollision [10] = {0.} |
Cleo cones up to order 9, calculated respect to the collision axis. | |
ROOT::Math::PxPyPzEVector | m_forwardHemisphere4Momentum |
Total 4-momentum of the particles in the forward hemisphere. | |
ROOT::Math::PxPyPzEVector | m_backwardHemisphere4Momentum |
Total 4-momentum of the particles in the backward hemisphere. | |
DataStore::StoreEntry * | m_cacheDataStoreEntry |
Cache of the data store entry to which this object belongs. | |
int | m_cacheArrayIndex |
Cache of the index in the TClonesArray to which this object belongs. | |
Class for collecting the basic objects related to the event shape.
This object is written by the EventShapeCalculator module, that stores here the quantities that require long calculations like the FW moments, the sphericity(-like) tensors and the shape axes (like thrust axis or jet axes). These quantities will be then used by the VaribaleManager functions to get the final EventShape variable, which are usually very simple to calculate. For example, the EventShapeCalculator will store here the Fox-Wolfram moments, while the ratios of them will be calculated on fly by the Variable Manager. We prefer this approach rather than storing every event shape variable directly here to keep a reasonably small data object, and making adding more variables easier.
All the quantities are defined and calculated in the center of mass frame.
The Event shape variables stored here can be divided into two classes: axis independent and axis-based. The first one are uniquely defined by the particles in the event, while the latter one require also a reference axis to be calculated.
The axis-independent quantities currently implemented are:
The axis-dependent quantities currently implemented are:
Definition at line 52 of file EventShapeContainer.h.
|
inline |
Default constructor, resets the sphericity matrix.
Definition at line 59 of file EventShapeContainer.h.
|
inlineinherited |
Add a relation from this object to another object (with caching).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 142 of file RelationsObject.h.
|
inlineinherited |
Add a relation from this object to another object (no caching, can be quite slow).
object | The object to which the relation should point. |
weight | The weight of the relation. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 155 of file RelationsObject.h.
|
inlineinherited |
Copies all relations of sourceObj (pointing from or to sourceObj) to this object (including weights).
Useful if you want to make a complete copy of a StoreArray object to make modifications to it, but retain all information on linked objects.
Note: this only works if sourceObj inherits from the same base (e.g. RelationsObject), and only for related objects that also inherit from the same base.
Definition at line 170 of file RelationsObject.h.
|
inlineinherited |
Returns this object's array index (in StoreArray), or -1 if not found.
Definition at line 385 of file RelationsObject.h.
|
inlineinherited |
Get name of array this object is stored in, or "" if not found.
Definition at line 377 of file RelationsObject.h.
|
inlineprotectedinherited |
Returns the pointer to the raw DataStore array holding this object (protected since these arrays are easy to misuse).
Definition at line 418 of file RelationsObject.h.
|
inline |
Return the 4-momentum of the backward hemisphere, as defined by the thrust axis.
Definition at line 367 of file EventShapeContainer.h.
|
inline |
Returns the Cleo cone of a given order, calculated respect to the beam axis.
order | Order of the harmonic moment |
Definition at line 330 of file EventShapeContainer.h.
|
inline |
Returns the Cleo cone of a given order, calculated respect to the thrust axis.
order | Order of the harmonic moment |
Definition at line 344 of file EventShapeContainer.h.
|
inline |
Returns the 4-momentum of the forward hemisphere, as defined by the thrust axis.
Definition at line 358 of file EventShapeContainer.h.
|
inline |
Returns the Fox-Wolfram moment of a given order.
order | Order of the FW moment |
Definition at line 287 of file EventShapeContainer.h.
|
inline |
Returns the harmonic moment of a given order, calculated respect to the beam axis.
order | Order of the harmonic moment |
Definition at line 301 of file EventShapeContainer.h.
|
inline |
Returns the harmonic moment of a given order, calculated respect to the thrust axis.
order | Order of the harmonic moment |
Definition at line 315 of file EventShapeContainer.h.
|
inlineinherited |
Return a short summary of this object's contents in raw text format.
Returns the contents of getInfoHTML() while translating line-breaks etc.
Definition at line 370 of file RelationsObject.h.
|
inlinevirtualinherited |
Return a short summary of this object's contents in HTML format.
Reimplement this in your own class to provide useful output for display or debugging purposes. For example, you might do something like:
Reimplemented in Particle, Cluster, MCParticle, PIDLikelihood, SoftwareTriggerResult, Track, TrackFitResult, and TRGSummary.
Definition at line 362 of file RelationsObject.h.
|
inlinevirtualinherited |
Return a short name that describes this object, e.g.
pi+ for an MCParticle.
Reimplemented in Particle, and MCParticle.
Definition at line 344 of file RelationsObject.h.
|
inlineinherited |
Get the object to or from which this object has a relation.
T | The class of objects to or from which the relation points. |
name | The name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 278 of file RelationsObject.h.
|
inlineinherited |
Get the object from which this object has a relation.
FROM | The class of objects from which the relation points. |
name | The name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 263 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from an array.
FROM | The class of objects from which the relation points. |
name | The name of the store array from which the relation points. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 314 of file RelationsObject.h.
|
inlineinherited |
Get the object to which this object has a relation.
TO | The class of objects to which the relation points. |
name | The name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 248 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing to an array.
TO | The class of objects to which the relation points. |
name | The name of the store array to which the relation points. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 297 of file RelationsObject.h.
|
inlineinherited |
Get first related object & weight of relation pointing from/to an array.
T | The class of objects to or from which the relation points. |
name | The name of the store array to or from which the relation points. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 331 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from another store array to this object.
FROM | The class of objects from which the relations point. |
name | The name of the store array from which the relations point. If empty the default store array name for class FROM will be used. If the special name "ALL" is given all store arrays containing objects of type FROM are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 212 of file RelationsObject.h.
|
inlineinherited |
Get the relations that point from this object to another store array.
TO | The class of objects to which the relations point. |
name | The name of the store array to which the relations point. If empty the default store array name for class TO will be used. If the special name "ALL" is given all store arrays containing objects of type TO are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 197 of file RelationsObject.h.
|
inlineinherited |
Get the relations between this object and another store array.
Relations in both directions are returned.
T | The class of objects to or from which the relations point. |
name | The name of the store array to or from which the relations point. If empty the default store array name for class T will be used. If the special name "ALL" is given all store arrays containing objects of type T are considered. |
namedRelation | Additional name for the relation, or "" for the default naming |
Definition at line 230 of file RelationsObject.h.
|
inline |
Returns the i-th sphericity matrix eigenvalue.
i | the number of the eigenvalue (0,1,2) |
Definition at line 255 of file EventShapeContainer.h.
|
inline |
Returns the i-th sphericity matrix eigenvector.
i | the number of the eigenvalue (0,1,2) |
Definition at line 270 of file EventShapeContainer.h.
|
inline |
Returns the spherocity axis (normalized).
Definition at line 245 of file EventShapeContainer.h.
|
inline |
Returns the thrust.
Definition at line 227 of file EventShapeContainer.h.
|
inline |
Returns the thrust axis (normalized).
Definition at line 236 of file EventShapeContainer.h.
|
inline |
Sets the 4-momentum of the backward hemisphere, as defined by the thrust axis.
mom | PxPyPzEVector of the particles in the backward hemisphere |
Definition at line 212 of file EventShapeContainer.h.
|
inline |
Sets the Cleo cone of order n, calculated using the collision axis.
order | The order (0 to 9) |
moment | The Cleo cone value |
Definition at line 191 of file EventShapeContainer.h.
|
inline |
Sets the Cleo cone of order n, calculated using the thrust axis.
order | The order (0 to 9) |
moment | The Cleo cone value |
Definition at line 178 of file EventShapeContainer.h.
|
inline |
Sets the 4-momentum of the forward hemisphere, as defined by the thrust axis.
mom | PxPyPzEVector of the particles in the forward hemisphere |
Definition at line 203 of file EventShapeContainer.h.
|
inline |
Sets the Fox-Wolfram (FW) moment of order n.
This is NOT the normalized FW moment (R1, R2...), but the original one.
order | The order (0 to 9) |
moment | The Fox-Wolfram moment value |
Definition at line 108 of file EventShapeContainer.h.
|
inline |
Sets the harmonic moment of order n, calculated using the collision axis.
order | The order (0 to 9) |
moment | The harmonic moment value |
Definition at line 165 of file EventShapeContainer.h.
|
inline |
Sets the harmonic moment of order n, calculated using the thrust axis.
order | The order (0 to 9) |
moment | The harmonic moment value |
Definition at line 152 of file EventShapeContainer.h.
|
inline |
Sets the i-th sphericity eigenvalue.
i | the order (0,1,2) |
eigenvalue | the eigenvalue |
Definition at line 95 of file EventShapeContainer.h.
|
inline |
Sets the i-th sphericity eigenvector.
i | the order (0,1,2) |
eigenvector | the eigenvector |
Definition at line 82 of file EventShapeContainer.h.
|
inline |
Sets the spherocity axis, normalizing it.
spherocityAxis | sperocity axis. Must have magnitude equal to the thrust value. |
Definition at line 140 of file EventShapeContainer.h.
|
inline |
Sets the thrust of the event.
thrust | thrust value |
Definition at line 120 of file EventShapeContainer.h.
|
inline |
Sets the thrust axis, normalizing it.
thrustAxis | thrust axis. |
Definition at line 129 of file EventShapeContainer.h.
|
private |
Total 4-momentum of the particles in the backward hemisphere.
Definition at line 393 of file EventShapeContainer.h.
|
mutableprivateinherited |
Cache of the index in the TClonesArray to which this object belongs.
Definition at line 432 of file RelationsObject.h.
|
mutableprivateinherited |
Cache of the data store entry to which this object belongs.
Definition at line 429 of file RelationsObject.h.
|
private |
Cleo cones up to order 9, calculated respect to the collision axis.
Definition at line 389 of file EventShapeContainer.h.
|
private |
Cleo cones up to order 9, calculated respect to the thrust axis.
Definition at line 387 of file EventShapeContainer.h.
|
private |
Total 4-momentum of the particles in the forward hemisphere.
Definition at line 392 of file EventShapeContainer.h.
|
private |
Fox Wolfram moments up to order 9.
Definition at line 382 of file EventShapeContainer.h.
|
private |
Harmonic moments up to order 9, calculated respect to the collision axis.
Definition at line 388 of file EventShapeContainer.h.
|
private |
Harmonic moments up to order 9, calculated respect to the thrust axis.
Definition at line 386 of file EventShapeContainer.h.
|
private |
Sphericity tensor eigenvalues.
Definition at line 381 of file EventShapeContainer.h.
|
private |
Sphericity tensor eigenvectors.
Definition at line 380 of file EventShapeContainer.h.
|
private |
Spherocity axis.
It is not normalized, and it's length is the spherocity value
Definition at line 377 of file EventShapeContainer.h.
|
private |
Thrust value.
Definition at line 385 of file EventShapeContainer.h.
|
private |
Thrust axis.
It is not normalized, and it's length is the thrust value
Definition at line 376 of file EventShapeContainer.h.