evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtRaritaSchwingerParticle.hh>

Inheritance diagram for EvtRaritaSchwingerParticle:
EvtParticle

Public Member Functions

 EvtRaritaSchwingerParticle ()=default
 
void init (EvtId id, const EvtVector4R &p4) override
 
void init (EvtId id, const EvtVector4R &p4, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &, const EvtRaritaSchwinger &)
 
EvtRaritaSchwinger spRSParent (int) const override
 
EvtRaritaSchwinger spRS (int) const override
 
EvtSpinDensity rotateToHelicityBasis () const override
 
EvtSpinDensity rotateToHelicityBasis (double alpha, double beta, double gamma) const override
 
- Public Member Functions inherited from EvtParticle
 EvtParticle ()
 
virtual ~EvtParticle ()
 
virtual EvtVector4C epsParent (int i) const
 
virtual EvtVector4C eps (int i) const
 
virtual EvtVector4C epsParentPhoton (int i)
 
virtual EvtVector4C epsPhoton (int i)
 
virtual EvtDiracSpinor spParent (int) const
 
virtual EvtDiracSpinor sp (int) const
 
virtual EvtDiracSpinor spParentNeutrino () const
 
virtual EvtDiracSpinor spNeutrino () const
 
virtual EvtTensor4C epsTensorParent (int i) const
 
virtual EvtTensor4C epsTensor (int i) const
 
void addDaug (EvtParticle *node)
 
void decay ()
 
void deleteTree ()
 
void deleteDaughters (bool keepChannel=false)
 
void setChannel (int i)
 
void makeDaughters (unsigned int ndaug, EvtId *id)
 
void makeDaughters (unsigned int ndaug, std::vector< EvtId > idVector)
 
