Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CLHEP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CLHEP
CLHEP
Commits
1310340f
Commit
1310340f
authored
19 years ago
by
Lynn Garren
Browse files
Options
Downloads
Patches
Plain Diff
improved info
parent
714e49f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
HepPDT/doc/ParticleIDapp.tex
+69
-20
69 additions, 20 deletions
HepPDT/doc/ParticleIDapp.tex
with
69 additions
and
20 deletions
HepPDT/doc/ParticleIDapp.tex
+
69
−
20
View file @
1310340f
...
...
@@ -25,33 +25,18 @@
\begin{document}
\section
{
ParticleID
HEADER
}
\section
{
ParticleID
headers
}
\label
{
PIDclass
}
\subsection
{
ParticleID.hh
}
\begin{tabbing}
{
\bf
namespace HepPDT
}
\\
\\
{
\bf
Free functions:
}
\\
\hspace
{
0.5in
}
double spinitod( int js );
\\
\hspace
{
0.5in
}
int spindtoi( double spin );
\\
\\
{
\bf
Translation functions:
}
\\
\hspace
{
0.5in
}
int translatePythiatoPDT( const int pythiaID );
\\
\hspace
{
0.5in
}
int translateIsajettoPDT( const int isajetID );
\\
\hspace
{
0.5in
}
int translateHerwigtoPDT( const int herwigID);
\\
\hspace
{
0.5in
}
int translateQQtoPDT( const int qqID);
\\
\hspace
{
0.5in
}
int translateGeanttoPDT( const int geantID);
\\
\hspace
{
0.5in
}
int translatePDGtabletoPDT( const int pdgID);
\\
\hspace
{
0.5in
}
int translateEvtGentoPDT( const int evtGenID );
\\
\hspace
{
0.5in
}
int translatePDTtoPythia( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoIsajet( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoHerwig( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoQQ( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoGeant( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoPDGtable( const int pid );
\\
\hspace
{
0.5in
}
int translatePDTtoEvtGen( const int pid );
\\
\\
\hspace
{
0.5in
}
{
\bf
double spinitod( int js );
}
\\
\hspace
{
0.5in
}
{
\bf
int spindtoi( double spin );
}
\\
\\
{
\bf
Public members:
}
\\
\hspace
{
0.5in
}
{
\bf
enum location
}
...
...
@@ -96,6 +81,8 @@
\hspace
{
0.5in
}
Returns true if the fundamentalID is 11-18.
\\
\\
\hspace
{
0.5in
}
{
\bf
bool isNucleus( ) const;
}
\\
\hspace
{
0.5in
}
Returns true if this integer obeys the ion numbering scheme rules.
\\
\\
\hspace
{
0.5in
}
{
\bf
bool isPentaquark( ) const;
}
\\
\hspace
{
0.5in
}
Returns true if this integer obeys the pentaquark numbering scheme rules.
\\
\\
\hspace
{
0.5in
}
{
\bf
bool hasUp( ) const;
}
\\
\hspace
{
0.5in
}
Returns true if this is a valid PID and it has an up quark.
\\
\\
...
...
@@ -136,12 +123,74 @@
\hspace
{
0.5in
}
If this is an ion, returns Z.
\\
\\
\hspace
{
0.5in
}
{
\bf
unsigned short digit(location) const;
}
\\
\hspace
{
0.5in
}
digit returns the base 10 digit at a named location in the PID
\\
\\
\hspace
{
0.5in
}
{
\bf
const std::string PDTname() const;
}
\\
\hspace
{
0.5in
}
Returns the HepPDT standard name.
\\
\\
{
\bf
Private Members:
}
\\
\hspace
{
0.5in
}
{
\bf
int itsPID;
}
\\
\end{tabbing}
\vfill\eject
\subsection
{
ParticleIDTranslations.hh
}
\begin{tabbing}
{
\bf
namespace HepPDT
}
\\
\\
{
\bf
Free functions:
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePythiatoPDT( const int pythiaID );
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoPythia( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translateIsajettoPDT( const int isajetID );
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoIsajet( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translateHerwigtoPDT( const int herwigID);
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoHerwig( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translateQQtoPDT( const int qqID);
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoQQ( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translateGeanttoPDT( const int geantID);
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoGeant( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translatePDGtabletoPDT( const int pdgID);
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoPDGtable( const int pid );
}
\\
\\
\hspace
{
0.5in
}
{
\bf
int translateEvtGentoPDT( const int evtGenID );
}
\\
\hspace
{
0.5in
}
{
\bf
int translatePDTtoEvtGen( const int pid );
}
\\
\\
\end{tabbing}
\vfill\eject
\subsection
{
ParticleName.hh
}
\begin{tabbing}
{
\bf
namespace HepPDT
}
\\
\\
{
\bf
Free functions:
}
\\
\hspace
{
0.5in
}
{
\bf
std::string particleName( const int );
}
\\
\hspace
{
0.5in
}
Returns the HepPDT standard name.
\\
\\
\hspace
{
0.5in
}
{
\bf
void listHepPDTParticleNames( std::ostream
\&
os );
}
\\
\hspace
{
0.5in
}
List all defined names.
\\
\\
\hspace
{
0.5in
}
{
\bf
bool validParticleName( const int );
}
\\
\hspace
{
0.5in
}
Verify that this particle ID has a valid name.
\\
\\
\hspace
{
0.5in
}
{
\bf
typedef std::map
$
<
$
int, std::string
$
>
$
ParticleNameMap;
}
\\
\hspace
{
0.5in
}
{
\bf
ParticleNameMap const
\&
getParticleNameMap();
}
\\
\hspace
{
0.5in
}
Access ParticleNameMap for other purposes.
\\
\end{tabbing}
Only getParticleNameMap is allowed to access ParticleNameMap.
ParticleNameMap is initalized by the first call to getParticleNameMap.
Because the map is static, this initialization only happens once.
We use a data table so that compile time is not impacted.
\vfill\eject
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment