Belle II Software  release-05-02-19
simulation
Collaboration diagram for simulation:

Modules

 simulation data objects
 
 simulation modules
 

Classes

class  BkgNeutronWeight
 The class to get the weighting factor for a 1-MeV-equivalent neutron flux on silicon. More...
 
class  BkgSensitiveDetector
 The Class for BeamBackground Sensitive Detector. More...
 
class  ROIParameters
 The payload containing all PXD ROI parameters. More...
 
class  ROIfindingConditionFromDBModule
 Module which sets its return value based on the payload whether ROI-finding was enabled for the given run/exp interval or not. More...
 
class  DetectorConstruction
 Class responsible to connect to geometry to simulation. More...
 
class  RandomEngine
 Interface class to make Geant4 use the Belle2 RandomGenerator. More...
 
class  G4LongLivedNeutral
 A class to hold long-lived neutral particle description. More...
 
class  G4LongLivedNeutralDecay
 This class is a decay process. More...
 
class  G4LongLivedNeutralPhysics
 LongLivedNeutral physics Class – to be registered in the physics list. More...
 
class  G4LongLivedNeutralTransportation
 Concrete class that does the geometrical transport. More...
 

Functions

static BkgNeutronWeightgetInstance ()
 Return a reference to the singleton BkgNeutronWeight instance.
 
double getWeight (double ke)
 Get weighting factor to convert a neutron to its 1-MeV equivalent.
 
 BkgNeutronWeight (void)
 Constructor is private for this singleton.
 
void addPoint (double, double)
 Function to add one (x,y) data point to the spline table.
 
void doSpline ()
 Function to calculate the cubic spline derivatives.
 
 BkgSensitiveDetector (const char *subDet, int iden=0)
 Constructor. More...
 
bool step (G4Step *aStep, G4TouchableHistory *) override
 Process each step and calculate variables defined in PXDSimHit. More...
 
virtual G4VParticleChange * AtRestDoIt (const G4Track &aTrack, const G4Step &aStep) override
 G4VProess::AtRestDoIt() implemention for decay at rest. More...
 

Variables

static BkgNeutronWeightm_Instance = 0
 static pointer to the singleton instance of this class
 

Detailed Description

Function Documentation

◆ AtRestDoIt()

G4VParticleChange * AtRestDoIt ( const G4Track &  aTrack,
const G4Step &  aStep 
)
inlineoverridevirtual

G4VProess::AtRestDoIt() implemention for decay at rest.

G4VProcess::AtRestDoIt() implementation, Proposes particle change by DecayIt method at rest.

Parameters
aTrack
aStep
aTrackPropagating particle track reference
aStepCurrent step reference

Definition at line 182 of file G4LongLivedNeutralDecay.h.

186  {
187  return DecayIt(aTrack, aStep);
188  }

◆ BkgSensitiveDetector()

BkgSensitiveDetector ( const char *  subDet,
int  iden = 0 
)
explicit

Constructor.

Parameters
subDetname of the subdetector (i.e. "IR","PXD","SVD",...)
idenidentifier of subdetector component (optional, 0 by default)

Definition at line 32 of file BkgSensitiveDetector.cc.

32  :
33  Simulation::SensitiveDetectorBase("BKG", Const::invalidDetector), m_trackID(0), m_startPos(0., 0., 0.), m_startMom(0., 0., 0.),
35  {
36  // registration of store arrays and relations
37 
38  StoreArray<MCParticle> mcParticles;
39  StoreArray<BeamBackHit> beamBackHits;
40 
41  beamBackHits.registerInDataStore();
42  mcParticles.registerRelationTo(beamBackHits);
43 
44  // additional registration of MCParticle relation
45 
46  RelationArray relation(mcParticles, beamBackHits);
48 
49  m_eclrepscale = 0;
50  std::string subDet = subDett;
51  if (subDet == "IR") m_subDet = 0;
52  else if (subDet == "PXD") m_subDet = 1;
53  else if (subDet == "SVD") m_subDet = 2;
54  else if (subDet == "CDC") m_subDet = 3;
55  else if (subDet == "ARICH") m_subDet = 4;
56  else if (subDet == "TOP") m_subDet = 5;
57  else if (subDet == "ECL") m_subDet = 6;
58  else if (subDet == "EKLM") m_subDet = 7;
59  else if (subDet == "BKLM") m_subDet = 8;
60  else m_subDet = 99;
61 
62  if (m_subDet == 6) {
63  const int nc[] = {3, 4, 6, 9, 2, 9, 6, 4}; // the number of crystals in a sector per ring
64  const int indx[] = {96, 288, 864, 1151, 7776, 8064, 8544, 8736}; // regions with the same number of crystals in a ring
65  std::vector<int> indxv(indx, indx + sizeof(indx) / sizeof(int));
66  m_eclrepscale = nc[upper_bound(indxv.begin(), indxv.end(), iden) - indxv.begin()];
67  }
68 
69  m_identifier = iden;
70 
71  }

◆ step()

G4bool step ( G4Step *  aStep,
G4TouchableHistory *   
)
overridevirtual

Process each step and calculate variables defined in PXDSimHit.

Parameters
aStepCurrent Geant4 step in the sensitive medium.
Returns
true if a hit was stored, o.w. false.

Implements SensitiveDetectorBase.

Definition at line 74 of file BkgSensitiveDetector.cc.

Belle2::BkgSensitiveDetector::m_startEnergy
double m_startEnergy
particle energy at the entrance in volume
Definition: BkgSensitiveDetector.h:61
Belle2::BkgSensitiveDetector::m_eclrepscale
int m_eclrepscale
replica (=sector) scale in ECL
Definition: BkgSensitiveDetector.h:64
Belle2::BkgSensitiveDetector::m_startPos
TVector3 m_startPos
particle position at the entrance in volume
Definition: BkgSensitiveDetector.h:58
Belle2::BkgSensitiveDetector::m_subDet
int m_subDet
subdetector id number
Definition: BkgSensitiveDetector.h:55
Belle2::G4LongLivedNeutralDecay::DecayIt
virtual G4VParticleChange * DecayIt(const G4Track &aTrack, const G4Step &aStep)
G4Decay::DecayIt() implemention.
Definition: G4LongLivedNeutralDecay.cc:78
Belle2::Simulation::SensitiveDetectorBase::registerMCParticleRelation
static void registerMCParticleRelation(const std::string &name, RelationArray::EConsolidationAction ignoreAction=RelationArray::c_negativeWeight)
Register an relation involving MCParticles.
Definition: SensitiveDetectorBase.cc:24
Belle2::BkgSensitiveDetector::m_startMom
TVector3 m_startMom
particle momentum at the entrance in volume
Definition: BkgSensitiveDetector.h:59
Belle2::BkgSensitiveDetector::m_trackID
int m_trackID
track id
Definition: BkgSensitiveDetector.h:57
Belle2::BkgSensitiveDetector::m_energyDeposit
double m_energyDeposit
energy deposited in volume
Definition: BkgSensitiveDetector.h:62
Belle2::BkgSensitiveDetector::m_startTime
double m_startTime
global time
Definition: BkgSensitiveDetector.h:60
Belle2::BkgSensitiveDetector::m_trackLength
double m_trackLength
length of the track in the volume
Definition: BkgSensitiveDetector.h:63
Belle2::BkgSensitiveDetector::m_identifier
int m_identifier
identifier of subdetector component
Definition: BkgSensitiveDetector.h:56