CMS 3D CMS Logo

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

#include <DummyEMPhysics.h>

Inheritance diagram for DummyEMPhysics:

Public Member Functions

void ConstructParticle () override
 
void ConstructProcess () override
 
 DummyEMPhysics (G4int verb)
 
 ~DummyEMPhysics () override=default
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 8 of file DummyEMPhysics.h.

Constructor & Destructor Documentation

DummyEMPhysics::DummyEMPhysics ( G4int  verb)

Definition at line 26 of file DummyEMPhysics.cc.

26  : G4VPhysicsConstructor("CMSEmGeantV"), verbose(ver) {
27  G4EmParameters* param = G4EmParameters::Instance();
28  param->SetDefaults();
29  param->SetVerbose(verbose);
30  param->SetApplyCuts(true);
31  param->SetStepFunction(0.8, 1 * CLHEP::mm);
32  param->SetLossFluctuations(false);
33  param->SetMscRangeFactor(0.2);
34  param->SetMscStepLimitType(fMinimal);
35  SetPhysicsType(bElectromagnetic);
36 }
DummyEMPhysics::~DummyEMPhysics ( )
overridedefault

Member Function Documentation

void DummyEMPhysics::ConstructParticle ( )
override

Definition at line 38 of file DummyEMPhysics.cc.

References nanoDQM_cff::Electron, and Gamma.

38  {
39  // gamma
41 
42  // leptons
44  G4Positron::Positron();
45 
46  G4LeptonConstructor pLeptonConstructor;
47  pLeptonConstructor.ConstructParticle();
48 }
dbl * Gamma
Definition: mlp_gen.cc:38
void DummyEMPhysics::ConstructProcess ( )
override

Definition at line 50 of file DummyEMPhysics.cc.

References nanoDQM_cff::Electron, ecalTB2006H4_GenSimDigiReco_cfg::G4cout, and Gamma.

50  {
51  if (verbose > 0) {
52  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
53  }
54 
55  // This EM builder takes GeantV variant of physics
56 
57  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
58 
59  G4ParticleDefinition* particle = G4Gamma::Gamma();
60 
61  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
62  ph->RegisterProcess(new G4ComptonScattering(), particle);
63  ph->RegisterProcess(new G4GammaConversion(), particle);
64 
65  particle = G4Electron::Electron();
66 
67  ph->RegisterProcess(new G4eMultipleScattering(), particle);
68  ph->RegisterProcess(new G4eIonisation(), particle);
69  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
70 
71  particle = G4Positron::Positron();
72 
73  ph->RegisterProcess(new G4eMultipleScattering(), particle);
74  ph->RegisterProcess(new G4eIonisation(), particle);
75  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
76  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
77 }
dbl * Gamma
Definition: mlp_gen.cc:38

Member Data Documentation

G4int DummyEMPhysics::verbose
private

Definition at line 16 of file DummyEMPhysics.h.