Belle II Software  release-08-01-10
Const Class Reference

This class provides a set of constants for the framework. More...

#include <Const.h>

Collaboration diagram for Const:

Classes

class  ChargedStable
 Provides a type-safe way to pass members of the chargedStableSet set. More...
 
class  Cluster
 Provides a type-safe way to pass members of the clusterSet set. More...
 
class  ClusterDetectors
 A class that defines the valid set of Cluster detectors. More...
 
class  DetectorSet
 The DetectorSet class for sets of detector IDs in the form of EDetector values. More...
 
class  ParticleSet
 A set of ParticleType objects, with defined order. More...
 
class  ParticleType
 The ParticleType class for identifying different particle types. More...
 
class  PIDDetectors
 A class that defines the valid set of PID detectors. More...
 
class  RestrictedDetectorSet
 A class for sets of detector IDs whose content is limited to restricted set of valid detector IDs. More...
 
class  TrackingDetectors
 A class that defines the valid set of tracking detectors. More...
 
class  VXDDetectors
 A class that defines the valid set of VXD detectors. More...
 

Public Types

enum  EDetector {
  invalidDetector = 0x0 ,
  PXD = 0x1 ,
  SVD = 0x2 ,
  CDC = 0x3 ,
  TOP = 0x4 ,
  ARICH = 0x5 ,
  ECL = 0x6 ,
  KLM = 0x7 ,
  BKLM = 0x100 + KLM ,
  EKLM = 0x200 + KLM ,
  IR = 0x8 ,
  TRG = 0x9 ,
  DAQ = 0xA ,
  BEAST = 0xB ,
  TEST = 0xC
}
 Enum for identifying the detector components (detector and subdetector). More...
 
typedef RestrictedDetectorSet< VXDDetectorsVXDDetectorSet
 Typedef for set of VXD detectors.
 
typedef RestrictedDetectorSet< TrackingDetectorsTrackingDetectorSet
 Typedef for set of tracking detectors.
 
typedef RestrictedDetectorSet< PIDDetectorsPIDDetectorSet
 Typedef for set of PID detectors.
 
typedef RestrictedDetectorSet< ClusterDetectorsClusterDetectorSet
 Typedef for set of VXD detectors.
 

Static Public Member Functions

static std::string parseDetectors (EDetector det)
 Converts Const::EDetector object to string. More...
 

Static Public Attributes

static const DetectorSet allDetectors
 The set of all detectors. More...
 
static const ParticleSet chargedStableSet
 set of charged stable particles More...
 
static const ParticleSet clusterSet
 set of cluster particles More...
 
static const ParticleSet finalStateParticlesSet
 set of final set particles that can be created by the ParticleLoader More...
 
static const ChargedStable electron = Const::chargedStableSet.find(11)
 electron particle
 
static const ChargedStable muon = Const::chargedStableSet.find(13)
 muon particle
 
static const ChargedStable pion = Const::chargedStableSet.find(211)
 charged pion particle
 
static const ChargedStable kaon = Const::chargedStableSet.find(321)
 charged kaon particle
 
static const ChargedStable proton = Const::chargedStableSet.find(2212)
 proton particle
 
static const ChargedStable deuteron = Const::chargedStableSet.find(1000010020)
 deuteron particle
 
static const Cluster clusterphoton = Const::clusterSet.find(22)
 photon cluster
 
static const Cluster clusterKlong = Const::clusterSet.find(130)
 K^0_L cluster.
 
static const Cluster clusterelectron = Const::clusterSet.find(11)
 electron cluster

 
static const Cluster clusterpion = Const::clusterSet.find(211)
 charged hadron cluster
 
static const Cluster clustermuon = Const::clusterSet.find(13)
 muon cluster
 
static const Cluster clusterjunk = Const::clusterSet.find(9900001)
 junk cluster
 
static const ParticleType photon = Const::ParticleType(22)
 photon particle
 
static const ParticleType pi0 = Const::ParticleType(111)
 neutral pion particle
 
static const ParticleType neutron = Const::ParticleType(2112)
 neutron particle
 
static const ParticleType antiNeutron = Const::ParticleType(-2112)
 Anti-neutron particle.
 
static const ParticleType Kshort = Const::ParticleType(310)
 K^0_S particle.
 
static const ParticleType Klong = Const::ParticleType(130)
 K^0_L particle.
 
static const ParticleType Lambda = Const::ParticleType(3122)
 Lambda particle.
 
static const ParticleType antiLambda = Const::ParticleType(-3122)
 Anti-Lambda particle.
 
static const ParticleType invalidParticle = Const::ParticleType(9900000)
 Invalid particle, used internally.
 
static const ParticleType unspecifiedParticle = Const::ParticleType(9900001)
 Unspecified particle, used when no other particle type fits. More...
 
static const double electronMass = Const::electron.getMass()
 electron mass
 
static const double muonMass = Const::muon.getMass()
 muon mass
 
static const double pionMass = Const::pion.getMass()
 charged pion mass
 
