CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
CMSTrackingCutModel Class Reference

#include <CMSTrackingCutModel.h>

Public Member Functions

 CMSTrackingCutModel (const G4ParticleDefinition *)
 
void InitialiseForStep (G4double fac, G4double rms)
 
virtual G4double SampleEnergyDepositEcal (G4double kinEnergy)
 
virtual ~CMSTrackingCutModel ()
 

Protected Attributes

G4double deltaE_
 
G4double factor_
 
const G4ParticleDefinition * particle_
 
G4double rms_
 

Detailed Description

Definition at line 14 of file CMSTrackingCutModel.h.

Constructor & Destructor Documentation

◆ CMSTrackingCutModel()

CMSTrackingCutModel::CMSTrackingCutModel ( const G4ParticleDefinition *  part)
explicit

Definition at line 9 of file CMSTrackingCutModel.cc.

10  : particle_(part), deltaE_(0.0), factor_(0.0), rms_(0.0) {
11  if (part == G4Positron::Positron()) {
12  deltaE_ = 2 * CLHEP::electron_mass_c2;
13  }
14 }

References deltaE_.

◆ ~CMSTrackingCutModel()

CMSTrackingCutModel::~CMSTrackingCutModel ( )
virtual

Definition at line 16 of file CMSTrackingCutModel.cc.

16 {}

Member Function Documentation

◆ InitialiseForStep()

void CMSTrackingCutModel::InitialiseForStep ( G4double  fac,
G4double  rms 
)
inline

Definition at line 31 of file CMSTrackingCutModel.h.

31  {
32  factor_ = fac;
33  rms_ = rms;
34 }

References factor_, SiStripPI::rms, and rms_.

Referenced by ElectronLimiter::PostStepGetPhysicalInteractionLength().

◆ SampleEnergyDepositEcal()

G4double CMSTrackingCutModel::SampleEnergyDepositEcal ( G4double  kinEnergy)
virtual

Definition at line 18 of file CMSTrackingCutModel.cc.

18  {
19  G4double edep = kinEnergy * factor_;
20  if (rms_ > 0.) {
21  edep *= G4RandGauss::shoot(1.0, rms_);
22  }
23  return edep + deltaE_;
24 }

References deltaE_, factor_, and rms_.

Referenced by ElectronLimiter::PostStepDoIt().

Member Data Documentation

◆ deltaE_

G4double CMSTrackingCutModel::deltaE_
protected

Definition at line 26 of file CMSTrackingCutModel.h.

Referenced by CMSTrackingCutModel(), and SampleEnergyDepositEcal().

◆ factor_

G4double CMSTrackingCutModel::factor_
protected

Definition at line 27 of file CMSTrackingCutModel.h.

Referenced by InitialiseForStep(), and SampleEnergyDepositEcal().

◆ particle_

const G4ParticleDefinition* CMSTrackingCutModel::particle_
protected

Definition at line 24 of file CMSTrackingCutModel.h.

◆ rms_

G4double CMSTrackingCutModel::rms_
protected

Definition at line 28 of file CMSTrackingCutModel.h.

Referenced by InitialiseForStep(), and SampleEnergyDepositEcal().

CMSTrackingCutModel::particle_
const G4ParticleDefinition * particle_
Definition: CMSTrackingCutModel.h:24
SiStripPI::rms
Definition: SiStripPayloadInspectorHelper.h:169
part
part
Definition: HCALResponse.h:20
CMSTrackingCutModel::factor_
G4double factor_
Definition: CMSTrackingCutModel.h:27
CMSTrackingCutModel::rms_
G4double rms_
Definition: CMSTrackingCutModel.h:28
CMSTrackingCutModel::deltaE_
G4double deltaE_
Definition: CMSTrackingCutModel.h:26