double initializePhaseSpace (unsigned int numdaughter, EvtId *daughters, bool forceResetMasses=false, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
 
EvtParticlegetDaug (int i)
 
EvtParticlenextIter (EvtParticle *rootOfTree=0)
 
void makeStdHep (EvtStdHep &stdhep, EvtSecondary &secondary, EvtId *stable_parent_ihep)
 
void makeStdHep (EvtStdHep &stdhep)
 
EvtVector4R getP4Lab () const
 
EvtVector4R getP4LabBeforeFSR ()
 
EvtVector4R getP4Restframe () const
 
EvtVector4R get4Pos () const
 
EvtParticlegetParent () const
 
void insertDaugPtr (int idaug, EvtParticle *partptr)
 
double mass () const
 
int firstornot () const
 
void setFirstOrNot ()
 
void resetFirstOrNot ()
 
EvtId getId () const
 
int getPDGId () const
 
EvtSpinType::spintype getSpinType () const
 
int getSpinStates () const
 
const EvtVector4RgetP4 () const
 
void setP4 (const EvtVector4R &p4)
 
void setP4WithFSR (const EvtVector4R &p4)
 
void setFSRP4toZero ()
 
int getChannel () const
 
size_t getNDaug () const
 
void resetNDaug ()
 
void printTree () const
 
void printTreeRec (unsigned int level) const
 
std::string treeStr () const
 
std::string treeStrRec (unsigned int level) const
 
void printParticle () const
 
void setLifetime (double tau)
 
void setLifetime ()
 
double getLifetime ()
 
void setDiagonalSpinDensity ()
 
void setVectorSpinDensity ()
 
void setSpinDensityForward (const EvtSpinDensity &rho)
 
void setSpinDensityForwardHelicityBasis (const EvtSpinDensity &rho)
 
void setSpinDensityForwardHelicityBasis (const EvtSpinDensity &rho, double alpha, double beta, double gamma)
 
EvtSpinDensity getSpinDensityForward ()
 
void setSpinDensityBackward (const EvtSpinDensity &rho)
 
EvtSpinDensity getSpinDensityBackward ()
 
void noLifeTime ()
 
void setId (EvtId id)
 
void initDecay (bool useMinMass=false)
 
bool generateMassTree ()
 
double compMassProb ()
 
void setMass (double m)
 
bool isInitialized ()
 
bool hasValidP4 ()
 
bool isDecayed ()
 
double * decayProb ()
 
void setDecayProb (double p)
 
std::string getName ()
 
void setAttribute (std::string attName, int attValue)
 
int getAttribute (std::string attName)
 
void setAttributeDouble (std::string attName, double attValue)
 
double getAttributeDouble (std::string attName)
 

Private Member Functions

 EvtRaritaSchwingerParticle (const EvtRaritaSchwingerParticle &d)
 
EvtRaritaSchwingerParticleoperator= (const EvtRaritaSchwingerParticle &d)
 

Private Attributes

EvtRaritaSchwinger _spinorRest [4]
 
EvtRaritaSchwinger _spinor [4]
 

Additional Inherited Members

- Protected Types inherited from EvtParticle
typedef std::map< std::string, int > EvtAttIntMap
 
typedef std::map< std::string, double > EvtAttDblMap
 
- Protected Member Functions inherited from EvtParticle
void setp (double e, double px, double py, double pz)
 
void setp (const EvtVector4R &p4)
 
void setpart_num (EvtId particle_number)
 
- Protected Attributes inherited from EvtParticle
bool _validP4
 
EvtAttIntMap _intAttributes
 
EvtAttDblMap _dblAttributes
 

Detailed Description

Definition at line 30 of file EvtRaritaSchwingerParticle.hh.

Constructor & Destructor Documentation

◆ EvtRaritaSchwingerParticle() [1/2]

EvtRaritaSchwingerParticle::EvtRaritaSchwingerParticle ( )
default

◆ EvtRaritaSchwingerParticle() [2/2]

EvtRaritaSchwingerParticle::EvtRaritaSchwingerParticle ( const EvtRaritaSchwingerParticle d)
private

Member Function Documentation

◆ init() [1/2]

void EvtRaritaSchwingerParticle::init ( EvtId  part_n,
const EvtVector4R p4 
)
overridevirtual

Initialiaze particle with id and 4momentum.

Implements EvtParticle.

Definition at line 35 of file EvtRaritaSchwingerParticle.cpp.

◆ init() [2/2]

void EvtRaritaSchwingerParticle::init ( EvtId  id,
const EvtVector4R p4,
const EvtRaritaSchwinger prod1,
const EvtRaritaSchwinger prod2,
const EvtRaritaSchwinger prod3,
const EvtRaritaSchwinger prod4,
const EvtRaritaSchwinger rest1,
const EvtRaritaSchwinger rest2,
const EvtRaritaSchwinger rest3,
const EvtRaritaSchwinger rest4 
)

Definition at line 82 of file EvtRaritaSchwingerParticle.cpp.

◆ operator=()

EvtRaritaSchwingerParticle& EvtRaritaSchwingerParticle::operator= ( const EvtRaritaSchwingerParticle d)
private

◆ rotateToHelicityBasis() [1/2]

EvtSpinDensity EvtRaritaSchwingerParticle::rotateToHelicityBasis ( ) const
overridevirtual

Returns a rotation matrix need to rotate the basis state to the helicity basis. The EvtSpinDensity matrix is just use as a matrix here. This function is to be implemented in each derived class.

Implements EvtParticle.

Definition at line 122 of file EvtRaritaSchwingerParticle.cpp.

◆ rotateToHelicityBasis() [2/2]

EvtSpinDensity EvtRaritaSchwingerParticle::rotateToHelicityBasis ( double  alpha,
double  beta,
double  gamma 
) const
overridevirtual

Implements EvtParticle.

Definition at line 163 of file EvtRaritaSchwingerParticle.cpp.

◆ spRS()

EvtRaritaSchwinger EvtRaritaSchwingerParticle::spRS ( int  i) const
overridevirtual

Returns Rarita-Schwinger spinor in the particles own restframe for a Rarita-Schwinger particle.

Reimplemented from EvtParticle.

Definition at line 117 of file EvtRaritaSchwingerParticle.cpp.

◆ spRSParent()

EvtRaritaSchwinger EvtRaritaSchwingerParticle::spRSParent ( int  i) const
overridevirtual

Returns Rarita-Schwinger spinor in the parents restframe for a Rarita-Schwinger particle.

Reimplemented from EvtParticle.

Definition at line 112 of file EvtRaritaSchwingerParticle.cpp.

Member Data Documentation

◆ _spinor

EvtRaritaSchwinger EvtRaritaSchwingerParticle::_spinor[4]
private

Definition at line 47 of file EvtRaritaSchwingerParticle.hh.

◆ _spinorRest

EvtRaritaSchwinger EvtRaritaSchwingerParticle::_spinorRest[4]
private

Definition at line 46 of file EvtRaritaSchwingerParticle.hh.


The documentation for this class was generated from the following files: