-
Notifications
You must be signed in to change notification settings - Fork 68
Add particle definition #748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
klendathu2k
wants to merge
10
commits into
star-bnl:main
Choose a base branch
from
klendathu2k:add-particle-definition
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
037dfef
Prevent ROOT6/CLING from loading all TROOT exposed classes twice... (…
klendathu2k c3f1d0e
Merge branch 'star-bnl:main' into main
klendathu2k 7b5cd92
Merge branch 'star-bnl:main' into main
klendathu2k 3048c8d
Merge branch 'star-bnl:main' into main
klendathu2k 8ec1aea
Merge branch 'star-bnl:main' into main
klendathu2k f97f998
Merge branch 'star-bnl:main' into main
klendathu2k bcf197b
Merge branch 'star-bnl:main' into main
klendathu2k 9a3ec0c
Add fast decay lambdas.
klendathu2k 5cf04f8
Merge branch 'main' into add-particle-definition
plexoos 6179c5f
Merge branch 'main' into add-particle-definition
plexoos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) | ||||||
| *************************************************************************** | ||||||
| * | ||||||
| * 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;} | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is the naming convention being followed?
Suggested change
|
||||||
|
|
||||||
| 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 | ||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?