YAP
|
Stores and gives access to four-momenta and invariant masses. More...
#include <FourMomenta.h>
Public Member Functions | |
FourMomenta (Model &m) | |
bool | consistent () const |
check consistency | |
virtual void | calculate (DataPoint &d, StatusManager &sm) const override |
std::ostream & | printMasses (const DataPoint &d, std::ostream &os=std::cout) const |
print all masses | |
Getters | |
FourVector< double > | p (const DataPoint &d, const std::shared_ptr< ParticleCombination > &pc) const |
double | m2 (const DataPoint &d, const std::shared_ptr< ParticleCombination > &pc) const |
double | m (const DataPoint &d, const std::shared_ptr< ParticleCombination > &pc) const |
const FourVector< double > | totalMomentum (const DataPoint &d) const |
const std::vector< FourVector < double > > | finalStateMomenta (const DataPoint &d) const |
std::shared_ptr< RealCachedValue > | mass () |
std::shared_ptr< RealCachedValue > | mass () const |
std::shared_ptr < FourVectorCachedValue > | momentum () |
std::shared_ptr < FourVectorCachedValue > | momentum () const |
![]() | |
StaticDataAccessor (Model &m, const ParticleCombinationEqualTo &equal) | |
const Model * | model () const override |
![]() | |
DataAccessor (const ParticleCombinationEqualTo &equal) | |
const ParticleCombinationEqualTo & | equal () const |
int | index () const |
unsigned | symmetrizationIndex (const std::shared_ptr< ParticleCombination > &c) const |
const ParticleCombinationMap < unsigned > & | symmetrizationIndices () const |
const unsigned | nSymmetrizationIndices () const |
void | printParticleCombinations () const |
print ParticleCombination map | |
const CachedValueSet & | CachedValues () const |
const unsigned | size () const |
const bool | requiresStorage () const |
bool | consistent () const |
Check consistency of object. | |
Protected Member Functions | |
void | setFinalStateMomenta (DataPoint &d, const std::vector< FourVector< double > > &P, StatusManager &sm) const |
void | addParticleCombination (std::shared_ptr< ParticleCombination > pc) override |
looks for ISP when adding ParticleCombination's More... | |
void | pruneSymmetrizationIndices () override |
override to do nothing, since FourMomenta doesn't rely on parents being set. | |
![]() | |
virtual void | registerWithModel () override |
register with Model | |
virtual void | addToStaticDataAccessors () |
add to model's StaticDataAccessors_ | |
StaticDataAccessorVector & | staticDataAccessors () |
access to the model's StaticDataAccessors_ | |
![]() | |
void | addCachedValue (std::shared_ptr< CachedValue > c) |
add CachedValue | |
void | setIndex (size_t i) |
set storage index used in DataPoint. Must be unique. | |
Private Attributes | |
int | TotalIndex_ |
Symmetrization index of an initial state that is composed from ALL final state particles. | |
std::vector< int > | FSPIndices_ |
Symmetrization indices of final states. | |
std::shared_ptr < FourVectorCachedValue > | P_ |
four-vector of particle combinations | |
std::shared_ptr< RealCachedValue > | M_ |
invariant mass of particle combinations [GeV] | |
Friends | |
class | Model |
grant friend status to Model to call addParticleCombination and setFinalStateMomenta | |
class | DataAccessor |
grant friend status to DataAccessor to call addParticleCombination | |
Additional Inherited Members | |
![]() | |
friend | Model |
grant friend status to Model to access CachedValues_ | |
friend | CachedValue |
grant friend status to CachedValue to call addCachedValue | |
Stores and gives access to four-momenta and invariant masses.
FourMomenta | ( | Model & | m | ) |
Constructor
m | Owning model |
|
overrideprotectedvirtual |
|
overridevirtual |
Fill 4-momenta
d | DataPoint to fill |
sm | StatusManager to update |
Implements StaticDataAccessor.
const std::vector< FourVector< double > > finalStateMomenta | ( | const DataPoint & | d | ) | const |
d | DataPoint to get data from |
double m | ( | const DataPoint & | d, |
const std::shared_ptr< ParticleCombination > & | pc | ||
) | const |
Access invariant mass
d | DataPoint to get data from |
pc | ParticleCombination to return mass of |
|
inline |
Access invariant mass squared
d | DataPoint to get data from |
pc | ParticleCombination to return squared mass of |
|
inline |
|
inline |
|
inline |
|
inline |
FourVector< double > p | ( | const DataPoint & | d, |
const std::shared_ptr< ParticleCombination > & | pc | ||
) | const |
Access 4-momenta (const)
d | DataPoint to get data from |
pc | ParticleCombination to return 4-momentum of |
|
protected |
set final-state four-momenta
d | DataPoint to set into |
P | Four-momenta to set |
sm | StatusManager to be updated |
const FourVector< double > totalMomentum | ( | const DataPoint & | d | ) | const |
d | DataPoint to get data from |