CMS 3D CMS Logo

List of all members | Static Public Member Functions | Private Member Functions | Static Private Attributes
CMSAntiSQ Class Reference

#include <CMSAntiSQ.h>

Inheritance diagram for CMSAntiSQ:

Static Public Member Functions

static CMSAntiSQAntiSQ (double mass)
 
static CMSAntiSQDefinition (double mass)
 

Private Member Functions

 CMSAntiSQ ()
 
 ~CMSAntiSQ ()
 

Static Private Attributes

static CMSAntiSQtheInstance = 0
 

Detailed Description

Definition at line 12 of file CMSAntiSQ.h.

Constructor & Destructor Documentation

◆ CMSAntiSQ()

CMSAntiSQ::CMSAntiSQ ( )
inlineprivate

Definition at line 15 of file CMSAntiSQ.h.

15 {}

◆ ~CMSAntiSQ()

CMSAntiSQ::~CMSAntiSQ ( )
inlineprivate

Definition at line 16 of file CMSAntiSQ.h.

16 {}

Member Function Documentation

◆ AntiSQ()

CMSAntiSQ * CMSAntiSQ::AntiSQ ( double  mass)
static

Definition at line 41 of file CMSAntiSQ.cc.

References Definition(), and EgHLTOffHistBins_cfi::mass.

Referenced by CMSSQInelasticCrossSection::CMSSQInelasticCrossSection(), and CMSSQLoopProcessDiscr::PostStepDoIt().

41  {
42  return Definition(mass * GeV); // will use correct mass if instance exists
43 }
static CMSAntiSQ * Definition(double mass)
Definition: CMSAntiSQ.cc:16

◆ Definition()

CMSAntiSQ * CMSAntiSQ::Definition ( double  mass)
static

Definition at line 16 of file CMSAntiSQ.cc.

References EgHLTOffHistBins_cfi::mass, mergeVDriftHistosByStation::name, and theInstance.

Referenced by AntiSQ().

16  {
17  if (theInstance != 0)
18  return theInstance;
19  const G4String name = "anti_sexaq";
20  // search in particle table]
21  G4ParticleTable* pTable = G4ParticleTable::GetParticleTable();
22  G4ParticleDefinition* anInstance = pTable->FindParticle(name);
23  if (anInstance == 0) {
24  // create particle
25  //
26  // Arguments for constructor are as follows
27  // name mass width charge
28  // 2*spin parity C-conjugation
29  // 2*Isospin 2*Isospin3 G-parity
30  // type lepton number baryon number PDG encoding
31  // stable lifetime decay table
32  // shortlived subType anti_encoding
33 
34  anInstance = new G4ParticleDefinition(
35  name, mass, 0, 0.0, 0, +1, 0, 0, 0, 0, "baryon", 0, -2, -1020000020, true, -1.0, nullptr, false, "sexaq");
36  }
37  theInstance = reinterpret_cast<CMSAntiSQ*>(anInstance);
38  return theInstance;
39 }
static CMSAntiSQ * theInstance
Definition: CMSAntiSQ.h:14

Member Data Documentation

◆ theInstance

CMSAntiSQ * CMSAntiSQ::theInstance = 0
staticprivate

Definition at line 14 of file CMSAntiSQ.h.

Referenced by Definition().