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)
 
virtual void ConstructProcess ()
 
virtual ~CMSThermalNeutrons ()
 

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  :
15  G4VHadronPhysics("CMSThermalNeutrons"), verbose(ver) {
16 }
CMSThermalNeutrons::~CMSThermalNeutrons ( )
virtual

Definition at line 18 of file CMSThermalNeutrons.cc.

18 {}

Member Function Documentation

void CMSThermalNeutrons::ConstructProcess ( )
virtual

Definition at line 20 of file CMSThermalNeutrons.cc.

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

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

Member Data Documentation

G4int CMSThermalNeutrons::verbose
private

Definition at line 16 of file CMSThermalNeutrons.h.