static const double kaonMass = Const::kaon.getMass()
 charged kaon mass
 
static const double protonMass = Const::proton.getMass()
 proton mass
 
static const double deuteronMass = Const::deuteron.getMass()
 deuteron mass
 
static const double pi0Mass = Const::pi0.getMass()
 neutral pion mass
 
static const double neutronMass = Const::neutron.getMass()
 neutron mass
 
static const double K0Mass = Const::Kshort.getMass()
 neutral kaon mass
 
static const double speedOfLight = 29.9792458
 [cm/ns]
 
static const double kBoltzmann = 8.617343 * 1.0e-5 * Unit::eV / Unit::K
 Boltzmann constant in GeV/K.
 
static const double ehEnergy = 3.65 * Unit::eV
 Energy needed to create an electron-hole pair in Si at std. More...
 
static const double fineStrConst = 1.0 / 137.036
 The fine structure constant.
 
static const double permSi = 11.9 * 8.8542 * 1e-18 * Unit::C / Unit::V / Unit::um
 Permittivity of Silicon.
 
static const double uTherm = 0.026 * Unit::V
 Thermal Voltage at room temperature.
 
static const double eMobilitySi = 1415 * Unit::cm2 / Unit::V / Unit::s
 Electron mobility in intrinsic Silicon at room temperature.
 
static const double doubleNaN = std::numeric_limits<double>::quiet_NaN()
 quiet_NaN
 

Private Member Functions

 Const ()=delete
 no Const instances allowed.
 
 Const (const Const &)=delete
 
Constoperator= (const Const &)=delete
 

Detailed Description

This class provides a set of constants for the framework.

This class cannot be instantiated, use the static members directly. The implementation can be found in UnitConst.cc

Definition at line 34 of file Const.h.

Member Enumeration Documentation

◆ EDetector

enum EDetector

Enum for identifying the detector components (detector and subdetector).

Edetector = subdetector * 256 + detector

Definition at line 42 of file Const.h.

42  {
43  invalidDetector = 0x0,
44  PXD = 0x1,
45  SVD = 0x2,
46  CDC = 0x3,
47  TOP = 0x4,
48  ARICH = 0x5,
49  ECL = 0x6,
50  KLM = 0x7,
51  BKLM = 0x100 + KLM,
52  EKLM = 0x200 + KLM,
53  IR = 0x8,
54  TRG = 0x9,
55  DAQ = 0xA,
56  BEAST = 0xB,
57  TEST = 0xC,
58  };

Member Function Documentation

◆ parseDetectors()

std::string parseDetectors ( EDetector  det)
static

Converts Const::EDetector object to string.

Parameters
detConst::EDetector object to be converted to string
Returns
converted string

Definition at line 162 of file UnitConst.cc.

Member Data Documentation

◆ allDetectors

const Const::DetectorSet allDetectors
static
Initial value:
= Const::IR + Const::PXD + Const::SVD + Const::CDC +
Const::TOP + Const::ARICH + Const::ECL + Const::KLM +
Const::TRG + Const::DAQ + Const::BEAST + Const::TEST

The set of all detectors.

Definition at line 389 of file Const.h.

◆ chargedStableSet

const Const::ParticleSet chargedStableSet
static
Initial value:
=
Const::ParticleType(11) + Const::ParticleType(13) + Const::ParticleType(211)
+ Const::ParticleType(321) + Const::ParticleType(2212) + Const::ParticleType(1000010020)

set of charged stable particles

Definition at line 609 of file Const.h.

◆ clusterSet

const Const::ParticleSet clusterSet
static
Initial value:
=
Const::ParticleType(22) + Const::ParticleType(130) + Const::ParticleType(11)
+ Const::ParticleType(211) + Const::ParticleType(13) + Const::ParticleType(9900001)

set of cluster particles

Definition at line 646 of file Const.h.

◆ ehEnergy

const double ehEnergy = 3.65 * Unit::eV
static

Energy needed to create an electron-hole pair in Si at std.

T.

Definition at line 688 of file Const.h.

◆ finalStateParticlesSet

const Const::ParticleSet finalStateParticlesSet
static
Initial value:
=
static const ParticleType neutron
neutron particle
Definition: Const.h:666
static const ParticleType Lambda
Lambda particle.
Definition: Const.h:670
static const ParticleSet chargedStableSet
set of charged stable particles
Definition: Const.h:609
static const ParticleType Klong
K^0_L particle.
Definition: Const.h:669
static const ParticleType antiLambda
Anti-Lambda particle.
Definition: Const.h:671
static const ParticleType Kshort
K^0_S particle.
Definition: Const.h:668
static const ParticleType photon
photon particle
Definition: Const.h:664

set of final set particles that can be created by the ParticleLoader

Definition at line 648 of file Const.h.

◆ unspecifiedParticle

const Const::ParticleType unspecifiedParticle = Const::ParticleType(9900001)
static

Unspecified particle, used when no other particle type fits.

(no valid PDG code, but different from invalidParticle)

Definition at line 674 of file Const.h.


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