CMS 3D CMS Logo

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

#include <CMSThermalNeutrons.h>

Inheritance diagram for CMSThermalNeutrons:

Public Member Functions

 CMSThermalNeutrons (G4int ver)
 
void ConstructProcess () override
 
 ~CMSThermalNeutrons () override
 

Private Attributes

G4int verbose
 

Detailed Description

Definition at line 7 of file CMSThermalNeutrons.h.

Constructor & Destructor Documentation

CMSThermalNeutrons::CMSThermalNeutrons ( G4int  ver)

Definition at line 14 of file CMSThermalNeutrons.cc.

14 : G4VHadronPhysics("CMSThermalNeutrons"), verbose(ver) {}
CMSThermalNeutrons::~CMSThermalNeutrons ( )
override

Definition at line 16 of file CMSThermalNeutrons.cc.

16 {}

Member Function Documentation

void CMSThermalNeutrons::ConstructProcess ( )
override

Definition at line 18 of file CMSThermalNeutrons.cc.

References ecalTB2006H4_GenSimDigiReco_cfg::G4cout, and findQualityFiles::size.

18  {
19  if (verbose > 0) {
20  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
21  }
22  G4Neutron* part = G4Neutron::Neutron();
23  G4HadronicProcess* hpel = FindElasticProcess(part);
24  if (!hpel) {
25  G4cout << "### " << GetPhysicsName() << " WARNING: Fail to add thermal neutron scattering" << G4endl;
26  return;
27  }
28 
29  G4int ni = (hpel->GetHadronicInteractionList()).size();
30  if (ni < 1) {
31  G4cout << "### " << GetPhysicsName() << " WARNING: Fail to add thermal neutron scattering - Nint= " << ni << G4endl;
32  return;
33  }
34  (hpel->GetHadronicInteractionList())[ni - 1]->SetMinEnergy(4 * CLHEP::eV);
35 
36  hpel->RegisterMe(new G4ParticleHPThermalScattering());
37  hpel->AddDataSet(new G4ParticleHPThermalScatteringData());
38 }
size
Write out results.
part
Definition: HCALResponse.h:20

Member Data Documentation

G4int CMSThermalNeutrons::verbose
private

Definition at line 15 of file CMSThermalNeutrons.h.