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

Member Function Documentation

void DummyEMPhysics::ConstructParticle ( )
override

Definition at line 39 of file DummyEMPhysics.cc.

References nanoDQM_cff::Electron, and Gamma.

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

Definition at line 51 of file DummyEMPhysics.cc.

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

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

Member Data Documentation

G4int DummyEMPhysics::verbose
private

Definition at line 18 of file DummyEMPhysics.h.