Skip to content
62 changes: 62 additions & 0 deletions StRoot/StarClassLibrary/StAntiFastLambda.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/***************************************************************************
*
* $Id: StAntiFastLambda.cc,v 1.1 1999/05/14 18:47:08 ullrich Exp $
*
* Author: Thomas Ullrich, May 99 (based on Geant4 code, see below)
***************************************************************************
*
* The design of the StParticleDefinition class and all concrete
* classes derived from it is largely based on the design of the
* G4ParticleDefinition class from Geant4 (RD44).
* Although the code is in large parts different (modified or rewritten)
* and adapted to the STAR framework the basic idea stays the same.
*
***************************************************************************
*
* $Log: StAntiFastLambda.cc,v $
* Revision 1.1 1999/05/14 18:47:08 ullrich
* Initial Revision
*
**************************************************************************/
#include "StAntiFastLambda.hh"
#include "PhysicalConstants.h"

StAntiFastLambda::StAntiFastLambda(const string & aName,
double mass,
double width,
double charge,
int iSpin,
int iParity,
int iConjugation,
int iIsospin,
int iIsospinZ,
int gParity,
const string & pType,
int lepton,
int baryon,
int encoding,
bool stable,
double lifetime)
: StBaryon(aName, mass, width, charge, iSpin, iParity,
iConjugation, iIsospin, iIsospinZ, gParity,
pType, lepton, baryon, encoding, stable,
lifetime) {/* noop */}

// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime
//
StAntiFastLambda StAntiFastLambda::mAntiLambda(
"anti_lambda", 1.115*GeV, 0.0*MeV, 0.0,
1, +1, 0,
0, 0, 0,
"baryon", 0, -1, -3122,
false, 0.54850E-9*nanosecond
);
52 changes: 52 additions & 0 deletions StRoot/StarClassLibrary/StAntiFastLambda.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/***************************************************************************
*
* $Id: StAntiFastLambda.hh,v 1.1 1999/05/14 18:48:46 ullrich Exp $
*
* Author: Thomas Ullrich, May 99 (based on Geant4 code, see below)
***************************************************************************
Comment on lines +2 to +6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to keep these lines?

*
* The design of the StParticleDefinition class and all concrete
* classes derived from it is largely based on the design of the
* G4ParticleDefinition class from Geant4 (RD44).
* Although the code is in large parts different (modified or rewritten)
* and adapted to the STAR framework the basic idea stays the same.
*
***************************************************************************
*
* $Log: StAntiFastLambda.hh,v $
* Revision 1.1 1999/05/14 18:48:46 ullrich
* Initial Revision
*
**************************************************************************/
#ifndef StAntiFastLambda_hh
#define StAntiFastLambda_hh

#include "StBaryon.hh"

class StAntiFastLambda : public StBaryon {
public:
static StAntiFastLambda* instance() {return &mAntiLambda;}
static StAntiFastLambda* antiLambda() {return &mAntiLambda;}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the naming convention being followed?

Suggested change
static StAntiFastLambda* antiLambda() {return &mAntiLambda;}
static StAntiFastLambda* antiFastLambda() {return &mAntiLambda;}


private:
static StAntiFastLambda mAntiLambda;

StAntiFastLambda(const string & aName,
double mass,
double width,
double charge,
int iSpin,
int iParity,
int iConjugation,
int iIsospin,
int iIsospinZ,
int gParity,
const string & pType,
int lepton,
int baryon,
int encoding,
bool stable,
double lifetime);
};

#endif
62 changes: 62 additions & 0 deletions StRoot/StarClassLibrary/StFastLambda.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/***************************************************************************
*
* $Id: StFastLambda.cc,v 1.1 1999/05/14 18:47:57 ullrich Exp $
*
* Author: Thomas Ullrich, May 99 (based on Geant4 code, see below)
***************************************************************************
*
* The design of the StParticleDefinition class and all concrete
* classes derived from it is largely based on the design of the
* G4ParticleDefinition class from Geant4 (RD44).
* Although the code is in large parts different (modified or rewritten)
* and adapted to the STAR framework the basic idea stays the same.
*
***************************************************************************
*
* $Log: StFastLambda.cc,v $
* Revision 1.1 1999/05/14 18:47:57 ullrich
* Initial Revision
*
**************************************************************************/
#include "StFastLambda.hh"
#include "PhysicalConstants.h"

StFastLambda::StFastLambda(const string & aName,
double mass,
double width,
double charge,
int iSpin,
int iParity,
int iConjugation,
int iIsospin,
int iIsospinZ,
int gParity,
const string & pType,
int lepton,
int baryon,
int encoding,
bool stable,
double lifetime)
: StBaryon(aName, mass, width, charge, iSpin, iParity,
iConjugation, iIsospin, iIsospinZ, gParity,
pType, lepton, baryon, encoding, stable,
lifetime) {/* noop */}

// ......................................................................
// ... static member definitions ...
// ......................................................................
//
// Arguments for constructor are as follows
// name mass width charge
// 2*spin parity C-conjugation
// 2*Isospin 2*Isospin3 G-parity
// type lepton number baryon number PDG encoding
// stable lifetime
//
StFastLambda StFastLambda::mLambda(
"lambda", 1.115*GeV, 0.0*MeV, 0.0,
1, +1, 0,
0, 0, 0,
"baryon", 0, +1, 3122,
false, 0.54850E-9*nanosecond
);
52 changes: 52 additions & 0 deletions StRoot/StarClassLibrary/StFastLambda.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/***************************************************************************
*
* $Id: StFastLambda.hh,v 1.1 1999/05/14 18:49:43 ullrich Exp $
*
* Author: Thomas Ullrich, May 99 (based on Geant4 code, see below)
***************************************************************************
*
* The design of the StParticleDefinition class and all concrete
* classes derived from it is largely based on the design of the
* G4ParticleDefinition class from Geant4 (RD44).
* Although the code is in large parts different (modified or rewritten)
* and adapted to the STAR framework the basic idea stays the same.
*
***************************************************************************
*
* $Log: StFastLambda.hh,v $
* Revision 1.1 1999/05/14 18:49:43 ullrich
* Initial Revision
*
**************************************************************************/
#ifndef StFastLambda_hh
#define StFastLambda_hh

#include "StBaryon.hh"

class StFastLambda : public StBaryon {
public:
static StFastLambda* instance() {return &mLambda;}
static StFastLambda* lambda() {return &mLambda;}

private:
static StFastLambda mLambda;

StFastLambda(const string & aName,
double mass,
double width,
double charge,
int iSpin,
int iParity,
int iConjugation,
int iIsospin,
int iIsospinZ,
int gParity,
const string & pType,
int lepton,
int baryon,
int encoding,
bool stable,
double lifetime);
};

#endif
3 changes: 3 additions & 0 deletions StRoot/StarClassLibrary/StParticleTable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ StParticleTable::StParticleTable()
Geant2Pdg(10151, 333, phi --> K+ K- );
Geant2Pdg(11151, 333, phi --> e+ e- );

Geant2Pdg( 11018, 3122, fast lambda --> p + pi- );
Geant2Pdg( 11026,-3122, fast lambdabar --> pbar + pi+ );

Geant2Pdg(10011, 321, Kaon+ --> mu+ nu ); // K+
Geant2Pdg(10012, -321, Kaon- --> mu- nu ); // K-

Expand Down
Loading